1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +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 fix(legacy): correctly import SDL2 (#1485) 2021-02-18 11:58:04 +01:00
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 feat(ci): introduce yamllint 2020-11-10 10:27:47 +01:00
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 MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
.gitignore toplevel: reorganize .gitignore files 2019-04-17 00:05:24 +02:00
buttons.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
buttons.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
common.c legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
common.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
COPYING MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
flash.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
flash.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
layout.c legacy: fix wrong logic in layoutButtonNo 2020-02-04 16:37:20 +00:00
layout.h legacy/layout: use bmp_btn_confirm, bmp_btn_cancel 2019-11-09 19:02:51 +00:00
Makefile MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
Makefile.include openocd: separate stlink configs deprecated - now combined 2021-03-09 11:41:55 +01:00
memory_app_0.0.0.ld MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
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 MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
memory.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
memory.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
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 ci: enable editorconfig checks, fix whitespace issues 2020-11-11 14:43:50 +01:00
rng.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
rng.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
secbool.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
setup.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
setup.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
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 all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
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 legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
util.c chore(legacy): simplify data2hex 2021-01-22 22:41:11 +01:00
util.h chore(legacy): simplify data2hex 2021-01-22 22:41:11 +01:00
webusb_defs.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
webusb.c legacy: show webusb popup only in bootloader and only if firmware is not installed 2020-02-12 21:01:06 +00:00
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 MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
winusb.c legacy: Move wait_random() to common.c and use HMAC DRBG to generate delays. 2019-06-11 11:41:40 +02:00
winusb.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00

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.