Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commitment ¶
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
Click to show internal directories.
Click to hide internal directories.