Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cardano-crypto.js

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cardano-crypto.js - npm Package Compare versions

Comparing version 3.1.7 to 3.1.8

utils/scrypt-async.js

4

index.js

@@ -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'
)
})
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