mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
Added GetAddress/Address messages
This commit is contained in:
parent
b96b65e1ce
commit
6bdaaaf514
@ -30,6 +30,8 @@ map_type_to_class = {
|
||||
26: proto.ButtonRequest,
|
||||
27: proto.ButtonAck,
|
||||
28: proto.ButtonCancel,
|
||||
29: proto.GetAddress,
|
||||
30: proto.Address,
|
||||
100: proto.DebugLinkDecision,
|
||||
101: proto.DebugLinkGetState,
|
||||
102: proto.DebugLinkState,
|
||||
|
@ -174,7 +174,7 @@ message SetMaxFeeKb {
|
||||
//
|
||||
// Response: MasterPublicKey, Failure
|
||||
message GetMasterPublicKey {
|
||||
required Algorithm algo = 1 [default=BIP32]; // Used algorithm for generating master public key
|
||||
required Algorithm algo = 1 [default=BIP32]; // Used algorithm for generating the master public key
|
||||
}
|
||||
|
||||
// Contains master public key derived from device's seed.
|
||||
@ -182,6 +182,15 @@ message MasterPublicKey {
|
||||
required bytes key = 1; // master public key of requested algorithm in binary format
|
||||
}
|
||||
|
||||
message GetAddress {
|
||||
required Algorithm algo = 1 [default=BIP32]; // Used algorithm for generating the address
|
||||
repeated uint32 address_n = 2; // Parameter for address generation algorithm to derive the address from the master public key
|
||||
}
|
||||
|
||||
message Address {
|
||||
required string address = 1; // Bitcoin address in base58 encoding corresponding to GetAddress(algo, n) call
|
||||
}
|
||||
|
||||
// Load seed and related internal settings from computer to the device. Existing seed is overwritten.
|
||||
//
|
||||
// Response: Success, OtpRequest, PinRequest, Failure
|
||||
|
Loading…
Reference in New Issue
Block a user