Documentation ¶
Index ¶
- Variables
- type ButtonRequestType
- type ButtonRequestTyper
- type CoinTyper
- type ExchangeTyper
- type FailureType
- type FailureTyper
- type HDNodePathTyper
- type HDNodeTyper
- type IdentityTyper
- type InputScriptType
- type InputScriptTyper
- type MultisigRedeemScriptTyper
- type OutputAddressType
- type OutputAddressTyper
- type OutputScriptType
- type OutputScriptTyper
- type PinMatrixRequestType
- type PinMatrixRequestTyper
- type PolicyTyper
- type RawTransactionTyper
- type RecoveryDeviceType
- type RecoveryDeviceTyper
- type RequestType
- type RequestTyper
- type TransactionTyper
- type TxInputTyper
- type TxOutputBinTyper
- type TxOutputTyper
- type TxRequestDetailsTyper
- type TxRequestSerializedTyper
- type Typer
- type WordRequestType
- type WordRequestTyper
Constants ¶
This section is empty.
Variables ¶
View Source
var FailureType_name = map[int32]string{
1: "FailureType_Failure_UnexpectedMessage",
2: "FailureType_Failure_ButtonExpected",
3: "FailureType_Failure_SyntaxError",
4: "FailureType_Failure_ActionCancelled",
5: "FailureType_Failure_PinExpected",
6: "FailureType_Failure_PinCancelled",
7: "FailureType_Failure_PinInvalid",
8: "FailureType_Failure_InvalidSignature",
9: "FailureType_Failure_Other",
10: "FailureType_Failure_NotEnoughFunds",
11: "FailureType_Failure_NotInitialized",
99: "FailureType_Failure_FirmwareError",
}
View Source
var FailureType_value = map[string]int32{
"FailureType_Failure_UnexpectedMessage": 1,
"FailureType_Failure_ButtonExpected": 2,
"FailureType_Failure_SyntaxError": 3,
"FailureType_Failure_ActionCancelled": 4,
"FailureType_Failure_PinExpected": 5,
"FailureType_Failure_PinCancelled": 6,
"FailureType_Failure_PinInvalid": 7,
"FailureType_Failure_InvalidSignature": 8,
"FailureType_Failure_Other": 9,
"FailureType_Failure_NotEnoughFunds": 10,
"FailureType_Failure_NotInitialized": 11,
"FailureType_Failure_FirmwareError": 99,
}
View Source
var InputScriptType_name = map[int32]string{
0: "InputScriptType_SPENDADDRESS",
1: "InputScriptType_SPENDMULTISIG",
2: "InputScriptType_EXTERNAL",
3: "InputScriptType_SPENDWITNESS",
4: "SHWITNESS",
}
View Source
var InputScriptType_value = map[string]int32{
"InputScriptType_SPENDADDRESS": 0,
"InputScriptType_SPENDMULTISIG": 1,
"InputScriptType_EXTERNAL": 2,
"InputScriptType_SPENDWITNESS": 3,
"SHWITNESS": 4,
}
View Source
var OutputAddressType_name = map[int32]string{
0: "OutputAddressType_SPEND",
1: "OutputAddressType_TRANSFER",
2: "OutputAddressType_CHANGE",
3: "OutputAddressType_EXCHANGE",
}
View Source
var OutputAddressType_value = map[string]int32{
"OutputAddressType_SPEND": 0,
"OutputAddressType_TRANSFER": 1,
"OutputAddressType_CHANGE": 2,
"OutputAddressType_EXCHANGE": 3,
}
View Source
var OutputScriptType_name = map[int32]string{
0: "OutputScriptType_PAYTOADDRESS",
1: "OutputScriptType_PAYTOSCRIPTHASH",
2: "OutputScriptType_PAYTOMULTISIG",
3: "OutputScriptType_PAYTOOPRETURN",
4: "OutputScriptType_PAYTOWITNESS",
5: "SHWITNESS",
}
View Source
var OutputScriptType_value = map[string]int32{
"OutputScriptType_PAYTOADDRESS": 0,
"OutputScriptType_PAYTOSCRIPTHASH": 1,
"OutputScriptType_PAYTOMULTISIG": 2,
"OutputScriptType_PAYTOOPRETURN": 3,
"OutputScriptType_PAYTOWITNESS": 4,
"SHWITNESS": 5,
}
View Source
var PinMatrixRequestType_name = map[int32]string{
1: "PinMatrixRequestType_PinMatrixRequestType_Current",
2: "PinMatrixRequestType_PinMatrixRequestType_NewFirst",
3: "PinMatrixRequestType_PinMatrixRequestType_NewSecond",
}
View Source
var PinMatrixRequestType_value = map[string]int32{
"PinMatrixRequestType_PinMatrixRequestType_Current": 1,
"PinMatrixRequestType_PinMatrixRequestType_NewFirst": 2,
"PinMatrixRequestType_PinMatrixRequestType_NewSecond": 3,
}
View Source
var RecoveryDeviceType_name = map[int32]string{
0: "RecoveryDeviceType_RecoveryDeviceType_ScrambledWords",
1: "RecoveryDeviceType_RecoveryDeviceType_Matrix",
}
View Source
var RecoveryDeviceType_value = map[string]int32{
"RecoveryDeviceType_RecoveryDeviceType_ScrambledWords": 0,
"RecoveryDeviceType_RecoveryDeviceType_Matrix": 1,
}
View Source
var RequestType_name = map[int32]string{
0: "RequestType_TXINPUT",
1: "RequestType_TXOUTPUT",
2: "RequestType_TXMETA",
3: "RequestType_TXFINISHED",
4: "RequestType_TXEXTRADATA",
}
View Source
var RequestType_value = map[string]int32{
"RequestType_TXINPUT": 0,
"RequestType_TXOUTPUT": 1,
"RequestType_TXMETA": 2,
"RequestType_TXFINISHED": 3,
"RequestType_TXEXTRADATA": 4,
}
View Source
var WordRequestType_name = map[int32]string{
0: "WordRequestType_WordRequestType_Plain",
}
View Source
var WordRequestType_value = map[string]int32{
"WordRequestType_WordRequestType_Plain": 0,
}
Functions ¶
This section is empty.
Types ¶
type ButtonRequestType ¶
type ButtonRequestType int32
func ButtonRequestTyper2Type ¶
func ButtonRequestTyper2Type(x ButtonRequestTyper) ButtonRequestType
type ButtonRequestTyper ¶
type CoinTyper ¶
type CoinTyper interface { SetAddressTypeP2Sh(*uint32) SetAddressTypeP2Wpkh(*uint32) SetCoinShortcut(*string) Reset() String() string GetCoinShortcut() string GetAddressType() uint32 GetBip44AccountPath() uint32 SetMaxfeeKb(*uint64) SetSignedMessageHeader(*string) SetAddressType(*uint32) GetMaxfeeKb() uint64 GetAddressTypeP2Sh() uint32 GetAddressTypeP2Wpkh() uint32 GetCoinName() string ProtoMessage() GetSignedMessageHeader() string SetBip44AccountPath(*uint32) GetAddressTypeP2Wsh() uint32 SetAddressTypeP2Wsh(*uint32) SetCoinName(*string) }
type ExchangeTyper ¶
type ExchangeTyper interface { GetWithdrawalAddressN() []uint32 GetReturnAddressN() []uint32 ProtoMessage() GetSignedExchangeResponse() *exchange.SignedExchangeResponse SetSignedExchangeResponse(*exchange.SignedExchangeResponse) SetWithdrawalAddressN([]uint32) Reset() String() string GetWithdrawalCoinName() string SetWithdrawalCoinName(*string) SetReturnAddressN([]uint32) }
type FailureType ¶
type FailureType int32
func FailureTyper2Type ¶
func FailureTyper2Type(x FailureTyper) FailureType
type FailureTyper ¶
type HDNodePathTyper ¶
type HDNodePathTyper interface { GetAddressN() []uint32 Reset() String() string ProtoMessage() GetNode() HDNodeTyper SetNode(HDNodeTyper) SetAddressN([]uint32) }
type HDNodeTyper ¶
type HDNodeTyper interface { GetPrivateKey() []byte GetDepth() uint32 GetChainCode() []byte SetChildNum(*uint32) ProtoMessage() SetDepth(*uint32) String() string Reset() GetFingerprint() uint32 GetPublicKey() []byte GetChildNum() uint32 SetPublicKey([]byte) SetFingerprint(*uint32) SetChainCode([]byte) SetPrivateKey([]byte) }
type IdentityTyper ¶
type InputScriptType ¶
type InputScriptType int32
func InputScriptTyper2Type ¶
func InputScriptTyper2Type(x InputScriptTyper) InputScriptType
type InputScriptTyper ¶
type MultisigRedeemScriptTyper ¶
type MultisigRedeemScriptTyper interface { String() string ProtoMessage() SetPubkeys([]HDNodePathTyper) SetSignatures([][]byte) SetM(*uint32) GetPubkeys() []HDNodePathTyper GetSignatures() [][]byte GetM() uint32 Reset() }
type OutputAddressType ¶
type OutputAddressType int32
func OutputAddressTyper2Type ¶
func OutputAddressTyper2Type(x OutputAddressTyper) OutputAddressType
type OutputAddressTyper ¶
type OutputScriptType ¶
type OutputScriptType int32
func OutputScriptTyper2Type ¶
func OutputScriptTyper2Type(x OutputScriptTyper) OutputScriptType
type OutputScriptTyper ¶
type PinMatrixRequestType ¶
type PinMatrixRequestType int32
func PinMatrixRequestTyper2Type ¶
func PinMatrixRequestTyper2Type(x PinMatrixRequestTyper) PinMatrixRequestType
type PinMatrixRequestTyper ¶
type PolicyTyper ¶
type RawTransactionTyper ¶
type RecoveryDeviceType ¶
type RecoveryDeviceType int32
func RecoveryDeviceTyper2Type ¶
func RecoveryDeviceTyper2Type(x RecoveryDeviceTyper) RecoveryDeviceType
type RecoveryDeviceTyper ¶
type RequestType ¶
type RequestType int32
func RequestTyper2Type ¶
func RequestTyper2Type(x RequestTyper) RequestType
type RequestTyper ¶
type TransactionTyper ¶
type TransactionTyper interface { SetInputsCnt(*uint32) SetOutputsCnt(*uint32) SetExtraDataLen(*uint32) GetBinOutputs() []TxOutputBinTyper SetExtraData([]byte) GetOutputs() []TxOutputTyper GetExtraData() []byte GetExtraDataLen() uint32 GetVersion() uint32 GetInputs() []TxInputTyper ProtoMessage() SetVersion(*uint32) SetBinOutputs([]TxOutputBinTyper) GetInputsCnt() uint32 Reset() GetOutputsCnt() uint32 SetLockTime(*uint32) GetLockTime() uint32 String() string SetOutputs([]TxOutputTyper) SetInputs([]TxInputTyper) }
type TxInputTyper ¶
type TxInputTyper interface { SetMultisig(MultisigRedeemScriptTyper) SetAmount(*uint64) GetSequence() uint32 GetAmount() uint64 String() string SetPrevIndex(*uint32) GetScriptType() InputScriptTyper SetScriptSig([]byte) SetSequence(*uint32) SetAddressN([]uint32) SetPrevHash([]byte) GetAddressN() []uint32 ProtoMessage() GetPrevHash() []byte GetPrevIndex() uint32 GetScriptSig() []byte GetMultisig() MultisigRedeemScriptTyper Reset() SetScriptType(InputScriptTyper) }
type TxOutputBinTyper ¶
type TxOutputTyper ¶
type TxOutputTyper interface { GetAddressN() []uint32 SetAddress(*string) SetAddressType(OutputAddressTyper) GetMultisig() MultisigRedeemScriptTyper Reset() GetExchangeType() ExchangeTyper SetScriptType(OutputScriptTyper) SetAddressN([]uint32) SetAmount(*uint64) String() string GetScriptType() OutputScriptTyper GetAddressType() OutputAddressTyper GetOpReturnData() []byte SetMultisig(MultisigRedeemScriptTyper) SetOpReturnData([]byte) SetExchangeType(ExchangeTyper) GetAddress() string ProtoMessage() GetAmount() uint64 }
type TxRequestDetailsTyper ¶
type Typer ¶
type Typer interface { GetInputScriptType() InputScriptTyper GetTxRequestDetailsType() TxRequestDetailsTyper GetFailureType() FailureTyper GetIdentityType() IdentityTyper GetPinMatrixRequestType() PinMatrixRequestTyper GetRawTransactionType() RawTransactionTyper GetRequestType() RequestTyper GetHDNodeType() HDNodeTyper GetTxInputType() TxInputTyper GetPolicyType() PolicyTyper GetOutputAddressType() OutputAddressTyper GetRecoveryDeviceType() RecoveryDeviceTyper GetTxOutputType() TxOutputTyper GetTransactionType() TransactionTyper GetExchangeType() ExchangeTyper GetTxOutputBinType() TxOutputBinTyper GetButtonRequestType() ButtonRequestTyper GetTxRequestSerializedType() TxRequestSerializedTyper GetOutputScriptType() OutputScriptTyper GetMultisigRedeemScriptType() MultisigRedeemScriptTyper GetWordRequestType() WordRequestTyper GetHDNodePathType() HDNodePathTyper GetCoinType() CoinTyper }
type WordRequestType ¶
type WordRequestType int32
func WordRequestTyper2Type ¶
func WordRequestTyper2Type(x WordRequestTyper) WordRequestType
type WordRequestTyper ¶
Click to show internal directories.
Click to hide internal directories.