facproof

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ProofFacBytesParts = 11
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProofFac

type ProofFac struct {
	P, Q, A, B, T, Sigma, Z1, Z2, W1, W2, V *big.Int
}

func NewProof

func NewProof(ec elliptic.Curve, N0, NCap, s, t, N0p, N0q *big.Int) (*ProofFac, error)

NewProof implements proofFac

func NewProofFromBytes

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

func (*ProofFac) Bytes

func (pf *ProofFac) Bytes() [ProofFacBytesParts][]byte

func (*ProofFac) ValidateBasic

func (pf *ProofFac) ValidateBasic() bool

func (*ProofFac) Verify

func (pf *ProofFac) Verify(ec elliptic.Curve, N0, NCap, s, t *big.Int) bool

Jump to

Keyboard shortcuts

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