1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00
trezor-firmware/core
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
..
assets MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
embed fix(core): switch define to invert display colors into const volatile 2021-03-11 12:29:00 +01:00
mocks feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator. 2021-03-09 16:13:21 +01:00
prof chore: gitignore memperf results 2020-12-11 11:37:56 +01:00
site_scons/site_tools/micropython core: remove qstr blacklist 2020-01-07 20:52:43 +01:00
src multi: Add decred staking. 2021-03-17 12:16:08 +01:00
tests multi: Add decred staking. 2021-03-17 12:16:08 +01:00
tools feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator. 2021-03-09 16:13:21 +01:00
vendor move vendored submodules to root vendor/ dir 2019-05-13 13:51:53 +02:00
.dockerignore MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
.gitignore core: git ignore coverage outputs 2019-06-26 22:10:05 +02:00
.pylintrc style: improve pylint exclusions 2019-05-07 16:31:04 +02:00
asan_blacklist.txt core: asan config 2019-06-27 19:09:55 +02:00
AUTHORS MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
CHANGELOG.md multi: Add decred staking. 2021-03-17 12:16:08 +01:00
COPYING MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
emu.py ci: enable editorconfig checks, fix whitespace issues 2020-11-11 14:43:50 +01:00
emu.sh core: remove src1 2020-08-03 15:59:57 +02:00
Makefile openocd: separate stlink configs deprecated - now combined 2021-03-09 11:41:55 +01:00
README.md ci: enable editorconfig checks, fix whitespace issues 2020-11-11 14:43:50 +01:00
SConscript.boardloader core: introduce TREZOR_MODEL flag (#1233) 2020-08-28 14:50:38 +02:00
SConscript.bootloader fix(core): fix reflash build, remove qrcodegen where not used 2021-01-21 15:58:54 +01:00
SConscript.bootloader_ci fix(core): fix reflash build, remove qrcodegen where not used 2021-01-21 15:58:54 +01:00
SConscript.firmware refactor(core): introduce layouts 2021-02-10 13:57:19 +01:00
SConscript.prodtest core: introduce TREZOR_MODEL flag (#1233) 2020-08-28 14:50:38 +02:00
SConscript.reflash fix(core): fix reflash build, remove qrcodegen where not used 2021-01-21 15:58:54 +01:00
SConscript.unix refactor(core): introduce layouts 2021-02-10 13:57:19 +01:00
SConstruct core/bootloader_ci: fix typos in the previous commit 2020-08-21 14:47:35 +02:00

Trezor Core

Firmware currently running on Model T.

See docs/core for more info.