cfrag

package
v0.0.0-...-64543fc Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFrag

type CFrag struct {
	Id *curvebn.CurveBN
	E1 *point.Point
	V1 *point.Point
	XA *point.Point

	Pi *Proof
}

func NewCFrag

func NewCFrag() *CFrag

func (*CFrag) Marshal

func (c *CFrag) Marshal() []byte

func (*CFrag) Unmarshal

func (c *CFrag) Unmarshal(data []byte) error

func (*CFrag) Verify

func (c *CFrag) Verify(E, V *point.Point) bool

type Proof

type Proof struct {
	Z1     *curvebn.CurveBN
	Z2     *big.Int
	E2, V2 *point.Point
	U1, U2 *point.Point
	Rol    *big.Int
	Aux    []byte
}

Jump to

Keyboard shortcuts

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