elementsutil

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 5 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetHashFromBytes added in v0.4.0

func AssetHashFromBytes(buffer []byte) string

func AssetHashToBytes added in v0.4.0

func AssetHashToBytes(str string) ([]byte, error)

func CommitmentFromBytes added in v0.4.0

func CommitmentFromBytes(buffer []byte) string

func CommitmentToBytes added in v0.4.0

func CommitmentToBytes(str string) ([]byte, error)

func ReverseBytes

func ReverseBytes(buf []byte) []byte

ReverseBytes returns a copy of the given byte slice with elems in reverse order.

func TxIDFromBytes added in v0.4.0

func TxIDFromBytes(buffer []byte) string

func TxIDToBytes added in v0.4.0

func TxIDToBytes(str string) ([]byte, error)

func ValidElementValue added in v0.3.8

func ValidElementValue(val []byte) bool

func ValueFromBytes added in v0.4.0

func ValueFromBytes(val []byte) (uint64, error)

ElementsToSatoshiValue method converts Elements value to Satoshi value

func ValueToBytes added in v0.4.0

func ValueToBytes(val uint64) ([]byte, error)

ValueToBytes method converts Satoshi value to Elements value

Types

This section is empty.

Jump to

Keyboard shortcuts

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