Documentation
¶
Index ¶
Constants ¶
View Source
const ( ZCNSCSmartContractAddress = "6dba10422e368813802877a85039d3985d96760ed844092319743fb3a76712e0" AddAuthorizerFunc = "AddAuthorizer" DeleteAuthorizerFunc = "DeleteAuthorizer" MintFunc = "mint" BurnFunc = "burn" // ConsensusThresh quorum required to reach consensus ConsensusThresh = float64(70.0) BurnWzcnTicketPath = "/v1/ether/burnticket/get" BurnNativeTicketPath = "/v1/0chain/burnticket/get" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config interface { // LogDir returns directory to store logs. LogDir() string // LogLvl returns level of logs. LogLvl() string // BlockWorker returns address of dns server. BlockWorker() string // SignatureScheme returns signature scheme. SignatureScheme() string }
Config represents config interface used for setup wallet.
type EthereumWallet ¶
type EthereumWallet struct { PublicKey *ecdsa.PublicKey PrivateKey *ecdsa.PrivateKey Address common.Address }
func NewEthereumWallet ¶
func NewEthereumWallet() (*EthereumWallet, error)
type Wallet ¶
Wallet represents a wallet that stores keys and additional info.
func CreateWallet ¶
CreateWallet creates initialized Wallet.
func NewZCNWallet ¶
func (*Wallet) ID ¶
ID returns the client id.
NOTE: client id represents hex encoded SHA3-256 hash of the raw public key.
func (*Wallet) RegisterToMiners ¶
RegisterToMiners registers wallet to the miners by executing zcncore.RegisterToMiners.
func (*Wallet) StringJSON ¶
StringJSON returns marshalled to JSON string Wallet.ZCNWallet.
Click to show internal directories.
Click to hide internal directories.