Skip to main content

Namespace: key

did.cryptography.key

Functions

createEd25519KeyPair

createEd25519KeyPair(options): Promise<Ed25519VerificationKey2020>

Creates an Ed25519 Key Pair from an existing serialized key pair.

Parameters

NameTypeDescription
optionsSerializedKeyPairKey pair options (see constructor).

Returns

Promise<Ed25519VerificationKey2020>

An Ed25519 Key Pair.

Example

> const keyPair = await Ed25519VerificationKey2020.from({
controller: 'did:ex:1234',
type: 'Ed25519VerificationKey2020',
publicKeyMultibase,
privateKeyMultibase
});

Defined in

node_modules/@digitalcredentials/ed25519-verification-key-2020/dist/Ed25519VerificationKey2020.d.ts:52


createX25519KeyPair

createX25519KeyPair(keyPair): Promise<Ed25519VerificationKey2020>

Parameters

NameType
keyPairSerializedKeyPair

Returns

Promise<Ed25519VerificationKey2020>

Defined in

packages/klayr-decentralized-identifier/dist/cryptography/key.d.ts:14


generateEd25519KeyPair

generateEd25519KeyPair(options?): Promise<Ed25519VerificationKey2020>

Generates a KeyPair with an optional deterministic seed.

Parameters

NameTypeDescription
options?GenerateKeyPairOptionsOptions hashmap.

Returns

Promise<Ed25519VerificationKey2020>

Resolves with generated public/private key pair.

Defined in

node_modules/@digitalcredentials/ed25519-verification-key-2020/dist/Ed25519VerificationKey2020.d.ts:91


generateX25519KeyPair

generateX25519KeyPair(): Promise<Ed25519VerificationKey2020>

Returns

Promise<Ed25519VerificationKey2020>

Defined in

packages/klayr-decentralized-identifier/dist/cryptography/key.d.ts:16


getEd25519SignatureSuite

getEd25519SignatureSuite(param): Promise<Ed25519Signature2020>

Parameters

NameType
paramGetSuiteParam

Returns

Promise<Ed25519Signature2020>

Defined in

packages/klayr-decentralized-identifier/dist/cryptography/key.d.ts:17