modproof

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Iterations         = 80
	ProofModBytesParts = Iterations*2 + 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProofMod

type ProofMod struct {
	W *big.Int
	X [Iterations]*big.Int
	A *big.Int
	B *big.Int
	Z [Iterations]*big.Int
}

func NewProof

func NewProof(Session []byte, N, P, Q *big.Int) (*ProofMod, error)

func NewProofFromBytes

func NewProofFromBytes(bzs [][]byte) (*ProofMod, error)

func (*ProofMod) Bytes

func (pf *ProofMod) Bytes() [ProofModBytesParts][]byte

func (*ProofMod) ValidateBasic

func (pf *ProofMod) ValidateBasic() bool

func (*ProofMod) Verify

func (pf *ProofMod) Verify(Session []byte, N *big.Int) bool

Jump to

Keyboard shortcuts

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