misc

package
v0.0.0-...-7bd4979 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bin2HStr

func Bin2HStr(data []byte) string

func Bin2Pks

func Bin2Pks(binPks [][]byte) []string

func Bin2QAddresses

func Bin2QAddresses(binAddresses [][]byte) []string

func Bin2Qaddress

func Bin2Qaddress(binAddress []byte) string

func BytesToString

func BytesToString(data []byte) string

func BytesToUCharVector

func BytesToUCharVector(data []byte) goqrllib.UcharVector

func ConvertBytesToLong

func ConvertBytesToLong(b []byte) uint32

func HStr2Bin

func HStr2Bin(data string) []byte

func Int64ToUCharVector

func Int64ToUCharVector(data int64) goqrllib.UcharVector

func MerkleTXHash

func MerkleTXHash(hashes list.List) []byte

func OTSKeyFromSig

func OTSKeyFromSig(signature []byte) uint64

func PK2BinAddress

func PK2BinAddress(pk []byte) []byte

func PK2Qaddress

func PK2Qaddress(pk []byte) string

func Qaddress2Bin

func Qaddress2Bin(qaddress string) []byte

func Reverse

func Reverse(s [][]byte) [][]byte

func Sha256

func Sha256(message string, length int64) []byte

func ShorToQuanta

func ShorToQuanta(data uint64) string

func ShorsToQuantas

func ShorsToQuantas(data []uint64) []string

func StringAddressToBytesArray

func StringAddressToBytesArray(addrs []string) [][]byte

func UCharVectorToBytes

func UCharVectorToBytes(data goqrllib.UcharVector) []byte

func UCharVectorToString

func UCharVectorToString(data goqrllib.UcharVector) string

func UInt64ToString

func UInt64ToString(data []uint64) []string

Types

type UcharVector

type UcharVector struct {
	// contains filtered or unexported fields
}

func NewUCharVector

func NewUCharVector() *UcharVector

func (*UcharVector) AddAt

func (v *UcharVector) AddAt() goqrllib.UcharVector

func (*UcharVector) AddByte

func (v *UcharVector) AddByte(data byte)

func (*UcharVector) AddBytes

func (v *UcharVector) AddBytes(data []byte)

func (*UcharVector) GetBytes

func (v *UcharVector) GetBytes() []byte

func (*UcharVector) GetBytesBuffer

func (v *UcharVector) GetBytesBuffer() bytes.Buffer

func (*UcharVector) GetData

func (v *UcharVector) GetData() goqrllib.UcharVector

func (*UcharVector) GetString

func (v *UcharVector) GetString() string

func (*UcharVector) New

func (v *UcharVector) New(data goqrllib.UcharVector)

Jump to

Keyboard shortcuts

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