Skip to content

Commit b68eb2e

Browse files
committed
tests: fix tx output asset/value commitments in liquid txs
An upcoming change will force the asset and value in trusted_commitments (if provided) to match with the values present in the transaction outputs. This change is intended to ensure that we do not mutate the transaction/sign a differently blinded version of it that the caller did not intend. Fix test cases where the transaction and commitment data are inconsistent.
1 parent 2a1524f commit b68eb2e

18 files changed

+23
-23
lines changed

test_data/liquid_txn_ae.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test_data/liquid_txn_asset_ae.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test_data/liquid_txn_asset_lowr.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test_data/liquid_txn_large_amount.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test_data/liquid_txn_large_amount2.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test_data/liquid_txn_ledger_compare.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test_data/liquid_txn_legacy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"input": {
33
"network": "localtest-liquid",
4-
"txn": "0200000000012413047d152348db4342763a0eece0d99e6e2983b3b46eda07ede58d28f201ad0100000000ffffffff020a2b712848b6f14697590b06622266e8d82cb06030896de79700b15562a20834fb0881e4ace4be80524bcc4f566e46a452ab5f43a49929cbf5743d9e1de879a478a7033fc2cd1c4ce77e4339984f786dba6591bd862cf397e8cb6a99e457e162cad68617a9142e0ef2990318d8c9f7cee627650ba2a84fdda449870125b251070e29ca19043cf33ccd7324e2ddab03ecc4ae0b5e77c4fc0e5cf6c95a0100000000000f4240000000000000",
4+
"txn": "0200000000012413047d152348db4342763a0eece0d99e6e2983b3b46eda07ede58d28f201ad0100000000ffffffff020abd23178d9ff73cf848d8d88a7c7e269a464f53017cab0f9f53ed9d64b2849713094d9a00f1661a2a805a8afec9c188310d4c43353cc319886ee4d9f439389d8f43033fc2cd1c4ce77e4339984f786dba6591bd862cf397e8cb6a99e457e162cad68617a9142e0ef2990318d8c9f7cee627650ba2a84fdda449870125b251070e29ca19043cf33ccd7324e2ddab03ecc4ae0b5e77c4fc0e5cf6c95a0100000000000f4240000000000000",
55
"trusted_commitments": [
66
{
77
"vbf": "6ec064a68075a278bfca4a10f777c730116e9ba02fbb343a237c847e4d2fbf53",

test_data/liquid_txn_legacy_ae.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"input": {
33
"network": "localtest-liquid",
44
"use_ae_signatures": true,
5-
"txn": "0200000000012413047d152348db4342763a0eece0d99e6e2983b3b46eda07ede58d28f201ad0100000000ffffffff020a2b712848b6f14697590b06622266e8d82cb06030896de79700b15562a20834fb0881e4ace4be80524bcc4f566e46a452ab5f43a49929cbf5743d9e1de879a478a7033fc2cd1c4ce77e4339984f786dba6591bd862cf397e8cb6a99e457e162cad68617a9142e0ef2990318d8c9f7cee627650ba2a84fdda449870125b251070e29ca19043cf33ccd7324e2ddab03ecc4ae0b5e77c4fc0e5cf6c95a0100000000000f4240000000000000",
5+
"txn": "0200000000012413047d152348db4342763a0eece0d99e6e2983b3b46eda07ede58d28f201ad0100000000ffffffff020abd23178d9ff73cf848d8d88a7c7e269a464f53017cab0f9f53ed9d64b2849713094d9a00f1661a2a805a8afec9c188310d4c43353cc319886ee4d9f439389d8f43033fc2cd1c4ce77e4339984f786dba6591bd862cf397e8cb6a99e457e162cad68617a9142e0ef2990318d8c9f7cee627650ba2a84fdda449870125b251070e29ca19043cf33ccd7324e2ddab03ecc4ae0b5e77c4fc0e5cf6c95a0100000000000f4240000000000000",
66
"trusted_commitments": [
77
{
88
"vbf": "6ec064a68075a278bfca4a10f777c730116e9ba02fbb343a237c847e4d2fbf53",

test_data/liquid_txn_lowr.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test_data/liquid_txn_lowr_nochange.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)