csp

package
v4.8.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XPrvKeyer

type XPrvKeyer interface {
	// XPub derives an extended public key from a given xprv.
	XPub() XPubKeyer
	// Derive generates a child xprv by recursively deriving
	// non-hardened child xprvs over the list of selectors:
	// `Derive([a,b,c,...]) == Child(a).Child(b).Child(c)...`
	Derive(path [][]byte) XPrvKeyer
	// Sign creates an EdDSA signature using expanded private key
	// derived from the xprv.
	Sign(msg []byte) []byte
}

type XPubKeyer

type XPubKeyer interface {
	// PublicKey extracts the public key from an xpub.
	PublicKey() crypto.PublicKey
	// Derive generates a child xpub by recursively deriving
	// non-hardened child xpubs over the list of selectors:
	// `Derive([a,b,c,...]) == Child(a).Child(b).Child(c)...`
	Derive(path [][]byte) XPubKeyer
	// Verify checks an EdDSA signature using public key
	Verify(msg []byte, sig []byte) bool
}

Jump to

Keyboard shortcuts

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