New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xrpl-accountlib

Package Overview
Dependencies
Maintainers
0
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xrpl-accountlib - npm Package Compare versions

Comparing version 8.2.1 to 8.3.0

13

dist/utils/index.js

@@ -93,7 +93,14 @@ "use strict";

var Signature = require("elliptic/lib/elliptic/ec/signature");
function ifUint8ToHex(data) {
if (typeof data === "string" && data.match(",")) {
data = Buffer.from(data.split(",").map(function (n) { return Number(n); }))
.toString('hex')
.toUpperCase();
}
return data;
}
function computeBinaryTransactionHash(txBlobHex) {
var prefix = hash_prefixes_1.HashPrefix.transactionID.toString().toUpperCase();
// const input = BufferPf.from(prefix + txBlobHex, "hex");
var prefix = ifUint8ToHex(hash_prefixes_1.HashPrefix.transactionID.toString().toUpperCase());
var input = Buffer.from(prefix + txBlobHex, "hex");
return (0, hashes_1.sha512Half)(input).toString().toUpperCase();
return ifUint8ToHex((0, hashes_1.sha512Half)(input).toString().toUpperCase());
}

@@ -100,0 +107,0 @@ exports.computeBinaryTransactionHash = computeBinaryTransactionHash;

{
"name": "xrpl-accountlib",
"version": "8.2.1",
"version": "8.3.0",
"description": "XRPL Account helper: generation, derivation and signing",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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