package
2.0.0-20220708071425-d7ce1a44ab3e
Repository: https://github.com/superconsensusmatrixchain/matrixchain-sdk-go.git
Documentation: pkg.go.dev

# Functions

CreateAccount create an account.
CreateAndSaveAccountToFile create an account and save to file.
DoubleSha256 执行2次SHA256,这是为了防止SHA256算法被攻破。.
EVMToXchainAddress evm address transfer to xchain address: evmAddr can be evm contract account, AK address, xchain contract name.
GetAccountFromFile get an account from file and password.
GetAccountFromPlainFile import account from plain files which are JSON encoded 指定路径下的结构如下: - keys |-- address |-- private.key |-- public.key.
RetrieveAccount retrieve account from mnemonic.
UsingSha256 get the hash result of data using SHA256.
XchainToEVMAddress xchain address transfer to evm address: xchainAddr can be xchain contract account, AK address, xchain contract name.

# Constants

ContractAccountType 合约账户地址类型.
ContractNameType 合约名字地址类型.
XchainAddrType xchain AK 地址类型.

# Structs

Account account structure.