liquidjs-lib
Advanced tools
Comparing version 6.0.2-liquid.10 to 6.0.2-liquid.11
{ | ||
"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; |
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
499540
14325