dlnproof

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: 4 Imported by: 1

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 NewDLNProof

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

func UnmarshalDLNProof

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

func (*Proof) Serialize

func (p *Proof) Serialize() ([][]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