cardano-crypto.js
Advanced tools
Comparing version 3.1.7 to 3.1.8
@@ -6,2 +6,3 @@ var bip39 = require('bip39-light') | ||
var base58 = require('./utils/base58') | ||
var scrypt = require('./utils/scrypt-async') | ||
@@ -294,3 +295,3 @@ | ||
initKeyArr.set(initKey) | ||
Module._emscripten_hmac_sha512_init(ctxArrPtr, initKeyArrPtr, initKeyLen) | ||
@@ -453,2 +454,3 @@ | ||
crc32, | ||
scrypt, | ||
} |
{ | ||
"name": "cardano-crypto.js", | ||
"version": "3.1.7", | ||
"version": "3.1.8", | ||
"description": "input-output-hk/cardano-crypto compiled to pure javascript using Emscripten", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,2 +17,3 @@ var test = require('tape') | ||
var sampleNonHardenedChildKeyMode2 = Buffer.from('19ad2602cee521db72c4ad41c2daf36ca46cf8e80733822fa0f79c8013de8e6fed4f3181d9f544612c5f15e01db0745111b8ee7fc87b784ee083ad314e094662', 'hex') | ||
var sampleScryptDerivedKey = '5012b74fca8ec8a4a0a62ffdeeee959d' | ||
@@ -165,1 +166,22 @@ test('wallet secret from mnemonic', function(t) { | ||
}) | ||
test('scrypt', function (t) { | ||
t.plan(1) | ||
var key = undefined | ||
lib.scrypt('mypassword', 'saltysalt', { | ||
N: 16384, | ||
r: 8, | ||
p: 1, | ||
dkLen: 16, | ||
encoding: 'hex' | ||
}, function(derivedKey) { | ||
key = derivedKey | ||
}) | ||
t.equals( | ||
key, | ||
sampleScryptDerivedKey, | ||
'should properly derive key by scrypt' | ||
) | ||
}) |
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
266764
9
1981