mnemonic

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: BlueOak-1.0.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeMnemonic

func DecodeMnemonic(mnemonic string) ([]byte, time.Time, error)

DecodeMnemonic decodes the entropy, time, and checksum from the mnemonic seed and validates the checksum.

func GenerateMnemonic

func GenerateMnemonic(entropy []byte, stamp time.Time) (string, error)

GenerateMnemonic generates a mnemonic seed from the entropy and time. Note that the time encoded in the mnemonic seed is truncated to midnight, so the time returned when decoding will not be the same as the time passed in here.

func New

func New() ([]byte, string)

New generates new random entropy and a mnemonic seed that encodes the entropy, the current time, and a 5-bit checksum.

Types

This section is empty.

Jump to

Keyboard shortcuts

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