Class: MethodDigest
identity_wasm.MethodDigest
Unique identifier of a VerificationMethod.
NOTE:
This class does not have a JSON representation,
use the methods pack
and unpack
instead.
Table of contents
Constructors
Methods
Constructors
constructor
• new MethodDigest(verification_method
)
Parameters
Name | Type |
---|---|
verification_method | VerificationMethod |
Methods
toJSON
▸ toJSON(): Object
- Return copy of self without private attributes.
Returns
Object
toString
▸ toString(): string
Return stringified version of self.
Returns
string
pack
▸ pack(): Uint8Array
Packs MethodDigest into bytes.
Returns
Uint8Array
unpack
▸ Static
unpack(bytes
): MethodDigest
Unpacks bytes into MethodDigest.
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
clone
▸ clone(): MethodDigest
Deep clones the object.