1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00
trezor-firmware/legacy
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
..
bootloader docs(changelog): next bootloader/firmware version will be 1.10.0 2021-03-05 18:32:23 +01:00
demo fix(legacy): store only half of the logo64, use flip to render both parts 2021-03-03 16:23:53 +01:00
emulator
firmware legacy: Update op_return max size to 150 bytes 2021-04-06 10:15:59 +02:00
gen fix(legacy): cleanup bitmaps, use 1-bit PNG, update generate script 2021-03-03 16:23:53 +01:00
gitian
intermediate_fw chore(legacy): update Changelogs 2021-03-03 12:06:58 +01:00
script legacy/intermediate_fw: Intermediate firmware for T1 (#1084) 2020-08-21 14:58:13 +02:00
vendor move vendored submodules to root vendor/ dir 2019-05-13 13:51:53 +02:00
.dockerignore
.gitignore
buttons.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
buttons.h
common.c
common.h
COPYING
flash.c
flash.h
layout.c
layout.h legacy/layout: use bmp_btn_confirm, bmp_btn_cancel 2019-11-09 19:02:51 +00:00
Makefile
Makefile.include openocd: separate stlink configs deprecated - now combined 2021-03-09 11:41:55 +01:00
memory_app_0.0.0.ld
memory_app_1.0.0.ld chore(legacy): unify {go,return}_to_bootloader => stay_in_bootloader 2021-03-03 12:06:57 +01:00
memory_app_1.8.0.ld chore(legacy): unify {go,return}_to_bootloader => stay_in_bootloader 2021-03-03 12:06:57 +01:00
memory_app_fastflash.ld
memory.c
memory.h
memory.ld chore(legacy): unify {go,return}_to_bootloader => stay_in_bootloader 2021-03-03 12:06:57 +01:00
norcow_config.h feat(legacy): Support 50 digit PIN and wipe code. 2021-03-25 14:24:41 +01:00
oled.c fix(legacy): Flip bitmaps correctly. 2021-03-26 14:49:21 +01:00
oled.h fix(legacy): store only half of the logo64, use flip to render both parts 2021-03-03 16:23:53 +01:00
README.md
rng.c
rng.h
secbool.h
setup.c
setup.h
startup.S chore(legacy): unify {go,return}_to_bootloader => stay_in_bootloader 2021-03-03 12:06:57 +01:00
supervise.c chore(legacy): unify {go,return}_to_bootloader => stay_in_bootloader 2021-03-03 12:06:57 +01:00
supervise.h fix(legacy): change STAY_IN_BOOTLOADER_FLAG to 0x0FC35A96 2021-03-03 16:18:31 +01:00
timer.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
timer.h
usb21_standard.c legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
usb21_standard.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
usb_private.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
usb_standard.c
util.c chore(legacy): simplify data2hex 2021-01-22 22:41:11 +01:00
util.h
webusb_defs.h
webusb.c
webusb.h legacy: show webusb popup only in bootloader and only if firmware is not installed 2020-02-12 21:01:06 +00:00
winusb_defs.h
winusb.c
winusb.h

Trezor Legacy

Firmware currently running on Model One. If you are working on a new feature, you probably want to contribute this to Core.

See docs/legacy for more info.