1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 05:48:23 +00:00
trezor-firmware/common/protob
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
..
.gitignore MONOREPO MERGE trezor-common 2019-04-15 19:14:45 +02:00
check.py common/messages: Add credential management message. 2019-09-17 18:32:31 +02:00
graph.py MONOREPO MERGE trezor-common 2019-04-15 19:14:45 +02:00
Makefile fix(common): update protob combine script to reflect new changes 2020-12-10 16:53:00 +01:00
messages-binance.proto feat(common): set more fields as required (#1406) 2021-02-10 10:56:52 +01:00
messages-bitcoin.proto multi: Add decred staking. 2021-03-17 12:16:08 +01:00
messages-bootloader.proto MONOREPO MERGE trezor-common 2019-04-15 19:14:45 +02:00
messages-cardano.proto feat(core/cardano): enable typing for Cardano app 2021-02-10 10:56:52 +01:00
messages-common.proto feat(common): set more fields as required (#1406) 2021-02-10 10:56:52 +01:00
messages-crypto.proto feat(common): add public_key to ECDHSessionKey 2021-03-08 15:59:00 +01:00
messages-debug.proto feat(common): add hold_ms to DebugLinkDecision 2021-02-24 00:10:10 +01:00
messages-eos.proto feat(common): set more fields as required (#1406) 2021-02-10 10:56:52 +01:00
messages-ethereum.proto feat(common): set more fields as required (#1406) 2021-02-10 10:56:52 +01:00
messages-lisk.proto feat(common): set more fields as required (#1406) 2021-02-10 10:56:52 +01:00
messages-management.proto chore(legacy): return code for reboot call 2021-03-03 12:06:59 +01:00
messages-monero.proto xmr: proto - add fields for protocol optimization 2020-04-13 22:19:56 +02:00
messages-nem.proto feat(common): set more fields as required (#1406) 2021-02-10 10:56:52 +01:00
messages-ripple.proto feat(common): set more fields as required (#1406) 2021-02-10 10:56:52 +01:00
messages-stellar.proto feat(common): set more fields as required (#1406) 2021-02-10 10:56:52 +01:00
messages-tezos.proto feat(common): set more fields as required (#1406) 2021-02-10 10:56:52 +01:00
messages-webauthn.proto core/webauthn: Add algorithm and curve to WebAuthnListResidentCredentials response. 2020-03-12 15:45:26 +01:00
messages.proto fix(common): change msg_id of RebootToBootloader from 804 to 87 2021-03-03 12:07:00 +01:00
pb2py style(common): use new syntax for typing in autogenerated protobuf enums 2020-12-01 15:52:29 +01:00
protocol.md all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00