mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-05 05:15:27 +00:00
![]() 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 |
||
---|---|---|
.. | ||
protob | ||
u2f | ||
.gitignore | ||
bl_check.c | ||
bl_check.h | ||
bl_data.py | ||
bootloader.dat | ||
CHANGELOG.md | ||
coin_info.c.mako | ||
coin_info.h.mako | ||
coins.c | ||
coins.h | ||
config.c | ||
config.h | ||
crypto.c | ||
crypto.h | ||
debug.c | ||
debug.h | ||
defs | ||
ethereum_networks.h.mako | ||
ethereum_tokens.c.mako | ||
ethereum_tokens.h.mako | ||
ethereum.c | ||
ethereum.h | ||
fsm_msg_coin.h | ||
fsm_msg_common.h | ||
fsm_msg_crypto.h | ||
fsm_msg_debug.h | ||
fsm_msg_ethereum.h | ||
fsm_msg_lisk.h | ||
fsm_msg_nem.h | ||
fsm_msg_stellar.h | ||
fsm.c | ||
fsm.h | ||
gettext.h | ||
header.S | ||
layout2.c | ||
layout2.h | ||
lisk.c | ||
lisk.h | ||
Makefile | ||
messages.c | ||
messages.h | ||
nem2.c | ||
nem2.h | ||
nem_mosaics.c.mako | ||
nem_mosaics.h.mako | ||
otp.c | ||
otp.h | ||
pinmatrix.c | ||
pinmatrix.h | ||
protect.c | ||
protect.h | ||
recovery-table.h | ||
recovery.c | ||
recovery.h | ||
reset.c | ||
reset.h | ||
signing.c | ||
signing.h | ||
stellar.c | ||
stellar.h | ||
transaction.c | ||
transaction.h | ||
trezor.c | ||
trezor.h | ||
u2f_knownapps.h.mako | ||
u2f.c | ||
u2f.h | ||
udp.c | ||
usb.c | ||
usb.h | ||
version.h |