Ed25519
Ed25519
is a utils class for creating Ed25519 key pair. This is used for signing and verifying messages with
cloud node.
Import
import * as dkls from '@silencelaboratories/react-native-two-party-ecdsa';
// Then you can use it as
dkls.Ed25519
Usage
// Create a new signing key
const ed = await dkls.Ed25519.create();
// Get verifying key
const verifyingKey = await ed.getVerifyingKey();
// Sign a message
const signature = await ed.signMessage('base64Message');
// Verify a message
const signature = await ed.verify('base64Message', signature);
Constructors
new Ed25519()
protected
new Ed25519(privateKeyB64
,publicKeyB64
):Ed25519
Create a new Ed25519 object