Skip to content

Commit

Permalink
Merge pull request lightninglabs#733 from ffranr/test-vectors
Browse files Browse the repository at this point in the history
Update test vectors
  • Loading branch information
ffranr authored Dec 12, 2023
2 parents 6a18d30 + 5c34042 commit 3b71255
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 277 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,16 @@ mod-check: mod-tidy

gen-deterministic-test-vectors:
@$(call print, "Generating deterministic test vectors.")
make unit gen-test-vectors=true pkg=address case=TestAddressEncoding
make unit gen-test-vectors=true pkg=asset case=TestAssetEncoding
make unit gen-test-vectors=true pkg=asset case=TestDeriveBurnKey
make unit gen-test-vectors=true pkg=mssmt case=TestProofEncoding
make unit gen-test-vectors=true pkg=mssmt case=TestInsertionOverflow
make unit gen-test-vectors=true pkg=mssmt case=TestReplaceWithEmptyBranch
make unit gen-test-vectors=true pkg=mssmt case=TestReplace
make unit gen-test-vectors=true pkg=proof case=TestGenesisProofVerification
make unit gen-test-vectors=true pkg=tappsbt case=TestEncodingDecoding
make unit gen-test-vectors=true pkg=vm case=TestVM
make unit gen-test-vectors=true pkg=address case=^TestAddressEncoding$
make unit gen-test-vectors=true pkg=asset case=^TestAssetEncoding$
make unit gen-test-vectors=true pkg=asset case=^TestDeriveBurnKey$
make unit gen-test-vectors=true pkg=mssmt case=^TestProofEncoding$
make unit gen-test-vectors=true pkg=mssmt case=^TestInsertionOverflow$
make unit gen-test-vectors=true pkg=mssmt case=^TestReplaceWithEmptyBranch$
make unit gen-test-vectors=true pkg=mssmt case=^TestReplace$
make unit gen-test-vectors=true pkg=proof case=^TestGenesisProofVerification$
make unit gen-test-vectors=true pkg=tappsbt case=^TestEncodingDecoding$
make unit gen-test-vectors=true pkg=vm case=^TestVM$

gen-itest-test-vectors:
@$(call print, "Generating test vectors from integration tests.")
Expand Down
8 changes: 4 additions & 4 deletions mssmt/testdata/mssmt_tree_deletion.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
{
"key": "0200000000000000000000000000000000000000000000000000000000000000",
"node": {
"value": "7723b9faf9c51fd5d5788bb39d3c068fa6807d30f6201d3f6dfd31715d08b1733440cde1049608d23c4e45c5ed61f863350232f85827e7c292dc5f1eced1cbc912e3f5c420bd945911d3881ede5153d3b2cc85371fff98d2caf97cad6ef590014017f9690cab08989851",
"sum": "2977921451"
"value": "83f15fb9680b4e7c8b763a1b1d49d4955c8486216325253fec738dd7a9e28bf921119c160f0702448615bbda08313f6a8eb668d20bf5059875921e668a5bdf2c7fc4844592d2572bcd0668d2d6c52f5054e2d0836bf84c7174cb7476364cc3dbd968b0f7172ed85794bb358b0c3b525da1786f9fff094279db1944ebd7a19d0f7bbacbe0255aa5b7d44bec40f84c892b9bffd43629b0223beea5f4f74391f445d15afd4294040374f6924b98cbf8713f8d962d7c8d019192c24224e2cafccae3a61fb586b14323a6bc8f9e7df1d929333ff993933bea6f5b3af6de0374366c4719e43a1b067d89bc7f01f1f573981659",
"sum": "3808566791"
}
},
{
"key": "0400000000000000000000000000000000000000000000000000000000000000",
"node": {
"value": "79f8f54e3133fc2cdef259df2ba0d48f37bf9e43792e3a777214cf4aab6dde6deeb543a8813b71b5974136c1220d6218a252881f0f5677ff5b6aba127f19a5f3c5aac988543d7839a90a3f947c4e4d5c6ae1ab48dbd40456d1aa65339a4c15eb520e8ff9f965ac4c37735937cf09942e7958f8a6cddee41707423f715903ffe0d15af8c3140d3a736d23be7485fceb9f07c6509f2c506eda4ec9d30ccc133708f48d8828e332808c84a745d337296d871b9794de1c5d06534aaf65587526a84e2521f8b332645e0e72564bb308ecf99b7bc69608474389d1",
"sum": "3351083531"
"value": "a44f7dbb5722f5717a289a266f97647981998ebea89c0b4b373970115e82ed6f4125c8fa7311e4d7defa922daae7786667f7e936cd4f24abf7df866baa56",
"sum": "1027230157"
}
}
],
Expand Down
Loading

0 comments on commit 3b71255

Please sign in to comment.