package
0.0.0-20181119063715-1c4572a29db3
Repository: https://github.com/mesment/chain33.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON.
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
存储地址参与的交易数量。add时加一,del时减一.
用于存储地址相关的hash列表,key=TxAddrHash:addr:flag:height*100000 + index地址下面某个分类的交易.
用于存储地址相关的hash列表,key=TxAddrHash:addr:height*100000 + index地址下面所有的交易.
CalcTxKey local db中保存交易的方法.
No description provided by the author
No description provided by the author
重构完成后删除.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
原来实现有bug, 但生成的key在状态树里, 不可修改 mavl-config–{key}  key 前面两个-.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
通过反射,解析日志.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetTxTimeInterval 获取交易有效期.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
默认的allow 规则->根据 GetRealExecName 来判断name 必须大于3 小于 100.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
判断所有的空值.
空指针或者接口.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
bityuan test net fork.
realtime - localtime超过60s 不做修正为了系统的安全,我们只做小范围时间错误的修复.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
coin conversation.
No description provided by the author
ty = 1 -> secp256k1ty = 2 -> ed25519ty = 3 -> sm2ty = 4 -> onetimeed25519ty = 5 -> RingBaseonED25519ty = 1+offset(1<<8) ->auth_ecdsaty = 2+offset(1<<8) -> auth_sm2.
event.
event.
event.
event.
event.
event.
event.
event.
exec.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
seed.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
local store.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
wallet event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
exec type.
exec type.
exec type.
No description provided by the author
ty = 1 -> secp256k1ty = 2 -> ed25519ty = 3 -> sm2ty = 4 -> onetimeed25519ty = 5 -> RingBaseonED25519ty = 1+offset(1<<8) ->auth_ecdsaty = 2+offset(1<<8) -> auth_sm2.
20M.
coin conversation.
出于forks 过程安全的考虑,比如代码更新,出现了新的fork,旧的链只要不明确指定 fork的高度,那么默认fork高度为 MaxHeight 也就是新的代码默认不会被启用,知道使用的人明确指定了fork的高度 */.
900亿.
coin conversation.
100K.
coin conversation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
创建隐私交易的类型定义.
创建隐私交易的类型定义.
创建隐私交易的类型定义.
ty = 1 -> secp256k1ty = 2 -> ed25519ty = 3 -> sm2ty = 4 -> onetimeed25519ty = 5 -> RingBaseonED25519ty = 1+offset(1<<8) ->auth_ecdsaty = 2+offset(1<<8) -> auth_sm2.
No description provided by the author
No description provided by the author
ty = 1 -> secp256k1ty = 2 -> ed25519ty = 3 -> sm2ty = 4 -> onetimeed25519ty = 5 -> RingBaseonED25519ty = 1+offset(1<<8) ->auth_ecdsaty = 2+offset(1<<8) -> auth_sm2.
coin conversation.
No description provided by the author
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
coins.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
这里又限制了一次,因为挖矿的合约不会太多,所以这里配置死了,如果要扩展,需要改这里的代码.
区块链共识相关的参数,重要参数不要随便修改.
No description provided by the author
No description provided by the author
这字符串表示数据库中的空值.
默认情况下不开启fork.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BlockChain Error Types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
rpc.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
p2p.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
wallet.
No description provided by the author
交易过期分界线,小于expireBound比较height,大于expireBound比较blockTime.
No description provided by the author
No description provided by the author
eg: current Height is 10000TxHeight is 10010=> Height <= TxHeight + HighAllowPackHeight=> Height >= TxHeight - LowAllowPackHeight那么交易可以打包的范围是: 10010 - 100 = 9910 , 10010 + 200 = 10210 (9910,10210)可以合法的打包交易注意,这两个条件必须同时满足.关于交易去重复:也就是说,另外一笔相同的交易,只能被打包在这个区间(9910,10210)。那么检查交易重复的时候,我只要检查 9910 - currentHeight 这个区间的交易不要重复就好了.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
标记是一个时间还是一个 TxHeight.
No description provided by the author
No description provided by the author
No description provided by the author
addr:1Cbo5u8V5F3ubWBv9L6qu9wWxKuD3qBVpi,这里只是作为测试用,后面需要修改为系统账户.

# Structs

