1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-20 14:39:22 +00:00

chore(core): Increase maximum CoinJoin coordinator name length to 36 (2 lines).

This commit is contained in:
Andrew Kozlik 2021-12-22 11:31:51 +01:00 committed by Andrew Kozlik
parent 4ab33f0b69
commit 88a08e3512
2 changed files with 3 additions and 4 deletions

View File

@ -558,7 +558,7 @@ message OwnershipProof {
message AuthorizeCoinJoin {
option (unstable) = true;
required string coordinator = 1; // coordinator identifier to approve as a prefix in commitment data (max. 18 ASCII characters)
required string coordinator = 1; // coordinator identifier to approve as a prefix in commitment data (max. 36 ASCII characters)
required uint64 max_total_fee = 2; // maximum total fees
optional uint32 fee_per_anonymity = 3 [default=0]; // fee per anonymity set in units of 10^-9 percent
repeated uint32 address_n = 4; // prefix of the BIP-32 path leading to the account (m / purpose' / coin_type' / account')

View File

@ -1,7 +1,7 @@
from micropython import const
from typing import TYPE_CHECKING
from trezor import ui
from trezor import ui, wire
from trezor.messages import AuthorizeCoinJoin, Success
from trezor.strings import format_amount
from trezor.ui.layouts import confirm_action, confirm_coinjoin
@ -15,11 +15,10 @@ from .keychain import validate_path_against_script_type, with_keychain
from .sign_tx.layout import format_coin_amount
if TYPE_CHECKING:
from trezor import wire
from apps.common.coininfo import CoinInfo
from apps.common.keychain import Keychain
_MAX_COORDINATOR_LEN = const(18)
_MAX_COORDINATOR_LEN = const(36)
@with_keychain