keyset

package
v0.0.0-...-4d07d55 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifySig

func VerifySig(data, signature, pbkey []byte) (bool, error)

Types

type KeySet

type KeySet struct {
	PrivateKey []byte
	PublicKey  []byte
}

func (*KeySet) GenerateKey

func (key *KeySet) GenerateKey(seed []byte) (*KeySet, error)

func (*KeySet) ImportByBytes

func (key *KeySet) ImportByBytes(privateKey []byte) (*KeySet, error)

func (*KeySet) ImportByString

func (key *KeySet) ImportByString(privateKey string) (*KeySet, error)

func (*KeySet) Sign

func (key *KeySet) Sign(dataHash []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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