pdu

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceName = "PDU"

	MultipleSignatures  = "MS"
	Signature2PublicKey = "S2PK"
)

Variables

This section is empty.

Functions

func GenKey

func GenKey(params ...interface{}) (*crypto.PrivateKey, *crypto.PublicKey, error)

func MarshalJSON

func MarshalJSON(a crypto.PublicKey) ([]byte, error)

func Sign

func Sign(hash []byte, priKey crypto.PrivateKey) (*crypto.Signature, error)

func UnmarshalJSON

func UnmarshalJSON(input []byte) (*crypto.PublicKey, error)

func Verify

func Verify(hash []byte, sig crypto.Signature) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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