Documentation ¶
Index ¶
- func AESDecrypt(crypted, key []byte) ([]byte, error)
- func AESEncrypt(src, key []byte) ([]byte, error)
- func AddressFromUint160(u util.Uint160) string
- func Base58CheckDecode(s string) (b []byte, err error)
- func Base58CheckEncode(b []byte) string
- func Uint160DecodeAddress(s string) (u util.Uint160, err error)
- type MerkleTree
- type MerkleTreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
AESDecrypt decrypts the encrypted source with the given key.
func AESEncrypt ¶
AESEncrypt encrypts the key with the given source.
func AddressFromUint160 ¶
AddressFromUint160 returns the "NEO address" from the given Uint160.
func Base58CheckDecode ¶
Base58CheckDecode decodes the given string.
func Base58CheckEncode ¶
Base58CheckEncode encodes b into a base-58 check encoded string.
Types ¶
type MerkleTree ¶
type MerkleTree struct {
// contains filtered or unexported fields
}
MerkleTree implementation.
func NewMerkleTree ¶
func NewMerkleTree(hashes []util.Uint256) (*MerkleTree, error)
NewMerkleTree returns new MerkleTree object.
func (*MerkleTree) Root ¶
func (t *MerkleTree) Root() util.Uint256
Root returns the computed root hash of the MerkleTree.
type MerkleTreeNode ¶
type MerkleTreeNode struct {
// contains filtered or unexported fields
}
MerkleTreeNode represents a node in the MerkleTree.
func (*MerkleTreeNode) IsLeaf ¶
func (n *MerkleTreeNode) IsLeaf() bool
IsLeaf returns whether this node is a leaf node or not.
func (*MerkleTreeNode) IsRoot ¶
func (n *MerkleTreeNode) IsRoot() bool
IsRoot returns whether this node is a root node or not.
Click to show internal directories.
Click to hide internal directories.