MethodData
@iota/identity-wasm API documentation
Class: MethodData
Supported verification method data formats.
Methods
toJSON()
Call Signature
toJSON():
Object
- Return copy of self without private attributes.
Returns
Object
Call Signature
toJSON():
any
Serializes this to a JSON object.
Returns
any
toString()
toString():
string
Return stringified version of self.
Returns
string
newBase58()
static
newBase58(data
):MethodData
Creates a new MethodData variant with Base58-BTC encoded content.
Parameters
data
Uint8Array
Returns
newMultibase()
static
newMultibase(data
):MethodData
Creates a new MethodData variant with Multibase-encoded content.
Parameters
data
Uint8Array
Returns
newJwk()
static
newJwk(key
):MethodData
Creates a new MethodData variant consisting of the given key
.
Errors
An error is thrown if the given key
contains any private components.