codex32

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

package codex32 is an implementation of the codex32 scheme. BIP-93 describes the scheme in detail.

Index

Constants

View Source
const Alphabet = "QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L"

Alphabet is the bech32 alphabet.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String struct {
	// contains filtered or unexported fields
}

String is a codex32 string, containing a valid checksum.

func Interpolate

func Interpolate(shares []String, index rune) (String, error)

Interpolate a set of shares to derive a share at a specific index.

Using the index 'S' will recover the master seed.

func New

func New(s string) (String, error)

New constructs a codex32 string from a string.

func NewSeed

func NewSeed(hrp string, threshold int, id string, shareIdx rune, data []byte) (String, error)

NewSeed creates a share from secret data. The share index 'S' denotes an unshared secret.

func (String) Seed

func (s String) Seed() []byte

Seed extracts the seed.

func (String) Split

func (s String) Split() (id string, threshold int, idx rune)

func (String) String added in v1.3.4

func (s String) String() string

Jump to

Keyboard shortcuts

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