Documentation ¶
Overview ¶
Package messages is a generated protocol buffer package.
It is generated from these files:
messages/hww.proto
It has these top-level messages:
Error Success RandomNumberResponse RandomNumberRequest DeviceInfoRequest DeviceInfoResponse SetDeviceNameRequest SetDeviceLanguageRequest SetPasswordRequest CreateBackupRequest ShowMnemonicRequest InsertRemoveSDCardRequest BTCPubRequest PubResponse BTCSignInitRequest BTCSignNextResponse BTCSignInputRequest BTCSignOutputRequest Request Response
Index ¶
- Variables
- type BTCCoin
- type BTCOutputType
- type BTCPubRequest
- func (*BTCPubRequest) Descriptor() ([]byte, []int)
- func (m *BTCPubRequest) GetCoin() BTCCoin
- func (m *BTCPubRequest) GetDisplay() bool
- func (m *BTCPubRequest) GetKeypath() []uint32
- func (m *BTCPubRequest) GetOutputType() BTCPubRequest_OutputType
- func (m *BTCPubRequest) GetScriptType() BTCScriptType
- func (*BTCPubRequest) ProtoMessage()
- func (m *BTCPubRequest) Reset()
- func (m *BTCPubRequest) String() string
- type BTCPubRequest_OutputType
- type BTCScriptType
- type BTCSignInitRequest
- func (*BTCSignInitRequest) Descriptor() ([]byte, []int)
- func (m *BTCSignInitRequest) GetBip44Account() uint32
- func (m *BTCSignInitRequest) GetCoin() BTCCoin
- func (m *BTCSignInitRequest) GetLocktime() uint32
- func (m *BTCSignInitRequest) GetNumInputs() uint32
- func (m *BTCSignInitRequest) GetNumOutputs() uint32
- func (m *BTCSignInitRequest) GetScriptType() BTCScriptType
- func (m *BTCSignInitRequest) GetVersion() uint32
- func (*BTCSignInitRequest) ProtoMessage()
- func (m *BTCSignInitRequest) Reset()
- func (m *BTCSignInitRequest) String() string
- type BTCSignInputRequest
- func (*BTCSignInputRequest) Descriptor() ([]byte, []int)
- func (m *BTCSignInputRequest) GetKeypath() []uint32
- func (m *BTCSignInputRequest) GetPrevOutHash() []byte
- func (m *BTCSignInputRequest) GetPrevOutIndex() uint32
- func (m *BTCSignInputRequest) GetPrevOutValue() uint64
- func (m *BTCSignInputRequest) GetSequence() uint32
- func (*BTCSignInputRequest) ProtoMessage()
- func (m *BTCSignInputRequest) Reset()
- func (m *BTCSignInputRequest) String() string
- type BTCSignNextResponse
- func (*BTCSignNextResponse) Descriptor() ([]byte, []int)
- func (m *BTCSignNextResponse) GetHasSignature() bool
- func (m *BTCSignNextResponse) GetIndex() uint32
- func (m *BTCSignNextResponse) GetSignature() []byte
- func (m *BTCSignNextResponse) GetType() BTCSignNextResponse_Type
- func (*BTCSignNextResponse) ProtoMessage()
- func (m *BTCSignNextResponse) Reset()
- func (m *BTCSignNextResponse) String() string
- type BTCSignNextResponse_Type
- type BTCSignOutputRequest
- func (*BTCSignOutputRequest) Descriptor() ([]byte, []int)
- func (m *BTCSignOutputRequest) GetHash() []byte
- func (m *BTCSignOutputRequest) GetKeypath() []uint32
- func (m *BTCSignOutputRequest) GetOurs() bool
- func (m *BTCSignOutputRequest) GetType() BTCOutputType
- func (m *BTCSignOutputRequest) GetValue() uint64
- func (*BTCSignOutputRequest) ProtoMessage()
- func (m *BTCSignOutputRequest) Reset()
- func (m *BTCSignOutputRequest) String() string
- type CreateBackupRequest
- type DeviceInfoRequest
- type DeviceInfoResponse
- func (*DeviceInfoResponse) Descriptor() ([]byte, []int)
- func (m *DeviceInfoResponse) GetInitialized() bool
- func (m *DeviceInfoResponse) GetName() string
- func (m *DeviceInfoResponse) GetVersion() string
- func (*DeviceInfoResponse) ProtoMessage()
- func (m *DeviceInfoResponse) Reset()
- func (m *DeviceInfoResponse) String() string
- type Error
- type InsertRemoveSDCardRequest
- type InsertRemoveSDCardRequest_SDCardAction
- type PubResponse
- type RandomNumberRequest
- type RandomNumberResponse
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetBtcPub() *BTCPubRequest
- func (m *Request) GetBtcSignInit() *BTCSignInitRequest
- func (m *Request) GetBtcSignInput() *BTCSignInputRequest
- func (m *Request) GetBtcSignOutput() *BTCSignOutputRequest
- func (m *Request) GetCreateBackup() *CreateBackupRequest
- func (m *Request) GetDeviceInfo() *DeviceInfoRequest
- func (m *Request) GetDeviceLanguage() *SetDeviceLanguageRequest
- func (m *Request) GetDeviceName() *SetDeviceNameRequest
- func (m *Request) GetInsertRemoveSdcard() *InsertRemoveSDCardRequest
- func (m *Request) GetRandomNumber() *RandomNumberRequest
- func (m *Request) GetRequest() isRequest_Request
- func (m *Request) GetSetPassword() *SetPasswordRequest
- func (m *Request) GetShowMnemonic() *ShowMnemonicRequest
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Request_BtcPub
- type Request_BtcSignInit
- type Request_BtcSignInput
- type Request_BtcSignOutput
- type Request_CreateBackup
- type Request_DeviceInfo
- type Request_DeviceLanguage
- type Request_DeviceName
- type Request_InsertRemoveSdcard
- type Request_RandomNumber
- type Request_SetPassword
- type Request_ShowMnemonic
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetBtcSignNext() *BTCSignNextResponse
- func (m *Response) GetDeviceInfo() *DeviceInfoResponse
- func (m *Response) GetError() *Error
- func (m *Response) GetPub() *PubResponse
- func (m *Response) GetRandomNumber() *RandomNumberResponse
- func (m *Response) GetResponse() isResponse_Response
- func (m *Response) GetSuccess() *Success
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Response_BtcSignNext
- type Response_DeviceInfo
- type Response_Error
- type Response_Pub
- type Response_RandomNumber
- type Response_Success
- type SetDeviceLanguageRequest
- type SetDeviceNameRequest
- type SetPasswordRequest
- type ShowMnemonicRequest
- type Success
Constants ¶
This section is empty.
Variables ¶
View Source
var BTCCoin_name = map[int32]string{
0: "BTC",
1: "TBTC",
2: "LTC",
3: "TLTC",
}
View Source
var BTCCoin_value = map[string]int32{
"BTC": 0,
"TBTC": 1,
"LTC": 2,
"TLTC": 3,
}
View Source
var BTCOutputType_name = map[int32]string{
0: "UNKNOWN",
1: "P2PKH",
2: "P2SH",
3: "P2WPKH",
4: "P2WSH",
}
View Source
var BTCOutputType_value = map[string]int32{
"UNKNOWN": 0,
"P2PKH": 1,
"P2SH": 2,
"P2WPKH": 3,
"P2WSH": 4,
}
View Source
var BTCPubRequest_OutputType_name = map[int32]string{
0: "TPUB",
1: "XPUB",
2: "YPUB",
3: "ZPUB",
4: "ADDRESS",
}
View Source
var BTCPubRequest_OutputType_value = map[string]int32{
"TPUB": 0,
"XPUB": 1,
"YPUB": 2,
"ZPUB": 3,
"ADDRESS": 4,
}
View Source
var BTCScriptType_name = map[int32]string{
0: "SCRIPT_UNKNOWN",
1: "SCRIPT_P2PKH",
2: "SCRIPT_P2WPKH_P2SH",
3: "SCRIPT_P2WPKH",
}
View Source
var BTCScriptType_value = map[string]int32{
"SCRIPT_UNKNOWN": 0,
"SCRIPT_P2PKH": 1,
"SCRIPT_P2WPKH_P2SH": 2,
"SCRIPT_P2WPKH": 3,
}
View Source
var BTCSignNextResponse_Type_name = map[int32]string{
0: "INPUT",
1: "OUTPUT",
2: "DONE",
}
View Source
var BTCSignNextResponse_Type_value = map[string]int32{
"INPUT": 0,
"OUTPUT": 1,
"DONE": 2,
}
View Source
var InsertRemoveSDCardRequest_SDCardAction_name = map[int32]string{
0: "REMOVE_CARD",
1: "INSERT_CARD",
}
View Source
var InsertRemoveSDCardRequest_SDCardAction_value = map[string]int32{
"REMOVE_CARD": 0,
"INSERT_CARD": 1,
}
Functions ¶
This section is empty.
Types ¶
type BTCOutputType ¶
type BTCOutputType int32
const ( BTCOutputType_UNKNOWN BTCOutputType = 0 BTCOutputType_P2PKH BTCOutputType = 1 BTCOutputType_P2SH BTCOutputType = 2 BTCOutputType_P2WPKH BTCOutputType = 3 BTCOutputType_P2WSH BTCOutputType = 4 )
func (BTCOutputType) EnumDescriptor ¶
func (BTCOutputType) EnumDescriptor() ([]byte, []int)
func (BTCOutputType) String ¶
func (x BTCOutputType) String() string
type BTCPubRequest ¶
type BTCPubRequest struct { Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath" json:"keypath,omitempty"` ScriptType BTCScriptType `protobuf:"varint,2,opt,name=script_type,json=scriptType,enum=BTCScriptType" json:"script_type,omitempty"` Coin BTCCoin `protobuf:"varint,3,opt,name=coin,enum=BTCCoin" json:"coin,omitempty"` OutputType BTCPubRequest_OutputType `protobuf:"varint,4,opt,name=output_type,json=outputType,enum=BTCPubRequest_OutputType" json:"output_type,omitempty"` Display bool `protobuf:"varint,5,opt,name=display" json:"display,omitempty"` }
func (*BTCPubRequest) Descriptor ¶
func (*BTCPubRequest) Descriptor() ([]byte, []int)
func (*BTCPubRequest) GetCoin ¶
func (m *BTCPubRequest) GetCoin() BTCCoin
func (*BTCPubRequest) GetDisplay ¶
func (m *BTCPubRequest) GetDisplay() bool
func (*BTCPubRequest) GetKeypath ¶
func (m *BTCPubRequest) GetKeypath() []uint32
func (*BTCPubRequest) GetOutputType ¶
func (m *BTCPubRequest) GetOutputType() BTCPubRequest_OutputType
func (*BTCPubRequest) GetScriptType ¶
func (m *BTCPubRequest) GetScriptType() BTCScriptType
func (*BTCPubRequest) ProtoMessage ¶
func (*BTCPubRequest) ProtoMessage()
func (*BTCPubRequest) Reset ¶
func (m *BTCPubRequest) Reset()
func (*BTCPubRequest) String ¶
func (m *BTCPubRequest) String() string
type BTCPubRequest_OutputType ¶
type BTCPubRequest_OutputType int32
const ( BTCPubRequest_TPUB BTCPubRequest_OutputType = 0 BTCPubRequest_XPUB BTCPubRequest_OutputType = 1 BTCPubRequest_YPUB BTCPubRequest_OutputType = 2 BTCPubRequest_ZPUB BTCPubRequest_OutputType = 3 BTCPubRequest_ADDRESS BTCPubRequest_OutputType = 4 )
func (BTCPubRequest_OutputType) EnumDescriptor ¶
func (BTCPubRequest_OutputType) EnumDescriptor() ([]byte, []int)
func (BTCPubRequest_OutputType) String ¶
func (x BTCPubRequest_OutputType) String() string
type BTCScriptType ¶
type BTCScriptType int32
const ( BTCScriptType_SCRIPT_UNKNOWN BTCScriptType = 0 BTCScriptType_SCRIPT_P2PKH BTCScriptType = 1 BTCScriptType_SCRIPT_P2WPKH_P2SH BTCScriptType = 2 BTCScriptType_SCRIPT_P2WPKH BTCScriptType = 3 )
func (BTCScriptType) EnumDescriptor ¶
func (BTCScriptType) EnumDescriptor() ([]byte, []int)
func (BTCScriptType) String ¶
func (x BTCScriptType) String() string
type BTCSignInitRequest ¶
type BTCSignInitRequest struct { Coin BTCCoin `protobuf:"varint,1,opt,name=coin,enum=BTCCoin" json:"coin,omitempty"` ScriptType BTCScriptType `protobuf:"varint,2,opt,name=script_type,json=scriptType,enum=BTCScriptType" json:"script_type,omitempty"` Bip44Account uint32 `protobuf:"varint,3,opt,name=bip44_account,json=bip44Account" json:"bip44_account,omitempty"` Version uint32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"` NumInputs uint32 `protobuf:"varint,5,opt,name=num_inputs,json=numInputs" json:"num_inputs,omitempty"` NumOutputs uint32 `protobuf:"varint,6,opt,name=num_outputs,json=numOutputs" json:"num_outputs,omitempty"` Locktime uint32 `protobuf:"varint,7,opt,name=locktime" json:"locktime,omitempty"` }
func (*BTCSignInitRequest) Descriptor ¶
func (*BTCSignInitRequest) Descriptor() ([]byte, []int)
func (*BTCSignInitRequest) GetBip44Account ¶
func (m *BTCSignInitRequest) GetBip44Account() uint32
func (*BTCSignInitRequest) GetCoin ¶
func (m *BTCSignInitRequest) GetCoin() BTCCoin
func (*BTCSignInitRequest) GetLocktime ¶
func (m *BTCSignInitRequest) GetLocktime() uint32
func (*BTCSignInitRequest) GetNumInputs ¶
func (m *BTCSignInitRequest) GetNumInputs() uint32
func (*BTCSignInitRequest) GetNumOutputs ¶
func (m *BTCSignInitRequest) GetNumOutputs() uint32
func (*BTCSignInitRequest) GetScriptType ¶
func (m *BTCSignInitRequest) GetScriptType() BTCScriptType
func (*BTCSignInitRequest) GetVersion ¶
func (m *BTCSignInitRequest) GetVersion() uint32
func (*BTCSignInitRequest) ProtoMessage ¶
func (*BTCSignInitRequest) ProtoMessage()
func (*BTCSignInitRequest) Reset ¶
func (m *BTCSignInitRequest) Reset()
func (*BTCSignInitRequest) String ¶
func (m *BTCSignInitRequest) String() string
type BTCSignInputRequest ¶
type BTCSignInputRequest struct { PrevOutHash []byte `protobuf:"bytes,1,opt,name=prevOutHash,proto3" json:"prevOutHash,omitempty"` PrevOutIndex uint32 `protobuf:"varint,2,opt,name=prevOutIndex" json:"prevOutIndex,omitempty"` PrevOutValue uint64 `protobuf:"varint,3,opt,name=prevOutValue" json:"prevOutValue,omitempty"` Sequence uint32 `protobuf:"varint,4,opt,name=sequence" json:"sequence,omitempty"` Keypath []uint32 `protobuf:"varint,6,rep,packed,name=keypath" json:"keypath,omitempty"` }
func (*BTCSignInputRequest) Descriptor ¶
func (*BTCSignInputRequest) Descriptor() ([]byte, []int)
func (*BTCSignInputRequest) GetKeypath ¶
func (m *BTCSignInputRequest) GetKeypath() []uint32
func (*BTCSignInputRequest) GetPrevOutHash ¶
func (m *BTCSignInputRequest) GetPrevOutHash() []byte
func (*BTCSignInputRequest) GetPrevOutIndex ¶
func (m *BTCSignInputRequest) GetPrevOutIndex() uint32
func (*BTCSignInputRequest) GetPrevOutValue ¶
func (m *BTCSignInputRequest) GetPrevOutValue() uint64
func (*BTCSignInputRequest) GetSequence ¶
func (m *BTCSignInputRequest) GetSequence() uint32
func (*BTCSignInputRequest) ProtoMessage ¶
func (*BTCSignInputRequest) ProtoMessage()
func (*BTCSignInputRequest) Reset ¶
func (m *BTCSignInputRequest) Reset()
func (*BTCSignInputRequest) String ¶
func (m *BTCSignInputRequest) String() string
type BTCSignNextResponse ¶
type BTCSignNextResponse struct { Type BTCSignNextResponse_Type `protobuf:"varint,1,opt,name=type,enum=BTCSignNextResponse_Type" json:"type,omitempty"` Index uint32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"` HasSignature bool `protobuf:"varint,3,opt,name=has_signature,json=hasSignature" json:"has_signature,omitempty"` // 64 bytes (32 bytes big endian R, 32 bytes big endian S). Only if has_signature is true. Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` }
func (*BTCSignNextResponse) Descriptor ¶
func (*BTCSignNextResponse) Descriptor() ([]byte, []int)
func (*BTCSignNextResponse) GetHasSignature ¶
func (m *BTCSignNextResponse) GetHasSignature() bool
func (*BTCSignNextResponse) GetIndex ¶
func (m *BTCSignNextResponse) GetIndex() uint32
func (*BTCSignNextResponse) GetSignature ¶
func (m *BTCSignNextResponse) GetSignature() []byte
func (*BTCSignNextResponse) GetType ¶
func (m *BTCSignNextResponse) GetType() BTCSignNextResponse_Type
func (*BTCSignNextResponse) ProtoMessage ¶
func (*BTCSignNextResponse) ProtoMessage()
func (*BTCSignNextResponse) Reset ¶
func (m *BTCSignNextResponse) Reset()
func (*BTCSignNextResponse) String ¶
func (m *BTCSignNextResponse) String() string
type BTCSignNextResponse_Type ¶
type BTCSignNextResponse_Type int32
const ( BTCSignNextResponse_INPUT BTCSignNextResponse_Type = 0 BTCSignNextResponse_OUTPUT BTCSignNextResponse_Type = 1 BTCSignNextResponse_DONE BTCSignNextResponse_Type = 2 )
func (BTCSignNextResponse_Type) EnumDescriptor ¶
func (BTCSignNextResponse_Type) EnumDescriptor() ([]byte, []int)
func (BTCSignNextResponse_Type) String ¶
func (x BTCSignNextResponse_Type) String() string
type BTCSignOutputRequest ¶
type BTCSignOutputRequest struct { Ours bool `protobuf:"varint,1,opt,name=ours" json:"ours,omitempty"` Type BTCOutputType `protobuf:"varint,2,opt,name=type,enum=BTCOutputType" json:"type,omitempty"` // 20 bytes for p2pkh, p2sh, pw2wpkh. 32 bytes for p2wsh. Value uint64 `protobuf:"varint,3,opt,name=value" json:"value,omitempty"` Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` Keypath []uint32 `protobuf:"varint,5,rep,packed,name=keypath" json:"keypath,omitempty"` }
func (*BTCSignOutputRequest) Descriptor ¶
func (*BTCSignOutputRequest) Descriptor() ([]byte, []int)
func (*BTCSignOutputRequest) GetHash ¶
func (m *BTCSignOutputRequest) GetHash() []byte
func (*BTCSignOutputRequest) GetKeypath ¶
func (m *BTCSignOutputRequest) GetKeypath() []uint32
func (*BTCSignOutputRequest) GetOurs ¶
func (m *BTCSignOutputRequest) GetOurs() bool
func (*BTCSignOutputRequest) GetType ¶
func (m *BTCSignOutputRequest) GetType() BTCOutputType
func (*BTCSignOutputRequest) GetValue ¶
func (m *BTCSignOutputRequest) GetValue() uint64
func (*BTCSignOutputRequest) ProtoMessage ¶
func (*BTCSignOutputRequest) ProtoMessage()
func (*BTCSignOutputRequest) Reset ¶
func (m *BTCSignOutputRequest) Reset()
func (*BTCSignOutputRequest) String ¶
func (m *BTCSignOutputRequest) String() string
type CreateBackupRequest ¶
type CreateBackupRequest struct { // TODO add backup creation args Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"` TimezoneOffset int32 `protobuf:"varint,2,opt,name=timezone_offset,json=timezoneOffset" json:"timezone_offset,omitempty"` }
func (*CreateBackupRequest) Descriptor ¶
func (*CreateBackupRequest) Descriptor() ([]byte, []int)
func (*CreateBackupRequest) GetTimestamp ¶
func (m *CreateBackupRequest) GetTimestamp() uint32
func (*CreateBackupRequest) GetTimezoneOffset ¶
func (m *CreateBackupRequest) GetTimezoneOffset() int32
func (*CreateBackupRequest) ProtoMessage ¶
func (*CreateBackupRequest) ProtoMessage()
func (*CreateBackupRequest) Reset ¶
func (m *CreateBackupRequest) Reset()
func (*CreateBackupRequest) String ¶
func (m *CreateBackupRequest) String() string
type DeviceInfoRequest ¶
type DeviceInfoRequest struct { }
func (*DeviceInfoRequest) Descriptor ¶
func (*DeviceInfoRequest) Descriptor() ([]byte, []int)
func (*DeviceInfoRequest) ProtoMessage ¶
func (*DeviceInfoRequest) ProtoMessage()
func (*DeviceInfoRequest) Reset ¶
func (m *DeviceInfoRequest) Reset()
func (*DeviceInfoRequest) String ¶
func (m *DeviceInfoRequest) String() string
type DeviceInfoResponse ¶
type DeviceInfoResponse struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Initialized bool `protobuf:"varint,2,opt,name=initialized" json:"initialized,omitempty"` Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` }
func (*DeviceInfoResponse) Descriptor ¶
func (*DeviceInfoResponse) Descriptor() ([]byte, []int)
func (*DeviceInfoResponse) GetInitialized ¶
func (m *DeviceInfoResponse) GetInitialized() bool
func (*DeviceInfoResponse) GetName ¶
func (m *DeviceInfoResponse) GetName() string
func (*DeviceInfoResponse) GetVersion ¶
func (m *DeviceInfoResponse) GetVersion() string
func (*DeviceInfoResponse) ProtoMessage ¶
func (*DeviceInfoResponse) ProtoMessage()
func (*DeviceInfoResponse) Reset ¶
func (m *DeviceInfoResponse) Reset()
func (*DeviceInfoResponse) String ¶
func (m *DeviceInfoResponse) String() string
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` }
func (*Error) Descriptor ¶
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type InsertRemoveSDCardRequest ¶
type InsertRemoveSDCardRequest struct {
Action InsertRemoveSDCardRequest_SDCardAction `protobuf:"varint,1,opt,name=action,enum=InsertRemoveSDCardRequest_SDCardAction" json:"action,omitempty"`
}
func (*InsertRemoveSDCardRequest) Descriptor ¶
func (*InsertRemoveSDCardRequest) Descriptor() ([]byte, []int)
func (*InsertRemoveSDCardRequest) GetAction ¶
func (m *InsertRemoveSDCardRequest) GetAction() InsertRemoveSDCardRequest_SDCardAction
func (*InsertRemoveSDCardRequest) ProtoMessage ¶
func (*InsertRemoveSDCardRequest) ProtoMessage()
func (*InsertRemoveSDCardRequest) Reset ¶
func (m *InsertRemoveSDCardRequest) Reset()
func (*InsertRemoveSDCardRequest) String ¶
func (m *InsertRemoveSDCardRequest) String() string
type InsertRemoveSDCardRequest_SDCardAction ¶
type InsertRemoveSDCardRequest_SDCardAction int32
const ( InsertRemoveSDCardRequest_REMOVE_CARD InsertRemoveSDCardRequest_SDCardAction = 0 InsertRemoveSDCardRequest_INSERT_CARD InsertRemoveSDCardRequest_SDCardAction = 1 )
func (InsertRemoveSDCardRequest_SDCardAction) EnumDescriptor ¶
func (InsertRemoveSDCardRequest_SDCardAction) EnumDescriptor() ([]byte, []int)
func (InsertRemoveSDCardRequest_SDCardAction) String ¶
func (x InsertRemoveSDCardRequest_SDCardAction) String() string
type PubResponse ¶
type PubResponse struct {
Pub string `protobuf:"bytes,1,opt,name=pub" json:"pub,omitempty"`
}
func (*PubResponse) Descriptor ¶
func (*PubResponse) Descriptor() ([]byte, []int)
func (*PubResponse) GetPub ¶
func (m *PubResponse) GetPub() string
func (*PubResponse) ProtoMessage ¶
func (*PubResponse) ProtoMessage()
func (*PubResponse) Reset ¶
func (m *PubResponse) Reset()
func (*PubResponse) String ¶
func (m *PubResponse) String() string
type RandomNumberRequest ¶
type RandomNumberRequest struct { }
func (*RandomNumberRequest) Descriptor ¶
func (*RandomNumberRequest) Descriptor() ([]byte, []int)
func (*RandomNumberRequest) ProtoMessage ¶
func (*RandomNumberRequest) ProtoMessage()
func (*RandomNumberRequest) Reset ¶
func (m *RandomNumberRequest) Reset()
func (*RandomNumberRequest) String ¶
func (m *RandomNumberRequest) String() string
type RandomNumberResponse ¶
type RandomNumberResponse struct {
Number []byte `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
}
func (*RandomNumberResponse) Descriptor ¶
func (*RandomNumberResponse) Descriptor() ([]byte, []int)
func (*RandomNumberResponse) GetNumber ¶
func (m *RandomNumberResponse) GetNumber() []byte
func (*RandomNumberResponse) ProtoMessage ¶
func (*RandomNumberResponse) ProtoMessage()
func (*RandomNumberResponse) Reset ¶
func (m *RandomNumberResponse) Reset()
func (*RandomNumberResponse) String ¶
func (m *RandomNumberResponse) String() string
type Request ¶
type Request struct { // Types that are valid to be assigned to Request: // *Request_RandomNumber // *Request_DeviceName // *Request_DeviceLanguage // *Request_DeviceInfo // *Request_SetPassword // *Request_CreateBackup // *Request_ShowMnemonic // *Request_BtcPub // *Request_BtcSignInit // *Request_BtcSignInput // *Request_BtcSignOutput // *Request_InsertRemoveSdcard Request isRequest_Request `protobuf_oneof:"request"` }
func (*Request) Descriptor ¶
func (*Request) GetBtcPub ¶
func (m *Request) GetBtcPub() *BTCPubRequest
func (*Request) GetBtcSignInit ¶
func (m *Request) GetBtcSignInit() *BTCSignInitRequest
func (*Request) GetBtcSignInput ¶
func (m *Request) GetBtcSignInput() *BTCSignInputRequest
func (*Request) GetBtcSignOutput ¶
func (m *Request) GetBtcSignOutput() *BTCSignOutputRequest
func (*Request) GetCreateBackup ¶
func (m *Request) GetCreateBackup() *CreateBackupRequest
func (*Request) GetDeviceInfo ¶
func (m *Request) GetDeviceInfo() *DeviceInfoRequest
func (*Request) GetDeviceLanguage ¶
func (m *Request) GetDeviceLanguage() *SetDeviceLanguageRequest
func (*Request) GetDeviceName ¶
func (m *Request) GetDeviceName() *SetDeviceNameRequest
func (*Request) GetInsertRemoveSdcard ¶
func (m *Request) GetInsertRemoveSdcard() *InsertRemoveSDCardRequest
func (*Request) GetRandomNumber ¶
func (m *Request) GetRandomNumber() *RandomNumberRequest
func (*Request) GetRequest ¶
func (m *Request) GetRequest() isRequest_Request
func (*Request) GetSetPassword ¶
func (m *Request) GetSetPassword() *SetPasswordRequest
func (*Request) GetShowMnemonic ¶
func (m *Request) GetShowMnemonic() *ShowMnemonicRequest
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Request_BtcPub ¶
type Request_BtcPub struct {
BtcPub *BTCPubRequest `protobuf:"bytes,8,opt,name=btc_pub,json=btcPub,oneof"`
}
type Request_BtcSignInit ¶
type Request_BtcSignInit struct {
BtcSignInit *BTCSignInitRequest `protobuf:"bytes,9,opt,name=btc_sign_init,json=btcSignInit,oneof"`
}
type Request_BtcSignInput ¶
type Request_BtcSignInput struct {
BtcSignInput *BTCSignInputRequest `protobuf:"bytes,10,opt,name=btc_sign_input,json=btcSignInput,oneof"`
}
type Request_BtcSignOutput ¶
type Request_BtcSignOutput struct {
BtcSignOutput *BTCSignOutputRequest `protobuf:"bytes,11,opt,name=btc_sign_output,json=btcSignOutput,oneof"`
}
type Request_CreateBackup ¶
type Request_CreateBackup struct {
CreateBackup *CreateBackupRequest `protobuf:"bytes,6,opt,name=create_backup,json=createBackup,oneof"`
}
type Request_DeviceInfo ¶
type Request_DeviceInfo struct {
DeviceInfo *DeviceInfoRequest `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,oneof"`
}
type Request_DeviceLanguage ¶
type Request_DeviceLanguage struct {
DeviceLanguage *SetDeviceLanguageRequest `protobuf:"bytes,3,opt,name=device_language,json=deviceLanguage,oneof"`
}
type Request_DeviceName ¶
type Request_DeviceName struct {
DeviceName *SetDeviceNameRequest `protobuf:"bytes,2,opt,name=device_name,json=deviceName,oneof"`
}
type Request_InsertRemoveSdcard ¶
type Request_InsertRemoveSdcard struct {
InsertRemoveSdcard *InsertRemoveSDCardRequest `protobuf:"bytes,12,opt,name=insert_remove_sdcard,json=insertRemoveSdcard,oneof"`
}
type Request_RandomNumber ¶
type Request_RandomNumber struct {
RandomNumber *RandomNumberRequest `protobuf:"bytes,1,opt,name=random_number,json=randomNumber,oneof"`
}
type Request_SetPassword ¶
type Request_SetPassword struct {
SetPassword *SetPasswordRequest `protobuf:"bytes,5,opt,name=set_password,json=setPassword,oneof"`
}
type Request_ShowMnemonic ¶
type Request_ShowMnemonic struct {
ShowMnemonic *ShowMnemonicRequest `protobuf:"bytes,7,opt,name=show_mnemonic,json=showMnemonic,oneof"`
}
type Response ¶
type Response struct { // Types that are valid to be assigned to Response: // *Response_Success // *Response_Error // *Response_RandomNumber // *Response_DeviceInfo // *Response_Pub // *Response_BtcSignNext Response isResponse_Response `protobuf_oneof:"response"` }
func (*Response) Descriptor ¶
func (*Response) GetBtcSignNext ¶
func (m *Response) GetBtcSignNext() *BTCSignNextResponse
func (*Response) GetDeviceInfo ¶
func (m *Response) GetDeviceInfo() *DeviceInfoResponse
func (*Response) GetPub ¶
func (m *Response) GetPub() *PubResponse
func (*Response) GetRandomNumber ¶
func (m *Response) GetRandomNumber() *RandomNumberResponse
func (*Response) GetResponse ¶
func (m *Response) GetResponse() isResponse_Response
func (*Response) GetSuccess ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type Response_BtcSignNext ¶
type Response_BtcSignNext struct {
BtcSignNext *BTCSignNextResponse `protobuf:"bytes,6,opt,name=btc_sign_next,json=btcSignNext,oneof"`
}
type Response_DeviceInfo ¶
type Response_DeviceInfo struct {
DeviceInfo *DeviceInfoResponse `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,oneof"`
}
type Response_Error ¶
type Response_Error struct {
Error *Error `protobuf:"bytes,2,opt,name=error,oneof"`
}
type Response_Pub ¶
type Response_Pub struct {
Pub *PubResponse `protobuf:"bytes,5,opt,name=pub,oneof"`
}
type Response_RandomNumber ¶
type Response_RandomNumber struct {
RandomNumber *RandomNumberResponse `protobuf:"bytes,3,opt,name=random_number,json=randomNumber,oneof"`
}
type Response_Success ¶
type Response_Success struct {
Success *Success `protobuf:"bytes,1,opt,name=success,oneof"`
}
type SetDeviceLanguageRequest ¶
type SetDeviceLanguageRequest struct {
Language string `protobuf:"bytes,1,opt,name=language" json:"language,omitempty"`
}
func (*SetDeviceLanguageRequest) Descriptor ¶
func (*SetDeviceLanguageRequest) Descriptor() ([]byte, []int)
func (*SetDeviceLanguageRequest) GetLanguage ¶
func (m *SetDeviceLanguageRequest) GetLanguage() string
func (*SetDeviceLanguageRequest) ProtoMessage ¶
func (*SetDeviceLanguageRequest) ProtoMessage()
func (*SetDeviceLanguageRequest) Reset ¶
func (m *SetDeviceLanguageRequest) Reset()
func (*SetDeviceLanguageRequest) String ¶
func (m *SetDeviceLanguageRequest) String() string
type SetDeviceNameRequest ¶
type SetDeviceNameRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*SetDeviceNameRequest) Descriptor ¶
func (*SetDeviceNameRequest) Descriptor() ([]byte, []int)
func (*SetDeviceNameRequest) GetName ¶
func (m *SetDeviceNameRequest) GetName() string
func (*SetDeviceNameRequest) ProtoMessage ¶
func (*SetDeviceNameRequest) ProtoMessage()
func (*SetDeviceNameRequest) Reset ¶
func (m *SetDeviceNameRequest) Reset()
func (*SetDeviceNameRequest) String ¶
func (m *SetDeviceNameRequest) String() string
type SetPasswordRequest ¶
type SetPasswordRequest struct { }
func (*SetPasswordRequest) Descriptor ¶
func (*SetPasswordRequest) Descriptor() ([]byte, []int)
func (*SetPasswordRequest) ProtoMessage ¶
func (*SetPasswordRequest) ProtoMessage()
func (*SetPasswordRequest) Reset ¶
func (m *SetPasswordRequest) Reset()
func (*SetPasswordRequest) String ¶
func (m *SetPasswordRequest) String() string
type ShowMnemonicRequest ¶
type ShowMnemonicRequest struct { }
func (*ShowMnemonicRequest) Descriptor ¶
func (*ShowMnemonicRequest) Descriptor() ([]byte, []int)
func (*ShowMnemonicRequest) ProtoMessage ¶
func (*ShowMnemonicRequest) ProtoMessage()
func (*ShowMnemonicRequest) Reset ¶
func (m *ShowMnemonicRequest) Reset()
func (*ShowMnemonicRequest) String ¶
func (m *ShowMnemonicRequest) String() string
Click to show internal directories.
Click to hide internal directories.