Documentation
¶
Overview ¶
Package network contains functions that deal with hcnet network passphrases and IDs.
Index ¶
Constants ¶
View Source
const ( // PublicNetworkPassphrase is the pass phrase used for every transaction intended for the public hcnet network PublicNetworkPassphrase = "Public Global HcNet Network ; September 2015" // TestNetworkPassphrase is the pass phrase used for every transaction intended for the SDF-run test network TestNetworkPassphrase = "Test SDF Network ; September 2015" )
Variables ¶
This section is empty.
Functions ¶
func HashTransaction ¶
func HashTransaction(tx *xdr.Transaction, passphrase string) ([32]byte, error)
HashTransaction derives the network specific hash for the provided transaction using the network identified by the supplied passphrase. The resulting hash is the value that can be signed by hcnet secret key to authorize the transaction identified by the hash to hcnet validators.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.