Documentation ¶
Index ¶
Constants ¶
View Source
const ( PartsCap = 3 MaxPartSize = int64(1 * 1024 * 1024) // 1 MB - rather liberal )
View Source
const (
HashLength = 256
)
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder() *builder
Types ¶
type HashCommitDecommit ¶
type HashCommitDecommit struct { C HashCommitment D HashDeCommitment }
func NewHashCommitment ¶
func NewHashCommitment(secrets ...*big.Int) *HashCommitDecommit
func NewHashCommitmentWithRandomness ¶
func NewHashCommitmentWithRandomness(r *big.Int, secrets ...*big.Int) *HashCommitDecommit
func (*HashCommitDecommit) DeCommit ¶
func (cmt *HashCommitDecommit) DeCommit() (bool, HashDeCommitment)
func (*HashCommitDecommit) Verify ¶
func (cmt *HashCommitDecommit) Verify() bool
type HashCommitment ¶
type HashDeCommitment ¶
func NewHashDeCommitmentFromBytes ¶
func NewHashDeCommitmentFromBytes(marshalled [][]byte) HashDeCommitment
Click to show internal directories.
Click to hide internal directories.