secp256r1

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	PrivateKey *ecdsa.PrivateKey
}

func GenerateKey

func GenerateKey() (*Key, error)

func ImportKey

func ImportKey(privKey string) *Key

func (*Key) Pubkey

func (key *Key) Pubkey() (*ecdsa.PublicKey, []byte)

func (*Key) PubkeyHash

func (key *Key) PubkeyHash() []byte

func (*Key) Sign

func (key *Key) Sign(message []byte) []byte

func (*Key) VerifySignature

func (key *Key) VerifySignature(message []byte) bool

Jump to

Keyboard shortcuts

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