gointerfaces

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAddressToH160

func ConvertAddressToH160(addr [20]byte) *types.H160

func ConvertBytesToH2048

func ConvertBytesToH2048(data []byte) *types.H2048

func ConvertBytesToH512

func ConvertBytesToH512(b []byte) *types.H512

func ConvertH160toAddress

func ConvertH160toAddress(h160 *types.H160) [20]byte

func ConvertH2048ToBloom

func ConvertH2048ToBloom(h2048 *types.H2048) [256]byte

func ConvertH256ToHash

func ConvertH256ToHash(h256 *types.H256) [32]byte

func ConvertH256ToUint256Int

func ConvertH256ToUint256Int(h256 *types.H256) *uint256.Int

func ConvertH512ToBytes

func ConvertH512ToBytes(h512 *types.H512) []byte

func ConvertH512ToHash

func ConvertH512ToHash(h512 *types.H512) [64]byte

func ConvertHashToH256

func ConvertHashToH256(hash [32]byte) *types.H256

func ConvertHashToH512

func ConvertHashToH512(hash [64]byte) *types.H512

func ConvertHashesToH256

func ConvertHashesToH256(hashes [][32]byte) []*types.H256

func ConvertUint256IntToH256

func ConvertUint256IntToH256(i *uint256.Int) *types.H256

func EnsureVersion

func EnsureVersion(local Version, remote *types.VersionReply) bool

EnsureVersion - Default policy: allow only patch difference

Types

type Version

type Version struct {
	Major, Minor, Patch uint32 // interface Version of the client - to perform compatibility check when opening
}

func VersionFromProto

func VersionFromProto(r *types.VersionReply) Version

func (Version) String

func (v Version) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL