new EcdsaSecp256k1RecoveryMethod2020(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
KeyPairOptions | The options to use.
Properties
|
Members
privateKey
Returns a private key.
publicKey
Returns the public key.
Methods
addEncodedPublicKey(publicKeyNode) → {Object}
Adds a public key base to a public key node.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
publicKeyNode |
Object | The public key node in a jsonld-signature.
Properties
|
Returns:
A PublicKeyNode in a block.
- Type
- Object
publicNode(optionsopt) → {Object}
Contains the public key for the KeyPair
and other information that json-ld Signatures can use to form a proof.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
{}
|
Needs either a controller or owner.
Properties
|
Returns:
A public node with
information used in verification methods by signatures.
- Type
- Object
signer() → {Object}
Returns a signer object for use with jsonld-signatures.
Returns:
A signer for the json-ld block.
- Type
- Object
verifier() → {Object}
Returns a verifier object for use with jsonld-signatures.
Returns:
Used to verify jsonld-signatures.
- Type
- Object