@iov/crypto
Advanced tools
Comparing version 0.7.0-alpha.1 to 0.7.0
@@ -56,8 +56,10 @@ "use strict"; | ||
class Ed25519 { | ||
// Generates a keypair deterministically from a given 32 bytes seed. | ||
// This seed equals the Ed25519 private key. | ||
// | ||
// For implementation details see crypto_sign_seed_keypair in | ||
// https://download.libsodium.org/doc/public-key_cryptography/public-key_signatures.html | ||
// and diagram on https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/ | ||
/** | ||
* Generates a keypair deterministically from a given 32 bytes seed. | ||
* | ||
* This seed equals the Ed25519 private key. | ||
* For implementation details see crypto_sign_seed_keypair in | ||
* https://download.libsodium.org/doc/public-key_cryptography/public-key_signatures.html | ||
* and diagram on https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/ | ||
*/ | ||
static makeKeypair(seed) { | ||
@@ -64,0 +66,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@iov/crypto", | ||
"version": "0.7.0-alpha.1", | ||
"version": "0.7.0", | ||
"description": "Cryptography resources for IOV projects", | ||
@@ -32,3 +32,3 @@ "author": "IOV SAS <admin@iov.one>", | ||
"dependencies": { | ||
"@iov/encoding": "^0.6.0", | ||
"@iov/encoding": "^0.7.0", | ||
"bip39": "^2.5.0", | ||
@@ -47,3 +47,3 @@ "bn.js": "^4.11.8", | ||
}, | ||
"gitHead": "f1ed1d0828b54aa0b6186b3f4584e95ce848dd7d" | ||
"gitHead": "559a368ef6e16cc8f3fe20b7d8df4a5ac1d995fc" | ||
} |
@@ -69,8 +69,10 @@ // Keep all classes requiring libsodium-js in one file as having multiple | ||
export class Ed25519 { | ||
// Generates a keypair deterministically from a given 32 bytes seed. | ||
// This seed equals the Ed25519 private key. | ||
// | ||
// For implementation details see crypto_sign_seed_keypair in | ||
// https://download.libsodium.org/doc/public-key_cryptography/public-key_signatures.html | ||
// and diagram on https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/ | ||
/** | ||
* Generates a keypair deterministically from a given 32 bytes seed. | ||
* | ||
* This seed equals the Ed25519 private key. | ||
* For implementation details see crypto_sign_seed_keypair in | ||
* https://download.libsodium.org/doc/public-key_cryptography/public-key_signatures.html | ||
* and diagram on https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/ | ||
*/ | ||
public static async makeKeypair(seed: Uint8Array): Promise<Ed25519Keypair> { | ||
@@ -77,0 +79,0 @@ await sodium.ready; |
@@ -25,2 +25,10 @@ import { As } from "type-tagger"; | ||
export declare class Ed25519 { | ||
/** | ||
* Generates a keypair deterministically from a given 32 bytes seed. | ||
* | ||
* This seed equals the Ed25519 private key. | ||
* For implementation details see crypto_sign_seed_keypair in | ||
* https://download.libsodium.org/doc/public-key_cryptography/public-key_signatures.html | ||
* and diagram on https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/ | ||
*/ | ||
static makeKeypair(seed: Uint8Array): Promise<Ed25519Keypair>; | ||
@@ -27,0 +35,0 @@ static createSignature(message: Uint8Array, keyPair: Ed25519Keypair): Promise<Uint8Array>; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5660
734121
69
+ Added@iov/encoding@0.7.1(transitive)
+ Addedbech32@1.1.4(transitive)
- Removed@iov/encoding@0.6.0(transitive)
Updated@iov/encoding@^0.7.0