cardano-crypto.js
Advanced tools
Comparing version 3.1.8 to 3.1.9
@@ -187,2 +187,4 @@ var bip39 = require('bip39-light') | ||
function derivePrivate(parentKey, index, derivationMode) { | ||
@@ -228,3 +230,3 @@ validateBuffer(parentKey, 128) | ||
Module._emscripten_derive_public(parentPubKeyArrPtr, parentChainCodeArrPtr, index, childPubKeyArrPtr, childChainCodeArrPtr, derivationMode) | ||
var resultCode = Module._emscripten_derive_public(parentPubKeyArrPtr, parentChainCodeArrPtr, index, childPubKeyArrPtr, childChainCodeArrPtr, derivationMode) | ||
@@ -236,2 +238,6 @@ Module._free(parentPubKeyArrPtr) | ||
if (resultCode !== 0) { | ||
throw Error(`derivePublic has exited with code ${resultCode}`) | ||
} | ||
return Buffer.concat([new Buffer(childPubKeyArr), new Buffer(childChainCodeArr)]) | ||
@@ -238,0 +244,0 @@ } |
{ | ||
"name": "cardano-crypto.js", | ||
"version": "3.1.8", | ||
"version": "3.1.9", | ||
"description": "input-output-hk/cardano-crypto compiled to pure javascript using Emscripten", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
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
266881
1984