1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 03:18:09 +00:00
trezor-firmware/legacy/firmware/protob
Alexis Hernandez bb1c638d3b legacy: Update op_return max size to 150 bytes
The goal is to allow Trezor 1 to create TPoS contracts for Stakenet.

Last year, Stakenet introduced a hard-fork [1] to change the way TPoS contracts
are created, instead of a custom signature method, now it works with the
output from the signMessage method, while this works for Trezor T, it doesn't
work for Trezor 1 due to the 80 bytes limit on the OP_RETURN output while
Stakenet allows up to 150 bytes [2], in a gitter discussion [3] we concluded that
the change should be fine.

The hard-fork was introduced because we couldn't got our TPoS contracts PR accepted [4],
the OP_RETURN still contains the same data, its just stored in a different way:
- The TPoS address, where the coins to stake are stored, and where rewards are received.
- The merchant address, where the merchant receives its commission.
- The contract commission.
- The TPoS collateral signature (this is what uses the signMessage now).

At last, there is an example transaction creating a TPoS contract [5].

[1]: https://github.com/X9Developers/XSN/pull/154
[2]: https://github.com/X9Developers/XSN/blob/master/src/script/standard.h#L34
[3]: https://gitter.im/trezor/community?at=6064c41e940f1d555e2ea670
[4]: https://github.com/trezor/trezor-firmware/pull/140
[5]: https://xsnexplorer.io/transactions/858feb31097501cf68d698cde104cf778ec51ff3668e943404b549a5dd2f5792
2021-04-06 10:15:59 +02:00
..
.gitignore MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
Makefile fix(legacy): Skip unused messages in nanopb. 2021-03-17 22:34:26 +01:00
messages_map.py fix(legacy): Improve compile-time checks of message sizes. 2021-03-17 22:34:26 +01:00
messages-bitcoin.options legacy: Update op_return max size to 150 bytes 2021-04-06 10:15:59 +02:00
messages-bitcoin.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-common.options feat(legacy): Support 50 digit PIN and wipe code. 2021-03-25 14:24:41 +01:00
messages-common.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-crypto.options feat(legacy): add public_key to ECDHSessionKey 2021-03-08 15:59:00 +01:00
messages-crypto.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-debug.options feat(legacy): Support 50 digit PIN and wipe code. 2021-03-25 14:24:41 +01:00
messages-debug.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-ethereum.options common: skip deprecated fields during generation; deprecate overwintered field in Zcash 2020-06-30 16:02:21 +02:00
messages-ethereum.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-lisk.options MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-lisk.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-management.options feat(legacy): Support 50 digit PIN and wipe code. 2021-03-25 14:24:41 +01:00
messages-management.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-nem.options MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-nem.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-stellar.options MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages-stellar.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages.options MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
messages.proto MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00