Skip to content

Commit

Permalink
fixup! feat(common): Add no_script_type option to SignMessage.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkozlik committed Nov 10, 2021
1 parent e7ed41b commit ed627c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/protob/messages-bitcoin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ message SignMessage {
required bytes message = 2; // message to be signed
optional string coin_name = 3 [default='Bitcoin']; // coin to use for signing
optional InputScriptType script_type = 4 [default=SPENDADDRESS]; // used to distinguish between various address formats (non-segwit, segwit, etc.)
optional bool no_script_type = 5 [default=false]; // don't include script type information in the recovery byte of the signature, same as in Bitcoin Core
optional bool no_script_type = 5; // don't include script type information in the recovery byte of the signature, same as in Bitcoin Core
}

/**
Expand Down
2 changes: 1 addition & 1 deletion core/src/trezor/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ class SignMessage(protobuf.MessageType):
message: "bytes"
coin_name: "str"
script_type: "InputScriptType"
no_script_type: "bool"
no_script_type: "bool | None"

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion python/src/trezorlib/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ def __init__(
address_n: Optional[List["int"]] = None,
coin_name: Optional["str"] = 'Bitcoin',
script_type: Optional["InputScriptType"] = InputScriptType.SPENDADDRESS,
no_script_type: Optional["bool"] = False,
no_script_type: Optional["bool"] = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.message = message
Expand Down

0 comments on commit ed627c4

Please sign in to comment.