crypto

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDecodeLength = errors.New("base58 decode length error")
	ErrDecodeCheck  = errors.New("base58 check failed")
	ErrEncodeLength = errors.New("base58 encode length error")
)

Functions

func Decode58Check

func Decode58Check(input *string) (*string, error)

Decode58Check converts *base58-string to hex and check.

func Encode58Check

func Encode58Check(input *string) (*string, error)

Encode58Check converts *hex-string to base58 and check.

func Encode58CheckLen

func Encode58CheckLen(input *string, length int) (*string, error)

Encode58CheckLen is Encode58Check + length requirement for non-nil string

func Hash

func Hash(s []byte) []byte

Hash implements crypto sha256 hash algorithm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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