secp256k1

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secp256k1Key

type Secp256k1Key struct {
	PrivateKey *ecdsa.PrivateKey
}

func HexToKey

func HexToKey(hexKey string) (*Secp256k1Key, error)

func RandomNew

func RandomNew() (*Secp256k1Key, error)

func ToKey

func ToKey(d []byte) (*Secp256k1Key, error)

func (*Secp256k1Key) Bytes

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

func (*Secp256k1Key) PubKey

func (k *Secp256k1Key) PubKey() []byte

func (*Secp256k1Key) PubKeyUncompressed

func (k *Secp256k1Key) PubKeyUncompressed() []byte

func (*Secp256k1Key) Sign

func (k *Secp256k1Key) Sign(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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