@transmute/x25519-key-pair
Version:
``` npm i @transmute/x25519-key-pair@latest --save ```
8 lines (7 loc) • 729 B
TypeScript
import { JsonWebKey2020, X25519KeyAgreementKey2019 } from './types';
export declare const toJsonWebKey2020: (id: string, controller: string, publicKey: Uint8Array, privateKey?: Uint8Array | undefined) => JsonWebKey2020;
export declare const toX25519KeyAgreementKey2019: (id: string, controller: string, publicKey: Uint8Array, privateKey?: Uint8Array | undefined) => X25519KeyAgreementKey2019;
export declare const exportableTypes: {
JsonWebKey2020: (id: string, controller: string, publicKey: Uint8Array, privateKey?: Uint8Array | undefined) => JsonWebKey2020;
X25519KeyAgreementKey2019: (id: string, controller: string, publicKey: Uint8Array, privateKey?: Uint8Array | undefined) => X25519KeyAgreementKey2019;
};