ed_ristretto

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

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

Go to latest
Published: Apr 18, 2023 License: GPL-2.0, GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesReduceToScalar

func BytesReduceToScalar(in []byte) (*r255.Scalar, error)

func Combine

func Combine(shares [][32]byte, ids [][32]byte) [32]byte

Combine Calculate the function value of Lagrange polynomial

func NewRandomScalar

func NewRandomScalar() (*r255.Scalar, error)

func NewRandomScalarBytes

func NewRandomScalarBytes() ([32]byte, error)

func Prove2

func Prove2(sk [32]byte, pk [32]byte) ([64]byte, error)

func ScAdd

func ScAdd(out, a, b *[32]byte)

func ScModInverse

func ScModInverse(a [32]byte) [32]byte

func ScMul

func ScMul(out, a, b *[32]byte)

func ScMulAdd

func ScMulAdd(out, a, b, c *[32]byte)

out = a * b + c

func ScReduce

func ScReduce(out *[32]byte, in *[64]byte)

func ScSub

func ScSub(out, a, b *[32]byte)

func ScalarOne

func ScalarOne() *r255.Scalar

func VerifyVss

func VerifyVss(share [32]byte, id [32]byte, cfsBBytes [][32]byte) bool

VerifyVss verify secret sharing value

func VerifyZk2

func VerifyZk2(signature [64]byte, pk [32]byte) bool

func Vss

func Vss(secret [32]byte, ids [][32]byte, t int, n int) ([][32]byte, [][32]byte, [][32]byte, error)

Vss Calculate secret sharing value

Types

This section is empty.

Jump to

Keyboard shortcuts

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