hint

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsZero

func IsZero(curveID ecc.ID, inputs []*big.Int, result *big.Int) error

IsZero expects len(inputs) == 1 inputs[0] == a returns m = 1 - a^(modulus-1)

func IthBit

func IthBit(_ ecc.ID, inputs []*big.Int, result *big.Int) error

IthBit expects len(inputs) == 2 inputs[0] == a inputs[1] == n returns bit number n of a

Types

type Function

type Function func(curveID ecc.ID, inputs []*big.Int, result *big.Int) error

type ID

type ID uint32

func UUID

func UUID(f Function) ID

UUID returns a unique ID for a hint function name

Jump to

Keyboard shortcuts

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