ed25519

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const PrivateKeySize = ed25519.PrivateKeySize
View Source
const PublicKeySize = ed25519.PublicKeySize
View Source
const SeedSize = ed25519.SeedSize
View Source
const SignatureSize = ed25519.SignatureSize

Variables

This section is empty.

Functions

func GenKeyPair

func GenKeyPair() ([]byte, []byte, error)

func GenerateVrf

func GenerateVrf(privateKey, data []byte, randSrc bool) ([]byte, []byte, error)

func GetPrivateKeyFromSeed

func GetPrivateKeyFromSeed(seed []byte) []byte

func GetPublicKeyFromPrivateKey

func GetPublicKeyFromPrivateKey(privateKey []byte) []byte

func GetSeedFromPrivateKey

func GetSeedFromPrivateKey(priKey []byte) []byte

func PrivateKeyToCurve25519PrivateKey

func PrivateKeyToCurve25519PrivateKey(privateKey *[64]byte) *[32]byte

func PublicKeyToCurve25519PublicKey

func PublicKeyToCurve25519PublicKey(publicKey *[32]byte) (*[32]byte, bool)

func Sign

func Sign(privateKey, data []byte) ([]byte, error)

func Verify

func Verify(publicKey, data, signature []byte) error

func VerifyVrf

func VerifyVrf(publicKey, data, dataVrf, proof []byte) bool

Types

This section is empty.

Directories

Path Synopsis
Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519.
Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519.
Package ed25519 implements a verifiable random function using the Edwards form of Curve25519, SHA512 and the Elligator map.
Package ed25519 implements a verifiable random function using the Edwards form of Curve25519, SHA512 and the Elligator map.

Jump to

Keyboard shortcuts

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