libsodium

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptoVrfProofToHash

func CryptoVrfProofToHash(proof []byte) ([]byte, error)

func CryptoVrfProve

func CryptoVrfProve(sk, seed []byte) ([]byte, error)

func CryptoVrfPublicKeyFromSecretKey added in v0.1.16

func CryptoVrfPublicKeyFromSecretKey(sk []byte) ([]byte, error)

func CryptoVrfVerify

func CryptoVrfVerify(pk, proof, seed []byte) ([]byte, error)

func GetVrfCert

func GetVrfCert(seed, vrfSkey []byte) *big.Int

func GetVrfLeaderValue

func GetVrfLeaderValue(slot int, eta0, cborHex string) *big.Int

func GetVrfMaxValue

func GetVrfMaxValue() *big.Int

func Initialize_libsodium

func Initialize_libsodium() int

func MkSeed

func MkSeed(slot int, eta0 string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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