0.9.0 • Published 2 years ago

@ew-did-registry/keys v0.9.0

Weekly downloads
104
License
GPL-3.0-or-later
Repository
-
Last release
2 years ago

Keys Package

The keys package provides a clean and simple interface for the client and expose cryptographic operations based on asymmetric cryptography for secp256k1 ECDSA.

// If you don't have a key pair you can generate new Key Pair
const keys = Keys.generateKeyPair(); // builder

// If you have a private key you can instantiate the Keys with private key
const keys = new Keys({ privateKey: keys.privateKey });

// If you have a public key you can Instantiate the Keys with public key
const keys = new Keys({ publicKey: keys.publicKey });

// Sign and verify data. 
const data = "test";
const signature = keys.sign(data); // Doesn't work if you initiate the Keys with public key.
console.log(keys.verify(data, signature)); // true
0.9.0

2 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.0

4 years ago

0.5.2-alpha.96.0

4 years ago

0.5.2-alpha.94.0

4 years ago

0.5.2-alpha.90.0

4 years ago

0.5.2-alpha.84.0

4 years ago

0.5.2-alpha.78.0

4 years ago

0.5.2-alpha.75.0

4 years ago

0.5.2-alpha.65.0

4 years ago

0.5.2-alpha.62.0

4 years ago

0.5.2-alpha.57.0

4 years ago

0.5.2-alpha.52.0

4 years ago

0.5.2-alpha.44.0

4 years ago

0.5.2-alpha.40.0

4 years ago

0.5.2-alpha.41.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0-alpha.0

4 years ago