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

liquidjs-lib

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liquidjs-lib - npm Package Compare versions

Comparing version 6.0.2-liquid.10 to 6.0.2-liquid.11

2

package.json
{
"name": "liquidjs-lib",
"version": "6.0.2-liquid.10",
"version": "6.0.2-liquid.11",
"description": "Client-side Liquid JavaScript library",

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

@@ -74,2 +74,4 @@ /// <reference types="node" />

}
export declare function confidentialValueToSatoshi(value: Buffer): number;
export declare function satoshiToConfidentialValue(amount: number): Buffer;
export {};

@@ -52,3 +52,3 @@ 'use strict';

Object.defineProperty(exports, '__esModule', { value: true });
exports.ZKPGenerator = exports.ZKPValidator = exports.assetBlindProofVerify = exports.blindAssetProof = exports.blindValueProof = exports.surjectionProofVerify = exports.surjectionProof = exports.rangeProof = exports.rangeProofVerify = exports.rangeProofWithNonceHash = exports.rangeProofInfo = exports.unblindOutputWithNonce = exports.unblindOutputWithKey = exports.assetCommitment = exports.valueCommitment = exports.valueBlindingFactor = void 0;
exports.satoshiToConfidentialValue = exports.confidentialValueToSatoshi = exports.ZKPGenerator = exports.ZKPValidator = exports.assetBlindProofVerify = exports.blindAssetProof = exports.blindValueProof = exports.surjectionProofVerify = exports.surjectionProof = exports.rangeProof = exports.rangeProofVerify = exports.rangeProofWithNonceHash = exports.rangeProofInfo = exports.unblindOutputWithNonce = exports.unblindOutputWithKey = exports.assetCommitment = exports.valueCommitment = exports.valueBlindingFactor = void 0;
const crypto = __importStar(require('./crypto'));

@@ -809,1 +809,9 @@ const transaction_1 = require('./transaction');

}
function confidentialValueToSatoshi(value) {
return value_1.ElementsValue.fromBytes(value).number;
}
exports.confidentialValueToSatoshi = confidentialValueToSatoshi;
function satoshiToConfidentialValue(amount) {
return value_1.ElementsValue.fromNumber(amount).bytes;
}
exports.satoshiToConfidentialValue = satoshiToConfidentialValue;
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