ed25519

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSigningKeyPair

func GenerateSigningKeyPair() (publicKey ed25519.PublicKey, privateKey ed25519.PrivateKey, err error)

GenerateSigningKeyPair generates ed25519 key pair

func GetPrivateSigningKey

func GetPrivateSigningKey(fileName string) (privateKey ed25519.PrivateKey, err error)

GetPrivateSigningKey returns the private key from the file

func GetPublicSigningKey

func GetPublicSigningKey(fileName string) (publicKey ed25519.PublicKey, err error)

GetPublicSigningKey returns the public key from the file

func GetSigningKeyPair

func GetSigningKeyPair(pub, priv string) (publicKey ed25519.PublicKey, privateKey ed25519.PrivateKey, err error)

GetSigningKeyPair returns the public and private key pair

func PublicKeyToP2PKey

func PublicKeyToP2PKey(publicKey [32]byte) (p2pID peer.ID, err error)

PublicKeyToP2PKey returns p2pId from the public key

func VerifySignature

func VerifySignature(publicKey, message, sign []byte) bool

VerifySignature validates signature with payload message

Types

This section is empty.

Jump to

Keyboard shortcuts

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