mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-21 23:18:13 +00:00
common/protob: Add commitment_data to TxInputType.
This commit is contained in:
parent
9d7b0bf50c
commit
5d745d5d04
@ -240,6 +240,7 @@ message TxAck {
|
||||
// optional uint32 prev_block_height_bip115 = 12; // BIP-115 support dropped
|
||||
optional bytes witness = 13; // witness data, only set for EXTERNAL inputs
|
||||
optional bytes ownership_proof = 14; // SLIP-0019 proof of ownership, only set for EXTERNAL inputs
|
||||
optional bytes commitment_data = 15; // optional commitment data for the SLIP-0019 proof of ownership
|
||||
|
||||
}
|
||||
/**
|
||||
|
@ -28,6 +28,7 @@ class TxInputType(p.MessageType):
|
||||
decred_tree: int = None,
|
||||
witness: bytes = None,
|
||||
ownership_proof: bytes = None,
|
||||
commitment_data: bytes = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.prev_hash = prev_hash
|
||||
@ -40,6 +41,7 @@ class TxInputType(p.MessageType):
|
||||
self.decred_tree = decred_tree
|
||||
self.witness = witness
|
||||
self.ownership_proof = ownership_proof
|
||||
self.commitment_data = commitment_data
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls) -> Dict:
|
||||
@ -55,4 +57,5 @@ class TxInputType(p.MessageType):
|
||||
9: ('decred_tree', p.UVarintType, 0),
|
||||
13: ('witness', p.BytesType, 0),
|
||||
14: ('ownership_proof', p.BytesType, 0),
|
||||
15: ('commitment_data', p.BytesType, 0),
|
||||
}
|
||||
|
@ -33,6 +33,7 @@ TxInputType.prev_hash max_size:32
|
||||
TxInputType.script_sig max_size:1650
|
||||
TxInputType.witness max_size:109
|
||||
TxInputType.ownership_proof max_size:171
|
||||
TxInputType.commitment_data max_size:32
|
||||
|
||||
TxOutputType.address max_size:130
|
||||
TxOutputType.address_n max_count:8
|
||||
|
@ -28,6 +28,7 @@ class TxInputType(p.MessageType):
|
||||
decred_tree: int = None,
|
||||
witness: bytes = None,
|
||||
ownership_proof: bytes = None,
|
||||
commitment_data: bytes = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.prev_hash = prev_hash
|
||||
@ -40,6 +41,7 @@ class TxInputType(p.MessageType):
|
||||
self.decred_tree = decred_tree
|
||||
self.witness = witness
|
||||
self.ownership_proof = ownership_proof
|
||||
self.commitment_data = commitment_data
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls) -> Dict:
|
||||
@ -55,4 +57,5 @@ class TxInputType(p.MessageType):
|
||||
9: ('decred_tree', p.UVarintType, 0),
|
||||
13: ('witness', p.BytesType, 0),
|
||||
14: ('ownership_proof', p.BytesType, 0),
|
||||
15: ('commitment_data', p.BytesType, 0),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user