Options hashmap.
Optional controller?: stringController DID or document url.
Optional id?: stringThe key ID.
Optional privateBase58btc Private Key.
Base58btc encoded Public Key.
Optional revoked?: stringTimestamp of when the key has been revoked, in RFC3339 format. If not present, the key itself is considered not revoked. Note that this mechanism is slightly different than DID Document key revocation, where a DID controller can revoke a key from that DID by removing it from the DID Document.
Optional controllerOptional idOptional privateOptional revokedStatic Readonly SUITE_Static Readonly suiteExports the serialized representation of the KeyPair and other information that json-ld Signatures can use to form a proof.
Options hashmap.
Include JSON-LD context?
Export private key material?
Export public key material?
A public key object information used in verification methods by signatures.
Tests whether the fingerprint was generated from a given key pair.
A Base58 public key.
Optional fingerprint?: stringThe key's fingerprint.
An object indicating valid is true or false.
> srKeyPair.verifyFingerprint({fingerprint: 'z2S2Q6MkaFJewa'});
{valid: true};
Static fingerprintGenerates and returns a multiformats encoded sr25519 public key fingerprint (for use with cryptonyms, for example).
Metadata object containing the public key material.
The base58 encoded public key material.
The fingerprint.
Static fromRest ...options: [options: { Static generateGenerates a KeyPair with an optional deterministic seed.
See LDKeyPair docstring for full list.
Optional controller?: stringOptional id?: stringOptional revoked?: stringOptional seed?: string | Uint8Arraya 32-byte array seed for a deterministic key.
Generates a key pair.
An implementation of the Sr25519VerificationKey spec, for use with Linked Data Proofs.