util

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidWordsLength is returned when trying to use word set with an invalid size.
	ErrInvalidWordsLength = errors.New("Invalid words length")

	// ErrEntropyLengthInvalid is returned when trying to use an entropy set with an invalid size.
	ErrEntropyLengthInvalid = errors.New("Entropy length must be [128, 256] and a multiple of 32")
)

Functions

func NewEntropyFromWords added in v0.0.7

func NewEntropyFromWords(words string, bitSize int) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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