1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-18 05:49:11 +00:00
trezor-firmware/python/src/trezorlib
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
..
_internal test(python): add flake8-requirements 2020-09-29 11:30:40 +02:00
cli doc(python): change wording from beta wallet to beta channel 2021-03-02 10:39:20 +01:00
messages multi: Add decred staking. 2021-03-17 12:16:08 +01:00
qt style: apply black 20.8b1 2020-09-29 11:30:40 +02:00
transport style(python/src): use new syntax for typing 2020-12-01 15:52:29 +01:00
__init__.py chore!(python): bump trezorlib version because of breaking API change 2020-09-23 16:00:10 +02:00
_ed25519.py style(python/src): use new syntax for typing 2020-12-01 15:52:29 +01:00
binance.py python/trezorctl: split trezorctl into separate modules 2019-11-18 11:50:07 +01:00
btc.py common/protob: add GetAddress.ignore_xpub_magic field 2021-01-21 23:46:29 +01:00
cardano.py Add multiasset sending and min validity to Cardano transactions 2021-01-27 18:26:40 +01:00
client.py fix(python): do not log "resumed session" if there is no id 2020-12-11 11:44:01 +01:00
cosi.py style: apply black 20.8b1 2020-09-29 11:30:40 +02:00
debuglink.py feat(core): hold homescreen to lock 2021-02-24 00:10:10 +01:00
device.py feat(python): add experimental_features setting 2020-10-16 13:53:31 +02:00
eos.py chore(python): fix kwargs usage 2020-09-23 16:00:10 +02:00
ethereum.py python: drop deprecated name CallException 2020-03-26 11:30:06 +01:00
exceptions.py tests: streamline TrezorFailure exception usage 2020-03-26 11:30:06 +01:00
fido.py chore(python): fix kwargs usage 2020-09-23 16:00:10 +02:00
firmware.py style: apply black 20.8b1 2020-09-29 11:30:40 +02:00
lisk.py python: drop deprecated name CallException 2020-03-26 11:30:06 +01:00
log.py style(python/src): use new syntax for typing 2020-12-01 15:52:29 +01:00
mapping.py style(common): use new syntax for typing in autogenerated protobuf enums 2020-12-01 15:52:29 +01:00
misc.py style: fix import order in trezorlib/misc.py 2019-08-29 15:19:02 +02:00
monero.py python: restructure package 2019-08-12 12:57:25 +02:00
nem.py python: drop deprecated name CallException 2020-03-26 11:30:06 +01:00
protobuf.py style(python/src): use new syntax for typing 2020-12-01 15:52:29 +01:00
ripple.py python: restructure package 2019-08-12 12:57:25 +02:00
stellar.py style: apply black 20.8b1 2020-09-29 11:30:40 +02:00
tezos.py python: restructure package 2019-08-12 12:57:25 +02:00
toif.py style(python/src): use new syntax for typing 2020-12-01 15:52:29 +01:00
tools.py fix(python): append checksum to descriptors (#1445) 2021-02-05 17:46:02 +01:00
ui.py feat(python): add possibility to enter PIN via letters (#1496) 2021-02-23 10:39:26 +01:00