btcec

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 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 B

type B = []byte

type Ctx

type Ctx = context.T

type E

type E = error

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 N

type N = int

type S

type S = string

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