liquidjs-lib
Advanced tools
Comparing version 6.0.2-liquid.21 to 6.0.2-liquid.22
{ | ||
"name": "liquidjs-lib", | ||
"version": "6.0.2-liquid.21", | ||
"version": "6.0.2-liquid.22", | ||
"description": "Client-side Liquid JavaScript library", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -9,2 +9,3 @@ 'use strict'; | ||
const issuance_1 = require('../issuance'); | ||
const asset_1 = require('../asset'); | ||
class ZKPValidator { | ||
@@ -436,3 +437,3 @@ constructor(zkpLib) { | ||
return pset.inputs.map((input, i) => { | ||
const ownedInput = this.ownedInputs.find(({ index }) => index === i); | ||
const ownedInput = this.ownedInputs?.find(({ index }) => index === i); | ||
if (ownedInput) { | ||
@@ -446,6 +447,10 @@ return { | ||
} | ||
const utxo = input.getUtxo(); | ||
if (!utxo) { | ||
throw new Error(`Missing utxo for input #${i}`); | ||
} | ||
return { | ||
value: '', | ||
valueBlindingFactor: Buffer.from([]), | ||
asset: input.getUtxo().asset, | ||
asset: asset_1.AssetHash.fromBytes(utxo.asset).bytesWithoutPrefix, | ||
assetBlindingFactor: transaction_1.ZERO, | ||
@@ -452,0 +457,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
513564
14833