1
0
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:
slush 2013-01-05 14:40:53 +00:00
parent b96b65e1ce
commit 6bdaaaf514
2 changed files with 12 additions and 1 deletions

View File

@ -30,6 +30,8 @@ map_type_to_class = {
26: proto.ButtonRequest, 26: proto.ButtonRequest,
27: proto.ButtonAck, 27: proto.ButtonAck,
28: proto.ButtonCancel, 28: proto.ButtonCancel,
29: proto.GetAddress,
30: proto.Address,
100: proto.DebugLinkDecision, 100: proto.DebugLinkDecision,
101: proto.DebugLinkGetState, 101: proto.DebugLinkGetState,
102: proto.DebugLinkState, 102: proto.DebugLinkState,

View File

@ -174,7 +174,7 @@ message SetMaxFeeKb {
// //
// Response: MasterPublicKey, Failure // Response: MasterPublicKey, Failure
message GetMasterPublicKey { 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. // 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 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. // Load seed and related internal settings from computer to the device. Existing seed is overwritten.
// //
// Response: Success, OtpRequest, PinRequest, Failure // Response: Success, OtpRequest, PinRequest, Failure