network

package
v0.0.0-...-798156f Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package network contains functions that deal with digitalbits network passphrases and IDs.

Index

Constants

View Source
const (
	// PublicNetworkPassphrase is the pass phrase used for every transaction intended for the public digitalbits network
	PublicNetworkPassphrase = "Live DigitalBits Network ; March 2018"
	// TestNetworkPassphrase is the pass phrase used for every transaction intended for the SDF-run test network
	TestNetworkPassphrase = "Test DigitalBits Network ; December 2017"
)

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 digitalbits secret key to authorize the transaction identified by the hash to digitalbits validators.

func ID

func ID(passphrase string) [32]byte

ID returns the network ID derived from the provided passphrase. This value also happens to be the raw (i.e. not strkey encoded) secret key for the root account of the network.

Types

This section is empty.

Jump to

Keyboard shortcuts

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