Class: Proof
identity_wasm.Proof
Represents a cryptographic proof that can be used to validate verifiable credentials and presentations.
This representation does not inherently implement any standard; instead, it
can be utilized to implement standards or user-defined proofs. The presence of the
type field is necessary to accommodate different types of cryptographic proofs.
Note that this proof is not related to JWT and can be used in combination or as an alternative to it.
Table of contents
Constructors
Methods
Constructors
constructor
• new Proof(type_, properties)
Parameters
| Name | Type |
|---|---|
type_ | string |
properties | any |
Methods
type
▸ type(): string
Returns the type of proof.
Returns
string
properties
▸ properties(): any
Returns the properties of the proof.
Returns
any
toJSON
▸ toJSON(): any
Serializes this to a JSON object.
Returns
any
fromJSON
▸ Static fromJSON(json): Proof
Deserializes an instance from a JSON object.
Parameters
| Name | Type |
|---|---|
json | any |
Returns
clone
▸ clone(): Proof
Deep clones the object.