dlnproof

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 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 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