signing

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(pubkey *PublicKey, message []byte, sign []byte) bool

Types

type EdSigner

type EdSigner struct {
	// contains filtered or unexported fields
}

func NewEdSigner

func NewEdSigner() *EdSigner

func NewEdSignerFromBuffer

func NewEdSignerFromBuffer(buff []byte) (*EdSigner, error)

func (*EdSigner) PublicKey

func (es *EdSigner) PublicKey() *PublicKey

func (*EdSigner) Sign

func (es *EdSigner) Sign(m []byte) []byte

func (*EdSigner) ToBuffer

func (es *EdSigner) ToBuffer() []byte

type PublicKey

type PublicKey struct {
	// contains filtered or unexported fields
}

func NewPublicKey

func NewPublicKey(pub []byte) *PublicKey

func (*PublicKey) Bytes

func (p *PublicKey) Bytes() []byte

func (*PublicKey) Equals

func (p *PublicKey) Equals(o *PublicKey) bool

func (*PublicKey) ShortString

func (p *PublicKey) ShortString() string

func (*PublicKey) String

func (p *PublicKey) String() string

Jump to

Keyboard shortcuts

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