secp256k1

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 13 Imported by: 5

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) Script

func (k *Secp256k1Key) Script(systemScripts *utils.SystemScripts) (*types.Script, error)

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