1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00
trezor-firmware/tests/txcache
JoeGruff e3ea32a986 multi: Add decred staking.
Add two new input and four output script types.

Decred ticket purchases consist of a stake submission, op returns, and
change addresses. Although change addresses are allowed by consensus,
they are no longer used in practice and so have been given the
restrictions of a null pubkey and no value. Stake scripts are almost
identical to p2pkh or p2sh except for an extra opcode in front. Inputs
are currently only used in the form of one input three outputs with the
first output, or stake submission, paying to a public key hash, or with
two inputs and five outputs with the stake submission paying to a
multisig script hash. The op returns are directed to the user in the
case of one and the voting service provider and user in the case of two.

One of the sstx commitment for a ticket must pay back to the trezor
wallet. This is checked and an error is thrown if we don't find the
expected public key hash.

Because this adds the ability to create new types of outputs once the
ticket votes, two new input script types are also needed. A successful
vote will lead to a stake generation script that must be spent, and an
unsuccessful vote will lead to a revocation script that must be spent.
If we allowed stake change scripts to have a valid pubkey, that too
would require another op code, but we disallow those for output.
2021-03-17 12:16:08 +01:00
..
bcash tests: add tests for invalid paths 2020-08-21 11:49:03 +02:00
bgold tests/sign_tx: Add device tests for transactions with external inputs in bgold, bcash and zcash. 2020-07-03 11:17:19 +02:00
bitcoin test: Add device tests for replacement transaction flow. 2020-10-23 15:07:15 +02:00
capricoin tests: rework tx cache 2020-03-26 11:30:06 +01:00
dash tests: rework tx cache 2020-03-26 11:30:06 +01:00
decred_testnet multi: Add decred staking. 2021-03-17 12:16:08 +01:00
groestlcoin tests: rework tx cache 2020-03-26 11:30:06 +01:00
groestlcoin_testnet tests: add request_meta queries (needed for transaction streaming) 2020-05-24 14:36:37 +00:00
komodo chore(tests): update to kwargs usage and new btc.sign_tx API 2020-09-23 16:00:10 +02:00
peercoin tests: rework tx cache 2020-03-26 11:30:06 +01:00
testnet chore(tests): Use strings instead of integers for script_type in tx_cache. 2020-12-22 17:10:33 +01:00
zcash_testnet chore(tests): update to kwargs usage and new btc.sign_tx API 2020-09-23 16:00:10 +02:00