UNPKG

@digitalcredentials/ed25519-verification-key-2020

Version:

Javascript library for generating and working with Ed25519VerificationKey2020 key pairs, for use with crypto-ld.

19 lines 840 B
/*! * Copyright (c) 2021 Digital Bazaar, Inc. All rights reserved. */ import * as ed25519 from '@stablelib/ed25519'; declare const _default: { generateKeyPairFromSeed(seed: Uint8Array): ed25519.KeyPair; generateKeyPair(prng?: import("@stablelib/random").RandomSource | undefined): ed25519.KeyPair; extractPublicKeyFromSecretKey(secretKey: Uint8Array): Uint8Array; sign(secretKey: Uint8Array, message: Uint8Array): Uint8Array; verify(publicKey: Uint8Array, message: Uint8Array, signature: Uint8Array): boolean; convertPublicKeyToX25519(publicKey: Uint8Array): Uint8Array; convertSecretKeyToX25519(secretKey: Uint8Array): Uint8Array; SIGNATURE_LENGTH: 64; PUBLIC_KEY_LENGTH: 32; SECRET_KEY_LENGTH: 64; SEED_LENGTH: 32; }; export default _default; //# sourceMappingURL=ed25519-reactnative.d.ts.map