Documentation ¶
Index ¶
Constants ¶
View Source
const Alphabet = "ABCDEFHJKLMNPQRSTUVWXYZ2345789"
Alphabet contains all upper-case characters except for numbers/letters that look alike.
View Source
const AlphabetLegacy = "ABCDEFHJKMNPQRSTUVWXYZ2345789"
AlphabetLegacy constains the letters that pre version 2 recovery codes can contain.
View Source
const CurrentVersion = 2
CurrentVersion defines the current version number for the recovery codes.
Variables ¶
This section is empty.
Functions ¶
func ConvertToKey ¶
func ConvertToKey(code, salt string) (*btcec.PrivateKey, error)
ConvertToKey generates a private key using the recovery code as a seed.
The salt parameter is only used for version 1 codes. It will be ignored for version 2+ codes.
func Generate ¶
func Generate() string
Generate creates a new random recovery code using a cryptographically secure random number generator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.