secp256k1

package
v0.100.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 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