slip10

package
v0.2201.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Overview

Package slip10 implements the SLIP-0010 private key derivation scheme for Ed25519.

Index

Constants

View Source
const (
	// SeedMinSize is the minimum seed byte sequence size in bytes.
	SeedMinSize = 16

	// SeedMaxSize is the maximum seed byte sequence size in bytes.
	SeedMaxSize = 64

	// ChainCodeSize is the size of a SLIP-0010 chain code in bytes.
	ChainCodeSize = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainCode

type ChainCode [ChainCodeSize]byte

ChainCode is a SLIP-0010 chain code.

func NewChildKey

func NewChildKey(parentSigner signature.Signer, cPar ChainCode, index uint32) (signature.Signer, ChainCode, error)

NewChildKey derives a child key and chain code from a (parent key, parent chain code, index) tuple.

func NewMasterKey

func NewMasterKey(seed []byte) (signature.Signer, ChainCode, error)

NewMasterKey derives a master key and chain code from a seed byte sequence.

Jump to

Keyboard shortcuts

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