types

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressesResponse

type AddressesResponse struct {
	Evm     common.Address   `json:"evm" example:"0x1abae27a0cbfb02945720425d3b80c7e09728534" swaggertype:"string"`
	Bitcoin BitcoinAddresses `json:"bitcoin"`
}

type BitcoinAddresses

type BitcoinAddresses map[BitcoinNet]chain.KeyAddresses

type BitcoinNet

type BitcoinNet string
const (
	BtcMainnet  BitcoinNet = "mainnet"
	BtcTestnet3            = "testnet3"
)

type CreateEthereumStoreRequest

type CreateEthereumStoreRequest struct {
	KeyStore string `json:"keyStore" yaml:"key_store" validate:"required" example:"my-key-store"`
}

type CreateKeyStoreRequest

type CreateKeyStoreRequest struct {
	SecretStore string `json:"secretStore,omitempty" yaml:"secret_store,omitempty" example:"my-secret-store"`
	Vault       string `json:"vault,omitempty" yaml:"vault,omitempty" example:"hashicorp-quorum"`
}

type CreateSecretStoreRequest

type CreateSecretStoreRequest struct {
	Vault string `json:"vault" validate:"required" yaml:"vault" example:"hashicorp-kv-v2"`
}

type CreateWalletRequest

type CreateWalletRequest struct {
	KeyID string            `json:"keyId,omitempty" example:"my-key-account"`
	Tags  map[string]string `json:"tags,omitempty"`
}

type ImportWalletRequest

type ImportWalletRequest struct {
	KeyID      string            `json:"keyId,omitempty" example:"my-imported-key-account"`
	PrivateKey hexutil.Bytes     `` /* 135-byte string literal not displayed */
	Tags       map[string]string `json:"tags,omitempty"`
}

type SignWalletRequest

type SignWalletRequest struct {
	Data     hexutil.Bytes `json:"data" validate:"required" example:"0xfeade..." swaggertype:"string"`
	TypeSign string        `json:"type_sign" validate:"required" example:"ecdsa|eth_sign|taproot" swaggertype:"string"`
}

type UpdateWalletRequest

type UpdateWalletRequest struct {
	Tags map[string]string `json:"tags,omitempty"`
}

type WalletResponse

type WalletResponse struct {
	PublicKey           string                 `json:"publicKey" example:"0x1abae27a0cbfb02945720425d3b80c7e09728534" swaggertype:"string"`
	CompressedPublicKey string                 `json:"compressedPublicKey" example:"0x6019a3c8..." swaggertype:"string"`
	CreatedAt           time.Time              `json:"createdAt" example:"2020-07-09T12:35:42.115395Z"`
	UpdatedAt           time.Time              `json:"updatedAt" example:"2020-07-09T12:35:42.115395Z"`
	DeletedAt           *time.Time             `json:"deletedAt,omitempty" example:"2020-07-09T12:35:42.115395Z"`
	Tags                map[string]string      `json:"tags,omitempty"`
	Extra               map[string]interface{} `json:"extra,omitempty"`
	Disabled            bool                   `json:"disabled" example:"false"`
	Addresses           AddressesResponse      `json:"addresses,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL