btcec

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keygen

type Keygen struct {
	Signer
}

func (*Keygen) Generate

func (k *Keygen) Generate() (pubBytes B, err E)

func (*Keygen) KeyPairBytes

func (k *Keygen) KeyPairBytes() (secBytes, cmprPubBytes B)

func (*Keygen) Negate

func (k *Keygen) Negate()

type Signer

type Signer struct {
	SecretKey *secp256k1.SecretKey
	PublicKey *secp256k1.PublicKey
	// contains filtered or unexported fields
}

func (*Signer) ECDH

func (s *Signer) ECDH(pubkeyBytes B) (secret B, err E)

func (*Signer) ECPub

func (s *Signer) ECPub() (b B)

func (*Signer) Generate

func (s *Signer) Generate() (err E)

func (*Signer) InitPub

func (s *Signer) InitPub(pub B) (err error)

func (*Signer) InitSec

func (s *Signer) InitSec(sec B) (err error)

func (*Signer) Negate

func (s *Signer) Negate()

func (*Signer) Pub

func (s *Signer) Pub() (b B)

func (*Signer) Sec

func (s *Signer) Sec() (b B)

func (*Signer) Sign

func (s *Signer) Sign(msg B) (sig B, err error)

func (*Signer) Verify

func (s *Signer) Verify(msg, sig B) (valid bool, err error)

func (*Signer) Zero

func (s *Signer) Zero()

Jump to

Keyboard shortcuts

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