EcdsaSecp256k1RecoveryMethod2020

EcdsaSecp256k1RecoveryMethod2020

new EcdsaSecp256k1RecoveryMethod2020(options)

Source:
Parameters:
Name Type Description
options KeyPairOptions The options to use.
Properties
Name Type Description
id string The key ID.
controller string The key controller.
publicKeyJwk string The JWK encoded Public Key.
privateKeyJwk string The JWK Private Key.
publicKeyHex string The hex encoded compressed Public Key.
privateKeyHex string The hex encoded compressed Private Key.
ethereumAddress string The checksum encoded Ethereum Address.

Members

privateKey

Source:
Returns a private key.

publicKey

Source:
Returns the public key.

Methods

addEncodedPublicKey(publicKeyNode) → {Object}

Source:
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
Name Type Description
publicKeyJwk string JWK Public Key for jsonld-signatures.
publicKeyHex string Hex Public Key for jsonld-signatures.
ethereumAddress string ethereumAddress for jsonld-signatures.
Returns:
A PublicKeyNode in a block.
Type
Object

publicNode(optionsopt) → {Object}

Source:
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
Name Type Attributes Default Description
controller string <optional>
this.controller DID of the person/entity controlling this key pair.
Returns:
A public node with information used in verification methods by signatures.
Type
Object

signer() → {Object}

Source:
Returns a signer object for use with jsonld-signatures.
Returns:
A signer for the json-ld block.
Type
Object

verifier() → {Object}

Source:
Returns a verifier object for use with jsonld-signatures.
Returns:
Used to verify jsonld-signatures.
Type
Object