bn

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x *big.Int, y *big.Int) *big.Int

func CalculateHash

func CalculateHash(b1 *big.Int, b2 *big.Int) (*big.Int, error)

func Mod

func Mod(base *big.Int, modulo *big.Int) *big.Int

func ModInverse

func ModInverse(base *big.Int, modulo *big.Int) *big.Int

func ModPow

func ModPow(base *big.Int, exponent *big.Int, modulo *big.Int) *big.Int

*

  • Returns base**exponent mod |modulo| also works for negative exponent (contrary to big.Int.Exp)

func Multiply

func Multiply(factor1 *big.Int, factor2 *big.Int) *big.Int

func Sub

func Sub(x *big.Int, y *big.Int) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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