Account 的信息.
Account 的列表.
No description provided by the author
No description provided by the author
配置修改部分.
No description provided by the author
assert transfer struct.
No description provided by the author
No description provided by the author
No description provided by the author
参考Header解释.
区块体信息 txs : 区块上所有交易列表 receipts :区块上所有交易的收据信息列表.
No description provided by the author
区块详细信息 block : 区块信息 receipts :区块上所有交易的收据信息列表.
resp.
区块视图 head : 区块头信息 txCount :区块上交易个数 txHashes : 区块上交易的哈希列表.
节点ID以及对应的Block.
No description provided by the author
通过block hash记录block的操作类型及add/del:1/2.
resp.
* p2p 广播数据协议.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
区块链状态 currentHeight : 区块最新高度 mempoolSize :内存池大小 msgQueueSize : 消息队列大小.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Entry
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
区块头信息 version : 版本信息 parentHash :父哈希 txHash : 交易根哈希 stateHash :状态哈希 height : 区块高度 blockTime :区块产生时的时标 txCount : 区块上所有交易个数 difficulty :区块难度系数, signature :交易签名.
resp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* inv 请求协议.
No description provided by the author
No description provided by the author
* inv 返回数据.
ty=MSG_TX MSG_BLOCK.
区块追赶主链状态,用于判断本节点区块是否已经同步好.
ntp时钟状态.
迭代查询symbol代币总额.
No description provided by the author
merkle avl tree.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
payAddr 可以支持 1.
*当前节点的网络信息.
No description provided by the author
No description provided by the author
* 返回请求地址列表的社保.
No description provided by the author
* p2p 发送区块协议.
* 节点外网信息.
* 获取对方节点所连接的其他节点地址的请求包.
* 获取区间区块.
* 通过invs 下载数据.
* p2p 获取区块区间头部信息协议.
* 获取mempool.
* 请求获取远程节点的节点信息.
* p2p 区块头传输协议.
No description provided by the author
* 节点信息.
* P2P 心跳包.
* 心跳返回包.
* p2p 发送交易协议.
* P2P 版本返回.
* p2p节点间发送版本数据结构.
平行链区块详细信息 blockdetail : 区块详细信息 sequence :区块序列号.
* peer 信息.
* peer 列表.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ty = 0 -> error Receipt ty = 1 -> CutFee //cut fee ,bug exec not ok ty = 2 -> exec ok.
账户余额改变的一个交易回报(coins内).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
账户余额改变的一个交易回报(合约内).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
查询symbol代币总额应答.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
查询一个地址列表在某个执行器中余额.
获取区块信息 start : 获取区块的开始高度 end :获取区块的结束高度 Isdetail : 是否需要获取区块的详细信息 pid : peer列表.
某些交易需要存在一些复杂的算法,所以需要请求服务器协助构建交易,返回对应交易哈希值,后续签名可以根据此哈希值进行处理.
No description provided by the author
查询symbol代币总额.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
发送交易 from : 打出地址 to :接受地址 amount : 转账额度 note :转账备注.
No description provided by the author
No description provided by the author
No description provided by the author
获取钱包交易的详细信息 fromTx : []byte( Sprintf("%018d", height*100000 + index), 表示从高度 height 中的 index 开始获取交易列表; 第一次传参为空,获取最新的交易。) count :获取交易列表的个数。 direction :查找方式;0,上一页;1,下一页。.
No description provided by the author
环签名类型时,签名字段存储的环签名信息.
环签名中的一组签名数据.
No description provided by the author
存储钱包的种子 seed : 钱包种子 passwd :钱包密码.
对于一个交易组中的交易,要么全部成功,要么全部失败这个要好好设计一下最好交易构成一个链条[prevhash].独立的交易构成链条只要这个组中有一个执行是出错的,那么就执行不成功三种签名支持 ty = 1 -> secp256k1 ty = 2 -> ed25519 ty = 3 -> sm2 ty = 4 -> OnetimeED25519 ty = 5 -> RingBaseonED25519.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
用于存储db Pool数据的Value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
手续费.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* p2p 协议和软件版本.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
钱包模块存贮的账户信息 privkey : 账户地址对应的私钥 label :账户地址对应的标签 addr :账户地址 timeStamp :创建账户时的时标.
钱包模块通过一个随机值对钱包密码加密 pwHash : 对钱包密码和一个随机值组合进行哈希计算 randstr :对钱包密码加密的一个随机值.
钱包当前的状态 isWalletLock : 钱包是否锁状态,true锁定,false解锁 isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿 isHasSeed : 钱包是否有种子,true已有,false没有 isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账.
钱包模块存贮的tx交易详细信息 tx : tx交易信息 receipt :交易收据信息 height :交易所在的区块高度 index :交易所在区块中的索引 blocktime :交易所在区块的时标 amount :交易量 fromaddr :交易打出地址 txhash : 交易对应的哈希值 actionName :交易对应的函数调用 payload: 保存额外的一些信息,主要是给插件使用.
No description provided by the author
钱包解锁 passwd : 钱包密码 timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定 walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包.

# Interfaces

No description provided by the author
Chain33Client is the client API for Chain33 service.
Chain33Server is the server API for Chain33 service.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
P2PgserviceClient is the client API for P2Pgservice service.
P2PgserviceServer is the server API for P2Pgservice service.
No description provided by the author
交易组的接口,Transactions 和 Transaction 都符合这个接口.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author