commitment

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commitment

type Commitment = *big.Int

type HashCommitment

type HashCommitment struct {
	C   Commitment
	Msg Witness
}

func NewCommitment

func NewCommitment(secrets ...*big.Int) *HashCommitment

NewCommitment commit []*big.int use sha512

func (*HashCommitment) Open

func (cmt *HashCommitment) Open() (bool, Witness)

Open open the commitment

func (*HashCommitment) Verify

func (cmt *HashCommitment) Verify() bool

Verify verify the commitment

type Witness

type Witness = []*big.Int

Jump to

Keyboard shortcuts

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