dlnp

package
v0.0.0-...-f2ec0f2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Iterations = 128

Variables

This section is empty.

Functions

This section is empty.

Types

type Proof

type Proof struct {
	Alpha,
	T [Iterations]*big.Int
}

func NewProof

func NewProof(h1, h2, x, p, q, N *big.Int) *Proof

func UnmarshalProof

func UnmarshalProof(bzs [][]byte) (*Proof, error)

func (*Proof) Marshal

func (p *Proof) Marshal() ([][]byte, error)

func (*Proof) Verify

func (p *Proof) Verify(h1, h2, N *big.Int) bool

Jump to

Keyboard shortcuts

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