Documentation
¶
Index ¶
- func BigIntFromBitsBytes(bits []byte) *big.Int
- func BigIntFromBitsHex(bits string) *big.Int
- func BytesIndexOf(data [][]byte, element []byte) int
- func CoinsToSatoshis(coins float64, magnitude int, coinPrecision int) uint64
- func CommandStringBytes(s string) []byte
- func FileExists(filename string) bool
- func FixedLenStringBytes(s string, l int) []byte
- func GetReadableHashRateString(hashrate float64) string
- func HexDecode(b []byte) []byte
- func HexEncode(b []byte) []byte
- func Jsonify(i interface{}) []byte
- func JsonifyIndentString(i interface{}) string
- func MiningKeyToScript(addrMiningKey string) []byte
- func P2PKHAddressToScript(addr string) []byte
- func P2SHAddressToScript(addr string) []byte
- func P2WSHAddressToScript(addr string) []byte
- func PackInt32BE(n int32) []byte
- func PackInt64BE(n int64) []byte
- func PackUint16BE(n uint16) []byte
- func PackUint16LE(n uint16) []byte
- func PackUint32BE(n uint32) []byte
- func PackUint32LE(n uint32) []byte
- func PackUint64BE(n uint64) []byte
- func PackUint64LE(n uint64) []byte
- func PublicKeyToScript(key string) []byte
- func RandHexUint64() string
- func RandPositiveInt64() int64
- func Range(start, stop, step int) []int
- func RawJsonToString(raw json.RawMessage) string
- func ReverseByteOrder(b []byte) []byte
- func ReverseBytes(b []byte) []byte
- func SatoshisToCoins(satoshis uint64, magnitude int, coinPrecision int) float64
- func ScriptPubKeyToScript(addr string) []byte
- func SerializeNumber(n uint64) []byte
- func SerializeString(s string) []byte
- func Sha256(b []byte) []byte
- func Sha256d(b []byte) []byte
- func StringsIndexOf(data []string, element string) int
- func Uint256BytesFromHash(h string) []byte
- func VarIntBytes(n uint64) []byte
- func VarStringBytes(str string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BigIntFromBitsBytes ¶
func BigIntFromBitsHex ¶
func BytesIndexOf ¶
func CommandStringBytes ¶
func FileExists ¶
func FixedLenStringBytes ¶
func JsonifyIndentString ¶
func JsonifyIndentString(i interface{}) string
func MiningKeyToScript ¶
func P2PKHAddressToScript ¶
For POW coins - used to format wallet address for use in generation transaction's output Works for p2pkh only
func P2SHAddressToScript ¶
func P2WSHAddressToScript ¶
func PackInt32BE ¶
func PackInt64BE ¶
func PackUint16BE ¶
func PackUint16LE ¶
func PackUint32BE ¶
func PackUint32LE ¶
func PackUint64BE ¶
func PackUint64LE ¶
func PublicKeyToScript ¶
For POS coins - used to format wallet address for use in generation transaction's output
func RandHexUint64 ¶
func RandHexUint64() string
func RandPositiveInt64 ¶
func RandPositiveInt64() int64
func RawJsonToString ¶
func RawJsonToString(raw json.RawMessage) string
func ReverseBytes ¶
func SatoshisToCoins ¶
func ScriptPubKeyToScript ¶
func SerializeNumber ¶
func SerializeString ¶
func StringsIndexOf ¶
func Uint256BytesFromHash ¶
func VarIntBytes ¶
func VarStringBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.