Documentation
¶
Index ¶
Constants ¶
const AccountType = "account"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Type string `json:"type"`
Value AccountData `json:"value"` // TODO: custom encoding?
// contains filtered or unexported fields
}
type AccountData ¶
type AppDataReader ¶
AppDataReader takes a plugin name and txType and some json and serializes it into a binary format
type AppTx ¶
func (*AppTx) Sign ¶
Sign will add a signature and pubkey.
Depending on the Signable, one may be able to call this multiple times for multisig Returns error if called with invalid data or too many times
type BasecoinTx ¶
type BasecoinTx struct {
// contains filtered or unexported fields
}
func NewBasecoinTx ¶
func NewBasecoinTx(chainID string) BasecoinTx
func (BasecoinTx) ReadSignable ¶
func (t BasecoinTx) ReadSignable(data []byte) (keys.Signable, error)
Turn json into a signable object
func (BasecoinTx) RegisterParser ¶
func (t BasecoinTx) RegisterParser(name, txType string, reader TxReader)
type BasecoinValues ¶
type BasecoinValues struct {
// contains filtered or unexported fields
}
BasecoinValues handles parsing any binary database values and returning them as structs for introspection or json encoding
func NewBasecoinValues ¶
func NewBasecoinValues() *BasecoinValues
func (*BasecoinValues) ReadValue ¶
func (t *BasecoinValues) ReadValue(key, value []byte) (lc.Value, error)
Turn merkle binary into a json-able struct
func (*BasecoinValues) RegisterPlugin ¶
func (t *BasecoinValues) RegisterPlugin(reader lc.ValueReader)
type SendTx ¶
func (*SendTx) Sign ¶
Sign will add a signature and pubkey.
Depending on the Signable, one may be able to call this multiple times for multisig Returns error if called with invalid data or too many times
type TxType ¶
type TxType struct {
Type string `json:"type"`
Data *json.RawMessage `json:"data"`
}