Documentation
¶
Overview ¶
Package network contains functions that deal with diamcircle network passphrases and IDs.
Index ¶
- Constants
- func HashFeeBumpTransaction(tx xdr.FeeBumpTransaction, passphrase string) ([32]byte, error)
- func HashTransaction(tx xdr.Transaction, passphrase string) ([32]byte, error)
- func HashTransactionInEnvelope(envelope xdr.TransactionEnvelope, passphrase string) ([32]byte, error)
- func HashTransactionV0(tx xdr.TransactionV0, passphrase string) ([32]byte, error)
- func ID(passphrase string) [32]byte
Constants ¶
const ( // PublicNetworkPassphrase is the pass phrase used for every transaction intended for the public diamcircle network PublicNetworkPassphrase = "Diamante MainNet; SEP 2022" // TestNetworkPassphrase is the pass phrase used for every transaction intended for the SDF-run test network TestNetworkPassphrase = "Diamante Testnet 2024" // Diamante Testnet //"Pyramid ; October 2022" // )
Variables ¶
This section is empty.
Functions ¶
func HashFeeBumpTransaction ¶
func HashFeeBumpTransaction(tx xdr.FeeBumpTransaction, passphrase string) ([32]byte, error)
HashFeeBumpTransaction derives the network specific hash for the provided fee bump transaction using the network identified by the supplied passphrase. The resulting hash is the value that can be signed by diamcircle secret key to authorize the transaction identified by the hash to diamcircle validators.
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 diamcircle secret key to authorize the transaction identified by the hash to diamcircle validators.
func HashTransactionInEnvelope ¶
func HashTransactionInEnvelope(envelope xdr.TransactionEnvelope, passphrase string) ([32]byte, error)
HashTransactionInEnvelope derives the network specific hash for the transaction contained in the provided envelope using the network identified by the supplied passphrase. The resulting hash is the value that can be signed by diamcircle secret key to authorize the transaction identified by the hash to diamcircle validators.
func HashTransactionV0 ¶
func HashTransactionV0(tx xdr.TransactionV0, passphrase string) ([32]byte, error)
HashTransactionV0 derives the network specific hash for the provided legacy transaction using the network identified by the supplied passphrase. The resulting hash is the value that can be signed by diamcircle secret key to authorize the transaction identified by the hash to diamcircle validators.
Types ¶
This section is empty.