util

package
v1.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: LGPL-3.0, BSD-3-Clause Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToFloat32

func ByteToFloat32(bytes []byte) float32

func ByteToFloat64

func ByteToFloat64(bytes []byte) float64

func Float32ToBytes

func Float32ToBytes(float float32) []byte

func Float64ToBytes

func Float64ToBytes(float float64) []byte

func Int32ToBytes

func Int32ToBytes(i32 uint32) []byte

func Int64ToBytes

func Int64ToBytes(i64 uint64) []byte

func TrimBuffToString

func TrimBuffToString(bytes []byte) string

trim the '\00' byte

Types

type ECDsaCrypto

type ECDsaCrypto struct {
}

func (*ECDsaCrypto) Hash160

func (c *ECDsaCrypto) Hash160(message []byte) []byte

func (*ECDsaCrypto) Hash256

func (c *ECDsaCrypto) Hash256(message []byte) []byte

func (*ECDsaCrypto) VerifySignature

func (c *ECDsaCrypto) VerifySignature(message []byte, signature []byte, pubkey []byte) (bool, error)

Jump to

Keyboard shortcuts

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