signlib

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: AGPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const (
	PubkeySize     = 64
	AuthSigMsgSize = 132
)

Variables

View Source
var (
	ErrPubkeyLength = errors.New("pubkey length error")
)

Functions

This section is empty.

Types

type PrivKey

type PrivKey interface {
	Bytes() []byte
	Sign(msg []byte) []byte
	XPub() chainkd.XPub
}

func NewPrivKey

func NewPrivKey() (PrivKey, error)

type PubKey

type PubKey interface {
	String() string
	Bytes() []byte
	Verify(msg []byte, sig []byte) bool
	MarshalText() ([]byte, error)
}

func NewPubKey

func NewPubKey(pubkey []byte) (PubKey, error)

Jump to

Keyboard shortcuts

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