backup

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Unlicense Imports: 15 Imported by: 0

Documentation

Overview

package backup implements the SeedHammer backup scheme.

Index

Constants

View Source
const MaxTitleLen = 18

Variables

View Source
var ErrDescriptorTooLarge = errors.New("output descriptor is too large to backup")

Functions

func EngraveDescriptor added in v1.2.0

func EngraveDescriptor(scale, strokeWidth float32, plate Descriptor) (engrave.Command, error)

func EngraveSeed added in v1.2.0

func EngraveSeed(scale, strokeWidth float32, plate Seed) (engrave.Command, error)

func Recoverable

func Recoverable(desc urtypes.OutputDescriptor) bool

func TitleString added in v1.2.0

func TitleString(face *vector.Face, s string) string

Types

type Descriptor added in v1.2.0

type Descriptor struct {
	Descriptor urtypes.OutputDescriptor
	KeyIdx     int
	Font       *vector.Face
	Size       PlateSize
}

type PlateSize

type PlateSize int
const (
	SmallPlate PlateSize = iota
	SquarePlate
	LargePlate
)

func (PlateSize) Bounds

func (p PlateSize) Bounds() image.Rectangle

type Seed added in v1.2.0

type Seed struct {
	Title             string
	KeyIdx            int
	Mnemonic          bip39.Mnemonic
	Keys              int
	MasterFingerprint uint32
	Font              *vector.Face
	Size              PlateSize
}

Jump to

Keyboard shortcuts

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