scalar

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScalarRandom

func NewScalarRandom() *ristretto.Scalar

NewScalarRandom generates a new ristretto.Scalar using the default randomness source from crypto/rand

func NewScalarUInt32

func NewScalarUInt32(x uint32) *ristretto.Scalar

NewScalarUInt32 generates a ristretto.Scalar with the value of x. It constructs a 32-byte big-endian representation of x.

func SetScalarRandom

func SetScalarRandom(s *ristretto.Scalar) *ristretto.Scalar

SetScalarRandom sets s to a random ristretto.Scalar using the default randomness source from crypto/rand

func SetScalarUInt32

func SetScalarUInt32(s *ristretto.Scalar, x uint32) *ristretto.Scalar

SetScalarUInt32 set s's value to that of a uint32 x. It creates a 32 byte big-endian representation of x, which is set by s.SetCanonicalBytes .

Types

This section is empty.

Jump to

Keyboard shortcuts

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