Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBlockChainExist is returned when create an existed block chain ErrBlockChainExist = errors.New("blockchain exist") // ErrCreateBlockChain is returned when create block chain error ErrCreateBlockChain = errors.New("create blockchain error") )
Functions ¶
func CreateLedger ¶
CreateLedger 通过创世块配置文件地址创建全新账本
func CreateLedgerWithData ¶
CreateLedgerWithData 通过创世块字节数据创建全新账本
func GetCryptoType ¶
GetCryptoType 解析json中的crypto字段并返回
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.