util

package
v0.1.1-0...-84673a0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHexString

func IsHexString(s string) bool

IsHexString return s is a hex string or not.

func IsPublicKey

func IsPublicKey(key string) bool

IsPublicKey returns key is a valid public key generated from ECDSA Secp256k1.

func IsSignature

func IsSignature(s []byte) bool

IsSignature returns s is a valid signature or not.

func IsUUID

func IsUUID(id string) bool

IsUUID returns id is an UUID string or not.

func NewUUID

func NewUUID() string

NewUUID returns a random uuid string (uuid v4).

func RIPEMD160

func RIPEMD160(data []byte) string

RIPEMD160 ...

func RIPEMD160Raw

func RIPEMD160Raw(data []byte) []byte

RIPEMD160Raw ...

func SHA256

func SHA256(data []byte) string

SHA256 returns a SHA-256 hex string.

func SHA256Raw

func SHA256Raw(data []byte) []byte

SHA256Raw ...

func SHA512

func SHA512(data []byte) string

SHA512 returns a SHA-512 hex string.

func SHA512Raw

func SHA512Raw(data []byte) []byte

SHA512Raw ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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