Documentation ¶
Index ¶
- func BlockToHashHeight(block *api.AccountBlock) (*ledger.HashHeight, error)
- func Derivation(mnemonic string, index uint32, err error) (*derivation.Key, *types.Address, error)
- func DerivationKey(mnemonic string, addr types.Address) (key *derivation.Key, index uint32, e error)
- func DervationFromEntropystore(filename, pwd string) (*derivation.Key, *types.Address, error)
- func EntropystoreToMnemonic(filename, pwd string) (string, error)
- func GetCli(url string) client.RpcClient
- func RandomEntropystore(dir, pwd string) (string, error)
- func RandomMnemonic() (string, error)
- type Receiver
- type Sender
- type SimpleRequestTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockToHashHeight ¶
func BlockToHashHeight(block *api.AccountBlock) (*ledger.HashHeight, error)
func Derivation ¶
func DerivationKey ¶
func EntropystoreToMnemonic ¶
func RandomEntropystore ¶
func RandomMnemonic ¶
Types ¶
type Receiver ¶
type Receiver struct {
*Sender
}
func NewReceiver ¶
func NewReceiverFromSender ¶
func (Receiver) BatchReceive ¶
func (s Receiver) BatchReceive(logs []client.ResponseTxParams, prev *ledger.HashHeight) ([]*ledger.HashHeight, error)
func (Receiver) Receive ¶
func (s Receiver) Receive(params client.ResponseTxParams, prev *ledger.HashHeight) (*ledger.HashHeight, error)
type Sender ¶
type Sender struct { Rpc client.RpcClient Cli client.Client Self types.Address // contains filtered or unexported fields }
func NewSenderFromCli ¶
func (Sender) BatchSend ¶
func (s Sender) BatchSend(logs []*SimpleRequestTx, prev *core.HashHeight) ([]*core.HashHeight, error)
func (Sender) Send ¶
func (s Sender) Send(params client.RequestTxParams, prev *core.HashHeight) (*core.HashHeight, error)
type SimpleRequestTx ¶
Click to show internal directories.
Click to hide internal directories.