Socket
Socket
Sign inDemoInstall

@iov/crypto

Package Overview
Dependencies
Maintainers
3
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iov/crypto - npm Package Compare versions

Comparing version 0.7.0-alpha.1 to 0.7.0

14

build/libsodium.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc