easyeddsa

package
v0.0.0-...-0e973bc Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PubKStringToObj

func PubKStringToObj(pubKStr string, buffPool *bytesbuff.EasyBytes) (ed25519.PublicKey, error)

PubKStringToObj for converting publickey string to object

Types

type EasyEDDSA

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

EasyEDDSA for

func GetEasyEDDSA

func GetEasyEDDSA(buffPool *bytesbuff.EasyBytes) (data *EasyEDDSA, err error)

GetEasyEDDSA for creating EDDSA object

func StringToKeyObject

func StringToKeyObject(pubKStr, privKStr string, buffPool *bytesbuff.EasyBytes) (*EasyEDDSA, error)

StringToKeyObject for converting public and private key string to EasyEDDSA

func (*EasyEDDSA) KeyTostring

func (x *EasyEDDSA) KeyTostring() (string, string, error)

KeyTostring for converting public and private key to string

func (*EasyEDDSA) Sign

func (x *EasyEDDSA) Sign(data []byte) []byte

Sign for signing data

func (*EasyEDDSA) Verify

func (x *EasyEDDSA) Verify(data, sig []byte) (bool, error)

Verify for verifying data

Jump to

Keyboard shortcuts

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