Documentation
¶
Index ¶
- func AddByte(one []byte, two byte) []byte
- func Base582Hex(b string) []byte
- func Big2Hex32(b *big.Int) [32]byte
- func Byte2String(b []byte) string
- func ConcatBytes(list ...[]byte) []byte
- func DoubleDoubleSHA(a []byte, b []byte) []byte
- func DoubleSHA(b []byte) []byte
- func DoubleSHAPair(a []byte, b []byte) []byte
- func DoubleSHAPairRev(a []byte, b []byte) []byte
- func DoubleSHARev(b []byte) []byte
- func GenerateMerkleTree(leafs [][]byte) [][]byte
- func GenerateMerkleTreeFromString(leafs []string) []string
- func Hex2Base58Str(val []byte) string
- func Hex2Base58String(val []byte) string
- func Hex2Big(b []byte) *big.Int
- func Hex2Str(b []byte) string
- func Hex2String(b []byte) string
- func Hex2Uint32(b []byte) uint32
- func Hex2Uint64(b []byte) uint64
- func HexRev2Big(rev []byte) *big.Int
- func HexRev2Str(b []byte) string
- func HexRev2String(b []byte) string
- func HexRev2Uint32(b []byte) uint32
- func HexRev2Uint64(b []byte) uint64
- func Int2Hex(i int) []byte
- func Makesecp256k1()
- func Randuint64() []byte
- func Randuint64Rev() []byte
- func Rev(b []byte) []byte
- func RevTest() bool
- func Ripemd(b []byte) []byte
- func RipemdRev(b []byte) []byte
- func SHARipemd(b []byte) []byte
- func SHARipemdRev(b []byte) []byte
- func SingleSHA(b []byte) []byte
- func SingleSHA1(b []byte) []byte
- func SingleSHA1Rev(b []byte) []byte
- func SingleSHARev(b []byte) []byte
- func Str2Hex(s string) []byte
- func Str2HexRev(s string) []byte
- func String2Hex(s string) []byte
- func String2Hex32(s string) [32]byte
- func String2HexRev(s string) []byte
- func TestBase58()
- func TestCompile() bool
- func TestEverything() bool
- func TestEverythingBitmath() bool
- func TestGenerateMerkleTree() bool
- func TestLen() bool
- func TestVarInt() bool
- func TestVarInt2Hex() bool
- func TestVarInt2HexRev() bool
- func TestVarStr() bool
- func Uint162Hex(ui uint16) []byte
- func Uint162HexRev(ui uint16) []byte
- func Uint2Hex(ui uint) []byte
- func Uint322Hex(ui uint32) []byte
- func Uint322HexRev(ui uint32) []byte
- func Uint642Hex(ui uint64) []byte
- func Uint642HexRev(ui uint64) []byte
- func VarInt2Hex(vi VarInt) []byte
- func VarInt2HexRev(vi VarInt) []byte
- type Base58
- type VarInt
- type VarStr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Byte2String ¶
func ConcatBytes ¶
func DoubleDoubleSHA ¶
TODO: test and add to tests double hash input bytes, double hash their concatanation
func DoubleSHAPair ¶
TODO: test and add to tests double SHA-256 hash of a concatenation of the two inputs
func DoubleSHAPairRev ¶
TODO: test and add to tests double SHA-256 hash of a concatenation of the reverse of two inputs
func DoubleSHARev ¶
TODO: test and add to tests reverse double SHA-256 hashing of a single byte array
func GenerateMerkleTree ¶
TODO: test and add to tests
func GenerateMerkleTreeFromString ¶
TODO: test and add to tests
func Hex2Base58Str ¶
func Hex2Base58String ¶
func Hex2String ¶
func Hex2Uint32 ¶
func Hex2Uint64 ¶
func HexRev2Big ¶
func HexRev2Str ¶
func HexRev2String ¶
func HexRev2Uint32 ¶
func HexRev2Uint64 ¶
func Randuint64 ¶
func Randuint64() []byte
func Randuint64Rev ¶
func Randuint64Rev() []byte
func SHARipemd ¶
TODO: test and add to tests SHA-256 RIPEMD-160 operation for bitcoin address hashing
func SHARipemdRev ¶
TODO: test and add to tests reverse SHA-256 RIPEMD-160 hash
func SingleSHA1 ¶
TODO: test and add to tests Single SHA-1 hashing of a single byte array
func SingleSHA1Rev ¶
Reversed SHA-1 hashing of a single byte array TODO: test and add to tests
func SingleSHARev ¶
TODO: test and add to tests Reversed single SHA-256 hashing of a single byte array
func Str2HexRev ¶
func String2Hex ¶
func String2Hex32 ¶
func String2HexRev ¶
func TestCompile ¶
func TestCompile() bool
func TestEverythingBitmath ¶
func TestEverythingBitmath() bool
func TestGenerateMerkleTree ¶
func TestGenerateMerkleTree() bool
func TestVarInt ¶
func TestVarInt() bool
func TestVarInt2Hex ¶
func TestVarInt2Hex() bool
func TestVarInt2HexRev ¶
func TestVarInt2HexRev() bool
func TestVarStr ¶
func TestVarStr() bool
func Uint162Hex ¶
func Uint162HexRev ¶
func Uint322Hex ¶
func Uint322HexRev ¶
func Uint642Hex ¶
func Uint642HexRev ¶
func VarInt2Hex ¶
variable-length hex result https://en.bitcoin.it/wiki/Protocol_specification#Variable_length_integer
func VarInt2HexRev ¶
variable-length hex result https://en.bitcoin.it/wiki/Protocol_specification#Variable_length_integer
Types ¶
type Base58 ¶
type Base58 string
type to hold the Base58 string
func StrHex2Base58 ¶
func String2Base58 ¶
func StringHex2Base58 ¶
encodes string stored hex bytes into base58