Class: MethodScope
identity_wasm.MethodScope
Supported verification method types.
Table of contents
Methods
- toJSON
- toString
- VerificationMethod
- Authentication
- AssertionMethod
- KeyAgreement
- CapabilityDelegation
- CapabilityInvocation
- fromJSON
- clone
Methods
toJSON
▸ toJSON(): Object
- Return copy of self without private attributes.
Returns
Object
▸ toJSON(): any
Serializes this to a JSON object.
Returns
any
toString
▸ toString(): string
Return stringified version of self.
Returns
string
▸ toString(): string
Returns the MethodScope as a string.
Returns
string
VerificationMethod
▸ Static
VerificationMethod(): MethodScope
Returns
Authentication
▸ Static
Authentication(): MethodScope
Returns
AssertionMethod
▸ Static
AssertionMethod(): MethodScope
Returns
KeyAgreement
▸ Static
KeyAgreement(): MethodScope
Returns
CapabilityDelegation
▸ Static
CapabilityDelegation(): MethodScope
Returns
CapabilityInvocation
▸ Static
CapabilityInvocation(): MethodScope
Returns
fromJSON
▸ Static
fromJSON(json
): MethodScope
Deserializes an instance from a JSON object.
Parameters
Name | Type |
---|---|
json | any |
Returns
clone
▸ clone(): MethodScope
Deep clones the object.