keypairs

package
v0.0.0-...-9abe75c Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERIFICATIONMESSAGE = "This test message should verify."
)

Variables

This section is empty.

Functions

func DeriveClassicAddress

func DeriveClassicAddress(pubkey string) (string, error)

func DeriveKeypair

func DeriveKeypair(seed string, validator bool) (private, public string, err error)

Derives a keypair from a given seed. Returns a tuple of private key and public key

func GenerateSeed

func GenerateSeed(entropy string, alg addresscodec.CryptoAlgorithm) (string, error)

func Sign

func Sign(msg, privKey string) (string, error)

func Validate

func Validate(msg, pubKey, sig string) (bool, error)

Types

type CryptoImplementation

type CryptoImplementation interface {
	// contains filtered or unexported methods
}

type CryptoImplementationError

type CryptoImplementationError struct{}

func (*CryptoImplementationError) Error

func (e *CryptoImplementationError) Error() string

type InvalidSignatureError

type InvalidSignatureError struct{}

func (*InvalidSignatureError) Error

func (e *InvalidSignatureError) Error() string

Jump to

Keyboard shortcuts

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