package
0.108.1
Repository: https://github.com/nspcc-dev/neo-go.git
Documentation: pkg.go.dev

# Functions

CommitteeAddress return committee address as string.
CommitteeScriptHash returns committee address as Uint160.
CommitteeSize returns testchain committee size.
CommitteeVerificationScript returns script hash of the committee multisig address.
IDToOrder returns node's order in privnet.
MultisigAddress return consensus address as string.
MultisigScriptHash returns consensus address as Uint160.
MultisigVerificationScript returns script hash of the consensus multisig address.
Network returns testchain network's magic number.
NewBlock creates a new block for the given blockchain with the given offset (usually, 1), primary node index and transactions.
NewDeployTx returns a new deployment transaction for a contract with the source from r and a name equal to the filename without '.go' suffix.
NewTransferFromOwner returns a transaction transferring funds from NEO and GAS owner.
PrivateKey returns the private key of node #i.
PrivateKeyByID returns private keys of a node with the specified id.
Sign signs data by all consensus nodes and returns invocation script.
SignCommittee signs data by a majority of committee members.
SignTx signs the provided transactions with validator keys.
SignTxCommittee signs transactions by committee.
Size returns testchain initial validators amount.
WIF returns the unencrypted wif of the specified validator.

# Constants

ValidatorsCount returns the number of validators in the testchain.

# Interfaces

Ledger is an interface that abstracts the implementation of the blockchain.