secp256k1

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: 7 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) Bytes

func (k *Key) Bytes() []byte

func (*Key) Pubkey

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

func (*Key) PubkeyHash

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

func (*Key) RecoverPubkey added in v0.2.3

func (key *Key) RecoverPubkey(message []byte, sig []byte) []byte

func (*Key) Sign

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

Jump to

Keyboard shortcuts

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