Versions in this module Expand all Collapse all v1 v1.0.2 Aug 16, 2022 v1.0.1 Aug 8, 2022 Changes in this version + var DOUBLE_SHA256 = func(s []common.Uint256) common.Uint256 + var Sha256ZeroHash = make([]byte, 32) + func AesDecrypt(ciphertext []byte, key []byte, iv []byte) ([]byte, error) + func AesEncrypt(plaintext []byte, key []byte, iv []byte) ([]byte, error) + func CheckPrivateKey(privateKey []byte) error + func CheckPublicKey(publicKey []byte) error + func CheckSeed(seed []byte) error + func ComputeRoot(hashes []common.Uint256) (common.Uint256, error) + func GenKeyPair() ([]byte, []byte, error) + func GenerateVrf(privateKey, data []byte, randSrc bool) ([]byte, []byte, error) + func GetPrivateKeyFromSeed(seed []byte) []byte + func GetPublicKeyFromPrivateKey(privateKey []byte) []byte + func GetSeedFromPrivateKey(priKey []byte) []byte + func PasswordHash(password []byte) []byte + func Sign(privateKey, data []byte) ([]byte, error) + func Verify(publicKey, data, signature []byte) error + func VerifyRoot(txnsHash []common.Uint256, txnsRoot []byte) error + func VerifyVrf(publicKey, data, vrf, proof []byte) bool + type MerkleTree struct + Depth uint + Root *MerkleTreeNode + func NewMerkleTree(hashes []common.Uint256) (*MerkleTree, error) + type MerkleTreeNode struct + Hash common.Uint256 + Left *MerkleTreeNode + Right *MerkleTreeNode + func (t *MerkleTreeNode) IsLeaf() bool