btcec

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Unlicense Imports: 7 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 by, err er)

func (*Keygen) KeyPairBytes

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

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 by) (secret by, err er)

func (*Signer) ECPub

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

func (*Signer) Generate

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

func (*Signer) InitPub

func (s *Signer) InitPub(pub by) (err er)

func (*Signer) InitSec

func (s *Signer) InitSec(sec by) (err er)

func (*Signer) Negate

func (s *Signer) Negate()

func (*Signer) Pub

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

func (*Signer) Sec

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

func (*Signer) Sign

func (s *Signer) Sign(msg by) (sig by, err er)

func (*Signer) Verify

func (s *Signer) Verify(msg, sig by) (valid bo, err er)

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