Documentation ¶
Index ¶
- type BackupCheckRequest
- type BackupCheckResponse
- type BackupRestoreRequest
- type BackupRestoreResponse
- type BackupStoreRequest
- type BackupStoreResponse
- type BackupVCodeRequest
- type BackupVCodeResponse
- type BackupVerifyRequest
- type BackupVerifyResponse
- type EcdsaR2Request
- type EcdsaR2Response
- type EcdsaS2Request
- type EcdsaS2Response
- type Request
- type Response
- type ServerInfoResponse
- type TokenRequest
- type TokenResponse
- type TxPushRequest
- type TxPushResponse
- type VCodeRequest
- type WalletAddressesRequest
- type WalletAddressesResponse
- type WalletBalanceRequest
- type WalletBalanceResponse
- type WalletCheckRequest
- type WalletCheckResponse
- type WalletCreateRequest
- type WalletCreateResponse
- type WalletNewAddressRequest
- type WalletNewAddressResponse
- type WalletPortfolioRequest
- type WalletPortfolioResponse
- type WalletSendFeesRequest
- type WalletSendFeesResponse
- type WalletTxsRequest
- type WalletTxsResponse
- type WalletUnspentRequest
- type WalletUnspentResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupRestoreRequest ¶
type BackupRestoreRequest struct { VCode string `json:"vcode"` Signature string `json:"signature"` }
BackupRestoreRequest --
type BackupRestoreResponse ¶
type BackupRestoreResponse struct { Time int64 `json:"time"` EncryptedPrvKey string `json:"encrypted_prvkey"` }
BackupStoreResponse --
type BackupStoreRequest ¶
type BackupStoreRequest struct { Email string `json:"email"` VCode string `json:"vcode"` DeviceID string `json:"deviceid"` Signature string `json:"signature"` CloudService string `json:"cloud_service"` EncryptedPrvKey string `json:"encrypted_prvkey"` EncryptionPubKey string `json:"encryption_pubkey"` }
BackupStoreRequest --
type BackupVCodeResponse ¶
type BackupVCodeResponse struct {
VCode string `json:"vcode"`
}
BackupVCodeResponse --
type BackupVerifyRequest ¶
type BackupVerifyRequest struct {
EncryptionPubKeyHash string `json:"encryption_pubkey_hash"`
}
BackupVerifyRequest --
type BackupVerifyResponse ¶
type BackupVerifyResponse struct { VerifyPassed bool `json:"verify_passed"` VerifyTimestamp int64 `json:"verify_timestamp"` }
BackupVerifyResponse --
type EcdsaR2Request ¶
type EcdsaR2Request struct { Pos uint32 `json:"pos"` Hash []byte `json:"hash"` R1 *secp256k1.Scalar `json:"R1"` }
EcdsaR2Request --
type EcdsaR2Response ¶
EcdsaR2Response --
type EcdsaS2Request ¶
type EcdsaS2Request struct { Pos uint32 `json:"pos"` Hash []byte `json:"hash"` EncPK1 *big.Int `json:"encpk1"` EncPub1 *paillier.PubKey `json:"encpub1"` R1 *secp256k1.Scalar `json:"R1"` }
EcdsaS2Request --
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request --
func (*Request) SetHeaders ¶
SetHeaders -- used to set the headers pair.
func (*Request) SetTimeout ¶
SetTimeout -- used to set the timeout.
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response --
type ServerInfoResponse ¶
type ServerInfoResponse struct { ChainNet string `json:"chainnet"` ServerTime int64 `json:"server_time"` EnableVCode bool `json:"enable_vcode"` }
ServerInfoResponse --
type TokenRequest ¶
type TokenRequest struct { UID string `json:"uid"` VCode string `json:"vcode"` DeviceID string `json:"deviceid"` }
TokenRequest --
type WalletAddressesRequest ¶
WalletAddressesRequest --
type WalletAddressesResponse ¶
WalletAddressesResponse --
type WalletBalanceResponse ¶
type WalletBalanceResponse struct {
CoinValue uint64 `json:"coin_value"`
}
WalletBalanceResponse --
type WalletCheckResponse ¶
type WalletCheckResponse struct { WalletExists bool `json:"wallet_exists"` BackupExists bool `json:"backup_exists"` ForceRecover bool `json:"force_rocover"` BackupTimestamp int64 `json:"backup_timestamp"` BackupCloudService string `json:"backup_cloudservice"` }
WalletCheckResponse --
type WalletCreateRequest ¶
type WalletCreateRequest struct { Signature string `json:"signature"` MasterPubKey string `json:"masterpubkey"` }
WalletCreateRequest --
type WalletNewAddressRequest ¶
WalletNewAddressRequest --
type WalletNewAddressResponse ¶
WalletNewAddressResponse --
type WalletPortfolioRequest ¶
type WalletPortfolioRequest struct {
Code string `json:"code"`
}
WalletPortfolioRequest --
type WalletPortfolioResponse ¶
type WalletPortfolioResponse struct { CoinSymbol string `json:"coin_symbol"` FiatSymbol string `json:"fiat_symbol"` CurrentPrice float64 `json:"current_price"` }
WalletPortfolioResponse --
type WalletSendFeesRequest ¶
type WalletSendFeesRequest struct { Priority string `json:"priority"` SendValue uint64 `json:"send_value"` }
WalletSendFeesRequest --
type WalletSendFeesResponse ¶
type WalletSendFeesResponse struct { Fees uint64 `json:"fees"` TotalValue uint64 `json:"total_value"` SendableValue uint64 `json:"sendable_value"` }
WalletSendFeesResponse --
type WalletTxsRequest ¶
type WalletTxsRequest struct { Offset int `json:"offset"` Limit int `json:"limit"` OrderBy string `json:"orderby"` }
WalletTxsRequest --
type WalletTxsResponse ¶
type WalletTxsResponse struct { Txid string `json:"txid"` Fee int64 `json:"fee"` Data string `json:"data"` Link string `json:"link"` Value int64 `json:"value"` Confirmed bool `json:"confirmed"` BlockTime int64 `json:"block_time"` BlockHeight int64 `json:"block_height"` }
WalletTxsResponse --
type WalletUnspentRequest ¶
type WalletUnspentRequest struct {
Amount uint64 `json:"amount"`
}
WalletUnspentRequest --
type WalletUnspentResponse ¶
type WalletUnspentResponse struct { Pos uint32 `json:"pos"` Txid string `json:"txid"` Vout uint32 `json:"vout"` Value uint64 `json:"value"` Address string `json:"address"` Confirmed bool `json:"confirmed"` SvrPubKey string `json:"svrpubkey"` Scriptpubkey string `json:"scriptpubkey"` }
WalletUnspentResponse --