Skip to content

Commit

Permalink
Cardano: allow serialization using 258-tagged sets
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Dec 28, 2024
1 parent e6251ca commit 56d9335
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 75 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ customers cannot upgrade their bootloader, its changes are recorded separately.
- Update manufacturer HID descriptor to bitbox.swiss
- Ethereum: remove deprecated Goerli network
- SD card: solve backup bug when sd card is re-inserted
- Cardano: allow serialization using 258-tagged sets

### 9.21.0
- Bitcoin: add support for sending to silent payment (BIP-352) addresses
Expand Down
1 change: 1 addition & 0 deletions messages/cardano.proto
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ message CardanoSignTransactionRequest {
repeated Withdrawal withdrawals = 7;
uint64 validity_interval_start = 8;
bool allow_zero_ttl = 9; // include ttl even if it is zero
bool tag_cbor_sets = 10;
}

message CardanoSignTransactionResponse {
Expand Down
60 changes: 30 additions & 30 deletions py/bitbox02/bitbox02/communication/generated/cardano_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion py/bitbox02/bitbox02/communication/generated/cardano_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ class CardanoSignTransactionRequest(google.protobuf.message.Message):
WITHDRAWALS_FIELD_NUMBER: builtins.int
VALIDITY_INTERVAL_START_FIELD_NUMBER: builtins.int
ALLOW_ZERO_TTL_FIELD_NUMBER: builtins.int
TAG_CBOR_SETS_FIELD_NUMBER: builtins.int
network: global___CardanoNetwork.ValueType
@property
def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CardanoSignTransactionRequest.Input]: ...
Expand All @@ -297,6 +298,7 @@ class CardanoSignTransactionRequest(google.protobuf.message.Message):
allow_zero_ttl: builtins.bool
"""include ttl even if it is zero"""

tag_cbor_sets: builtins.bool
def __init__(self,
*,
network: global___CardanoNetwork.ValueType = ...,
Expand All @@ -308,8 +310,9 @@ class CardanoSignTransactionRequest(google.protobuf.message.Message):
withdrawals: typing.Optional[typing.Iterable[global___CardanoSignTransactionRequest.Withdrawal]] = ...,
validity_interval_start: builtins.int = ...,
allow_zero_ttl: builtins.bool = ...,
tag_cbor_sets: builtins.bool = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["allow_zero_ttl",b"allow_zero_ttl","certificates",b"certificates","fee",b"fee","inputs",b"inputs","network",b"network","outputs",b"outputs","ttl",b"ttl","validity_interval_start",b"validity_interval_start","withdrawals",b"withdrawals"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["allow_zero_ttl",b"allow_zero_ttl","certificates",b"certificates","fee",b"fee","inputs",b"inputs","network",b"network","outputs",b"outputs","tag_cbor_sets",b"tag_cbor_sets","ttl",b"ttl","validity_interval_start",b"validity_interval_start","withdrawals",b"withdrawals"]) -> None: ...
global___CardanoSignTransactionRequest = CardanoSignTransactionRequest

class CardanoSignTransactionResponse(google.protobuf.message.Message):
Expand Down
Loading

0 comments on commit 56d9335

Please sign in to comment.