utils

package
v0.0.0-...-15cf0d5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputePowers

func ComputePowers(x fr.Element, n uint) []fr.Element

ComputePowers computes x^0 to x^n-1.

More precisely, given x and n, returns a slice containing [x^0, ..., x^n-1] In particular, for n==0, an empty slice is returned

func IsPowerOfTwo

func IsPowerOfTwo(value uint64) bool

IsPowerOfTwo returns true if `value` is a power of two.

`0` will return false

func ReduceCanonicalBigEndian

func ReduceCanonicalBigEndian(serScalar []byte) (fr.Element, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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