cardano-crypto.js
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -73,9 +73,6 @@ const {chacha20poly1305Encrypt, chacha20poly1305Decrypt, blake2b, sha3_256} = require("./crypto-primitives") | ||
let addressPayload, addressAttributes | ||
let addressAttributes = new Map() | ||
if (derivationScheme === 1 && derivationPath.length > 0) { | ||
addressPayload = encryptDerivationPath(derivationPath, hdPassphrase) | ||
addressAttributes = new Map([[1, cbor.encode(addressPayload)]]) | ||
} else { | ||
addressPayload = Buffer.from([]) | ||
addressAttributes = new Map() | ||
const encryptedDerivationPath = encryptDerivationPath(derivationPath, hdPassphrase) | ||
addressAttributes.set(1, cbor.encode(encryptedDerivationPath)) | ||
} | ||
@@ -92,3 +89,3 @@ | ||
[0, xpub], | ||
addressPayload.length > 0 ? new Map([[1, cbor.encode(addressPayload)]]) : new Map(), | ||
addressAttributes, | ||
]) | ||
@@ -95,0 +92,0 @@ const addressType = 0 // Public key address |
{ | ||
"name": "cardano-crypto.js", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "input-output-hk/cardano-crypto compiled to pure javascript using Emscripten", | ||
@@ -8,2 +8,3 @@ "main": "index.js", | ||
"build": "node build.js", | ||
"prepublish": "npm run build", | ||
"test": "tape test/**/*.js" | ||
@@ -34,3 +35,7 @@ }, | ||
"pbkdf2": "^3.0.17" | ||
}, | ||
"engines": { | ||
"npm": ">=8.0.0", | ||
"node": ">=14.0.0" | ||
} | ||
} |
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
280618
2326