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

cardano-crypto.js

Package Overview
Dependencies
Maintainers
2
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 6.1.1 to 6.1.2

11

features/address.js

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