Documentation ¶
Index ¶
- Variables
- func ValidateAccountType(val string) bool
- func ValidateActionType(val string) bool
- func ValidateBitcoinType(val string) bool
- func ValidateEnvironmentType(val string) bool
- func ValidateKeyStatus(val string) bool
- func ValidateTxType(val string) bool
- type AccountType
- type ActionType
- type AddressType
- type BTCVersion
- type CoinType
- type EnvironmentType
- type KeyStatus
- type NetworkType
- type TxType
- type WalletType
Constants ¶
This section is empty.
Variables ¶
var AccountTypeMultisig = map[AccountType]bool{ AccountTypeClient: false, AccountTypeReceipt: true, AccountTypePayment: true, AccountTypeQuoine: true, AccountTypeFee: true, AccountTypeStored: true, AccountTypeAuthorization: false, }
AccountTypeMultisig account_type毎のmultisig対応アカウントかどうか
var AccountTypeValue = map[AccountType]uint8{ AccountTypeClient: 0, AccountTypeReceipt: 1, AccountTypePayment: 2, AccountTypeQuoine: 3, AccountTypeFee: 4, AccountTypeStored: 5, AccountTypeAuthorization: 6, }
AccountTypeValue account_typeの値
var ActionTypeValue = map[ActionType]uint8{ ActionTypeReceipt: 1, ActionTypePayment: 2, ActionTypeTransfer: 3, }
ActionTypeValue action_typeの値
var AddressTypeValue = map[AddressType]uint8{ AddressTypeLegacy: 0, AddressTypeP2shSegwit: 1, AddressTypeBech32: 2, }
AddressTypeValue address_typeの値
var CoinTypeValue = map[CoinType]uint8{ BTC: 1, BCH: 2, }
CoinTypeValue coin_typeの値
var EnvironmentTypeValue = map[EnvironmentType]uint8{ EnvDev: 1, EnvProd: 2, }
EnvironmentTypeValue env_typeの値
var KeyStatusValue = map[KeyStatus]uint8{ KeyStatusGenerated: 0, KeyStatusImportprivkey: 1, KeyStatusPubkeyExported: 2, KeyStatusMultiAddressImported: 3, KeyStatusAddressExported: 4, }
KeyStatusValue key_statusの値
var TxTypeValue = map[TxType]uint8{ TxTypeUnsigned: 1, TxTypeUnsigned2nd: 2, TxTypeSigned: 3, TxTypeSent: 4, TxTypeDone: 5, TxTypeNotified: 6, TxTypeCancel: 7, }
TxTypeValue tx_typeの値
var WalletTypeValue = map[WalletType]uint8{ WalletTypeWatchOnly: 1, WalletTypeCold1: 2, WalletTypeCold2: 3, }
WalletTypeValue env_typeの値
Functions ¶
func ValidateAccountType ¶
ValidateAccountType AccountTypeのバリデーションを行う
func ValidateActionType ¶
ValidateActionType ActionTypeのバリデーションを行う
func ValidateBitcoinType ¶
ValidateBitcoinType BitcoinTypeのバリデーションを行う
func ValidateEnvironmentType ¶
ValidateEnvironmentType EnvironmentTypeのバリデーションを行う
func ValidateKeyStatus ¶
ValidateKeyStatus KeyStatusのバリデーションを行う
Types ¶
type AccountType ¶
type AccountType string
AccountType 利用目的
const ( AccountTypeClient AccountType = "client" //ユーザーの入金受付用アドレス AccountTypeReceipt AccountType = "receipt" //入金を受け付けるアドレス用 AccountTypePayment AccountType = "payment" //出金時に支払いをするアドレス AccountTypeQuoine AccountType = "quoine" //Quoineから購入したcoinが入金されるであろうアドレス AccountTypeFee AccountType = "fee" //手数料保管用アドレス AccountTypeStored AccountType = "stored" //保管用アドレス(多額のコインはこちらに保管しておく AccountTypeAuthorization AccountType = "authorization" //マルチシグアドレスのための承認アドレス )
account_type
type ActionType ¶
type ActionType string
ActionType 入金/出金
const ( ActionTypeReceipt ActionType = "receipt" ActionTypePayment ActionType = "payment" ActionTypeTransfer ActionType = "transfer" )
action
type AddressType ¶
type AddressType string
AddressType address種別
const ( AddressTypeLegacy AddressType = "legacy" AddressTypeP2shSegwit AddressType = "p2sh-segwit" AddressTypeBech32 AddressType = "bech32" )
address type
type BTCVersion ¶
type BTCVersion int
BTCVersion 実行環境
const ( BTCVer16 BTCVersion = 160000 BTCVer17 BTCVersion = 170000 BTCVer18 BTCVersion = 180000 )
environment
type EnvironmentType ¶
type EnvironmentType string
EnvironmentType 実行環境
const ( EnvDev EnvironmentType = "dev" EnvProd EnvironmentType = "prod" )
environment
type KeyStatus ¶
type KeyStatus string
KeyStatus Key生成進捗ステータス
const ( KeyStatusGenerated KeyStatus = "generated" //hd_walletによってkeyが生成された KeyStatusImportprivkey KeyStatus = "importprivkey" //importprivkeyが実行された KeyStatusPubkeyExported KeyStatus = "pubkey_exported" //pubkeyがexportされた(receipt/payment) KeyStatusMultiAddressImported KeyStatus = "multi_address_imported" //multiaddがimportされた(receipt/payment) KeyStatusAddressExported KeyStatus = "address_exported" //addressがexportされた )
key_status
type NetworkType ¶
type NetworkType string
NetworkType ネットワーク種別
const ( NetworkTypeMainNet NetworkType = "mainnet" NetworkTypeTestNet3 NetworkType = "testnet3" NetworkTypeRegTestNet NetworkType = "regtest" )
network type
type TxType ¶
type TxType string
TxType トランザクション種別
type WalletType ¶
type WalletType string
WalletType Walletタイプ
const ( WalletTypeWatchOnly WalletType = "watch_only" WalletTypeCold1 WalletType = "cold1" WalletTypeCold2 WalletType = "cold2" )
wallet_type