serial

package
v0.0.0-...-42a6357 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase58

func DecodeBase58(b string) []byte

DecodeBase58 decodes a modified base58 string to a byte slice.

func DoubleSha256

func DoubleSha256(buf []byte) []byte

DoubleSha256 applies Sha256 twice

func EncodeBase58

func EncodeBase58(b []byte) string

EncodeBase58 encodes a byte slice to a modified base58 string.

func Hash160

func Hash160(buf []byte) []byte

Hash160 calculates the hash ripemd160(sha256(b)).

func Hash160ToAddress

func Hash160ToAddress(hash160 []byte, prefix []byte) string

Hash160ToAddress p2pkh

func HexToBinary

func HexToBinary(src []byte) ([]byte, error)

HexToBinary transforms human readable address into binary address

func ReverseHex

func ReverseHex(b []byte) []byte

ReverseHex reverses the order of bytes input TODO: Maybe can optimize

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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