package
0.2.5
Repository: https://github.com/qosgroup/qbase.git
Documentation: pkg.go.dev

# README

账户定义

版本: v0.1

日期: 2018年09月26日

简介:

账户提供基本的账户信息及相关方法

账户接口

type Account interface {
	GetAddress() types.AccAddress
	SetAddress(addr types.AccAddress) error
	GetPublicKey() crypto.PubKey
	SetPublicKey(pubKey crypto.PubKey) error
	GetNonce() int64
	SetNonce(nonce int64) error
}

数据结构

BaseAccount

type BaseAccount struct {
	AccountAddress types.AccAddress `json:"account_address"` // account address
	Publickey      crypto.PubKey    `json:"public_key"`      // public key
	Nonce          int64            `json:"nonce"`           // identifies tx_status of an account
}

方法规定

  • 获得结构原型
  • getter/setter
  • 注册序列化的方法

# Functions

将地址转换成存储通用的key.
No description provided by the author
用给定编码和原型生成mapper.
No description provided by the author
为包内定义结构注册codec.

# Constants

用户获取账户存储的store的键名.

# Structs

对BaseAccount存储操作进行包装的结构,可进行序列化.
No description provided by the author

# Interfaces

No description provided by the author