package
2.0.0+incompatible
Repository: https://github.com/quarkchain/goquarkchain.git
Documentation: pkg.go.dev
# Functions
BytesToIdentityKey trans bytes to Key.
BytesToIdentityRecipient trans bytes to Recipient.
CreatAddressFromBytes creat address from bytes.
CreatAddressFromIdentity creat address from identity.
CreatBranch create branch depend shardSize and shardID.
CreatEmptyAddress creat empty address from fullShardKey.
CreatIdentityFromKey creat identity from key.
CreatRandomAccountWithFullShardKey creat random account with fullShardKey.
CreatRandomAccountWithoutFullShardKey creat random account without fullShardKey.
CreatRandomIdentity create a random identity.
DecodeKeyStoreJSON decode key with password ,return plainText to create account.
IsNeighbor Check if the two branches are neighbor.
No description provided by the author
No description provided by the author
Load load a keystore file with password.
NewAccountWithKey create new account with key.
NewAccountWithoutKey new account without key,use random key.
NewAddress new address with recipient and fullShardKey.
NewBranch new branch with value.
NewIdentity new identity include recipient and key.
PublicKeyToRecipient publicKey to recipient.
Uint32ToBytes trans uint32 num to bytes.
# Constants
DefaultKeyStoreDirectory default keystore dir.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrGenIdentityKey error info : err generate identity key.
# Structs
Account include Identity address and ID.
Address include recipient and fullShardKey.
Branch branch include it's value.
No description provided by the author
No description provided by the author
CryptoJSON crypto data for keystore file.
EncryptedKeyJSON keystore file included.
Identity include recipient and key.
# Type aliases
Key key type.
Recipient recipient type.
No description provided by the author