crypto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMnemonic

func NewMnemonic(entropy []byte) string

Types

type ExtendedSigningKey

type ExtendedSigningKey []byte

ExtendedSigningKey is the extended private key (64 bytes) appended with the chain code (32 bytes)

func DeriveSigningKey

func DeriveSigningKey(xsk ExtendedSigningKey, index uint32) ExtendedSigningKey

func NewExtendedSigningKey

func NewExtendedSigningKey(entropy []byte, password string) ExtendedSigningKey

func (*ExtendedSigningKey) ExtendedVerificationKey

func (xsk *ExtendedSigningKey) ExtendedVerificationKey() ExtendedVerificationKey

func (*ExtendedSigningKey) Sign

func (xsk *ExtendedSigningKey) Sign(message []byte) []byte

type ExtendedVerificationKey

type ExtendedVerificationKey []byte

ExtendedVerificationKey is the public key (32 bytes) appended with the chain code (32 bytes)

func DeriveVerificationKey

func DeriveVerificationKey(xvk ExtendedVerificationKey, index uint32) (ExtendedVerificationKey, error)

func (*ExtendedVerificationKey) Verify

func (xvk *ExtendedVerificationKey) Verify(message, signature []byte) bool

Jump to

Keyboard shortcuts

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