-
-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reuse derived Shamir seed and split off test fixtures #1107
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"setup": { | ||
"mnemonic": "alcohol woman abuse must during monitor noble actual mixed trade anger aisle", | ||
"passphrase": false | ||
}, | ||
"tests": [ | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/0'/0/0" | ||
}, | ||
"result": { | ||
"success": true, | ||
"expected_address": "Ae2tdPwUPEZLCq3sFv4wVYxwqjMH2nUzBVt1HFr4v87snYrtYq3d3bq2PUQ" | ||
} | ||
}, | ||
{ | ||
"parameters":{ | ||
"path": "m/44'/1815'/0'/0/1" | ||
}, | ||
"result": { | ||
"success":true, | ||
"expected_address": "Ae2tdPwUPEZEY6pVJoyuNNdLp7VbMB7U7qfebeJ7XGunk5Z2eHarkcN1bHK" | ||
} | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/0'/0/2" | ||
}, | ||
"result": { | ||
"success": true, | ||
"expected_address": "Ae2tdPwUPEZ3gZD1QeUHvAqadAV59Zid6NP9VCR9BG5LLAja9YtBUgr6ttK" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"setup": { | ||
"mnemonic": [ | ||
"extra extend academic bishop cricket bundle tofu goat apart victim enlarge program behavior permit course armed jerky faint language modern", | ||
"extra extend academic acne away best indicate impact square oasis prospect painting voting guest either argue username racism enemy eclipse", | ||
"extra extend academic arcade born dive legal hush gross briefing talent drug much home firefly toxic analysis idea umbrella slice" | ||
], | ||
"passphrase": "TREZOR" | ||
}, | ||
"tests": [ | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/0'/0/0" | ||
}, | ||
"result":{ | ||
"success":true, | ||
"expected_address": "Ae2tdPwUPEYxF9NAMNdd3v2LZoMeWp7gCZiDb6bZzFQeeVASzoP7HC4V9s6" | ||
} | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/0'/0/1" | ||
}, | ||
"result": { | ||
"success": true, | ||
"expected_address": "Ae2tdPwUPEZ1TjYcvfkWAbiHtGVxv4byEHHZoSyQXjPJ362DifCe1ykgqgy" | ||
} | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/0'/0/2" | ||
}, | ||
"result": { | ||
"success": true, | ||
"expected_address": "Ae2tdPwUPEZGXmSbda1kBNfyhRQGRcQxJFdk7mhWZXAGnapyejv2b2U3aRb" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"setup": { | ||
"mnemonic": "all all all all all all all all all all all all", | ||
"passphrase": false | ||
}, | ||
"tests": [ | ||
{ | ||
"parameters":{ | ||
"path": "m/44'/1815'/0'" | ||
}, | ||
"result":{ | ||
"success":true, | ||
"public_key": "c0fce1839f1a84c4e770293ac2f5e0875141b29017b7f56ab135352d00ad6966", | ||
"chain_code": "07faa161c9f5464315d2855f70fdf1431d5fa39eb838767bf17b69772137452f" | ||
} | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/1'" | ||
}, | ||
"result": { | ||
"success": true, | ||
"public_key": "ea5dde31b9f551e08a5b6b2f98b8c42c726f726c9ce0a7072102ead53bd8f21e", | ||
"chain_code": "70f131bb799fd659c997221ad8cae7dcce4e8da701f8101cf15307fd3a3712a1" | ||
} | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/2'" | ||
}, | ||
"result": { | ||
"success": true, | ||
"public_key": "076338cee5ab3dae19f06ccaa80e3d4428cf0e1bdc04243e41bba7be63a90da7", | ||
"chain_code": "5dcdf129f6f2d108292e615c4b67a1fc41a64e6a96130f5c981e5e8e046a6cd7" | ||
} | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/3'" | ||
}, | ||
"result": { | ||
"success": true, | ||
"public_key": "5f769380dc6fd17a4e0f2d23aa359442a712e5e96d7838ebb91eb020003cccc3", | ||
"chain_code": "1197ea234f528987cbac9817ebc31344395b837a3bb7c2332f87e095e70550a5" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"setup": { | ||
"mnemonic": [ | ||
"extra extend academic bishop cricket bundle tofu goat apart victim enlarge program behavior permit course armed jerky faint language modern", | ||
"extra extend academic acne away best indicate impact square oasis prospect painting voting guest either argue username racism enemy eclipse", | ||
"extra extend academic arcade born dive legal hush gross briefing talent drug much home firefly toxic analysis idea umbrella slice" | ||
], | ||
"passphrase": "TREZOR" | ||
}, | ||
"tests": [ | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/0'/0/0" | ||
}, | ||
"result": { | ||
"success": true, | ||
"public_key": "bc043d84b8b891d49890edb6aced6f2d78395f255c5b6aea8878b913f83e8579", | ||
"chain_code": "dc3f0d2b5cccb822335ef6213fd133f4ca934151ec44a6000aee43b8a101078c" | ||
} | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/0'/0/1" | ||
}, | ||
"result": { | ||
"success": true, | ||
"public_key": "24c4fe188a39103db88818bc191fd8571eae7b284ebcbdf2462bde97b058a95c", | ||
"chain_code": "6f7a744035f4b3ddb8f861c18446169643cc3ae85e271b4b4f0eda05cf84c65b" | ||
} | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "m/44'/1815'/0'/0/2" | ||
}, | ||
"result": { | ||
"success": true, | ||
"public_key": "831a63d381a8dab1e6e1ee991a4300fc70687aae5f97f4fcf92ed1b6c2bd99de", | ||
"chain_code": "672d6af4707aba201b7940231e83dd357f92f8851b3dfdc224ef311e1b64cdeb" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"setup": { | ||
"mnemonic": "all all all all all all all all all all all all", | ||
"passphrase": "" | ||
}, | ||
"tests": [ | ||
{ | ||
"description": "Output address is a valid CBOR but invalid Cardano address", | ||
"parameters": { | ||
"protocol_magic": 764824073, | ||
"inputs": [ | ||
{ | ||
"path": "m/44'/1815'/0'/0/1", | ||
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc", | ||
"prev_index": 0, | ||
"type": 0 | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"address": "jsK75PTH2esX8k4Wvxenyz83LJJWToBbVmGrWUer2CHFHanLseh7r3sW5X5q", | ||
"amount": "3003112" | ||
} | ||
], | ||
"prev_tx": [ | ||
"839f8200d818582482582008abb575fac4c39d5bf80683f7f0c37e48f4e3d96e37d1f6611919a7241b456600ff9f8282d818582183581cda4da43db3fca93695e71dab839e72271204d28b9d964d306b8800a8a0001a7a6916a51a00305becffa0" | ||
] | ||
}, | ||
"result": { | ||
"success": false, | ||
"error": "Invalid output address!" | ||
} | ||
}, | ||
{ | ||
"description": "Output address is invalid CBOR", | ||
"parameters": { | ||
"protocol_magic": 764824073, | ||
"inputs": [ | ||
{ | ||
"path": "m/44'/1815'/0'/0/1", | ||
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc", | ||
"prev_index": 0, | ||
"type": 0 | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"address": "5dnY6xgRcNUSLGa4gfqef2jGAMHb7koQs9EXErXLNC1LiMPUnhn8joXhvEJpWQtN3F4ysATcBvCn5tABgL3e4hPWapPHmcK5GJMSEaET5JafgAGwSrznzL1Mqa", | ||
"amount": "3003112" | ||
} | ||
], | ||
"prev_tx": [ | ||
"839f8200d818582482582008abb575fac4c39d5bf80683f7f0c37e48f4e3d96e37d1f6611919a7241b456600ff9f8282d818582183581cda4da43db3fca93695e71dab839e72271204d28b9d964d306b8800a8a0001a7a6916a51a00305becffa0" | ||
] | ||
}, | ||
"result": { | ||
"success": false, | ||
"error": "Invalid output address!" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"setup": { | ||
"mnemonic": "all all all all all all all all all all all all", | ||
"passphrase": "" | ||
}, | ||
"tests": [ | ||
{ | ||
"description": "Mainnet transaction without change", | ||
"parameters": { | ||
"protocol_magic": 764824073, | ||
"inputs": [ | ||
{ | ||
"path": "m/44'/1815'/0'/0/1", | ||
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc", | ||
"prev_index": 0, | ||
"type": 0 | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2", | ||
"amount": "3003112" | ||
} | ||
], | ||
"prev_tx": [ | ||
"839f8200d818582482582008abb575fac4c39d5bf80683f7f0c37e48f4e3d96e37d1f6611919a7241b456600ff9f8282d818582183581cda4da43db3fca93695e71dab839e72271204d28b9d964d306b8800a8a0001a7a6916a51a00305becffa0" | ||
] | ||
}, | ||
"result": { | ||
"success": true, | ||
"tx_hash": "799c65e8a2c0b1dc4232611728c09d3f3eb0d811c077f8e9798f84605ef1b23d", | ||
"tx_body": "82839f8200d81858248258201af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc00ff9f8282d818582183581c9e1c71de652ec8b85fec296f0685ca3988781c94a2e1a5d89d92f45fa0001a0d0c25611a002dd2e8ffa0818200d818588582584089053545a6c254b0d9b1464e48d2b5fcf91d4e25c128afb1fcfc61d0843338ea26308151516f3b0e02bb1638142747863c520273ce9bd3e5cd91e1d46fe2a6355840312c01c27317415b0b8acc86aa789da877fe7e15c65b7ea4c4565d8739117f5f6d9d38bf5d058f7be809b2b9b06c1d79fc6b20f9a4d76d8c89bae333edf5680c" | ||
} | ||
}, | ||
{ | ||
"description": "Mainnet transaction with change", | ||
"parameters": { | ||
"protocol_magic": 764824073, | ||
"inputs": [ | ||
{ | ||
"path": "m/44'/1815'/0'/0/1", | ||
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc", | ||
"prev_index": 0, | ||
"type": 0 | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2", | ||
"amount": "3003112" | ||
}, | ||
{ | ||
"path": "m/44'/1815'/0'/0/1", | ||
"amount": "1000000" | ||
} | ||
], | ||
"prev_tx": [ | ||
"839f8200d818582482582008abb575fac4c39d5bf80683f7f0c37e48f4e3d96e37d1f6611919a7241b456600ff9f8282d818582183581cda4da43db3fca93695e71dab839e72271204d28b9d964d306b8800a8a0001a7a6916a51a00305becffa0" | ||
] | ||
}, | ||
"result": { | ||
"success": true, | ||
"tx_hash": "40bf94518f31aba7779dd99aa71fe867887bcb3e0bac2c6dc33d3f20ec74a6b1", | ||
"tx_body": "82839f8200d81858248258201af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc00ff9f8282d818582183581c9e1c71de652ec8b85fec296f0685ca3988781c94a2e1a5d89d92f45fa0001a0d0c25611a002dd2e88282d818582183581cda4da43db3fca93695e71dab839e72271204d28b9d964d306b8800a8a0001a7a6916a51a000f4240ffa0818200d818588582584089053545a6c254b0d9b1464e48d2b5fcf91d4e25c128afb1fcfc61d0843338ea26308151516f3b0e02bb1638142747863c520273ce9bd3e5cd91e1d46fe2a63558400b47193163462023bdb72f03b2f6afc8e3645dbc9252cb70f7516da402ce3b8468e4a60929674de5862d6253315008e07b60aa189f5c455dd272ff1c84c89d0c" | ||
} | ||
}, | ||
{ | ||
"description": "Testnet transaction", | ||
"parameters": { | ||
"protocol_magic": 1097911063, | ||
"inputs": [ | ||
{ | ||
"path": "m/44'/1815'/0'/0/1", | ||
"prev_hash": "1af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc", | ||
"prev_index": 0, | ||
"type": 0 | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"address": "Ae2tdPwUPEZCanmBz5g2GEwFqKTKpNJcGYPKfDxoNeKZ8bRHr8366kseiK2", | ||
"amount": "3003112" | ||
} | ||
], | ||
"prev_tx": [ | ||
"839f8200d818582482582008abb575fac4c39d5bf80683f7f0c37e48f4e3d96e37d1f6611919a7241b456600ff9f8282d818582183581cda4da43db3fca93695e71dab839e72271204d28b9d964d306b8800a8a0001a7a6916a51a00305becffa0" | ||
] | ||
}, | ||
"result": { | ||
"success": true, | ||
"tx_hash": "799c65e8a2c0b1dc4232611728c09d3f3eb0d811c077f8e9798f84605ef1b23d", | ||
"tx_body": "82839f8200d81858248258201af8fa0b754ff99253d983894e63a2b09cbb56c833ba18c3384210163f63dcfc00ff9f8282d818582183581c9e1c71de652ec8b85fec296f0685ca3988781c94a2e1a5d89d92f45fa0001a0d0c25611a002dd2e8ffa0818200d818588582584089053545a6c254b0d9b1464e48d2b5fcf91d4e25c128afb1fcfc61d0843338ea26308151516f3b0e02bb1638142747863c520273ce9bd3e5cd91e1d46fe2a63558403594ee7e2bfe4c84f886a8336cecb7c42983ce9a057345ebb6294a436087d8db93ca78cf514c7c48edff4c8435f690a5817951e2b55d2db729875ee7cc0f7d08" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still need the
success
field if the vectors are in separate files?