Documentation ¶
Index ¶
Constants ¶
View Source
const MinPreimageSize = 10000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
func (*Helper) UploadLargePreimage ¶
func (h *Helper) UploadLargePreimage(ctx context.Context, dataSize int, modifiers ...InputModifier) types.LargePreimageIdent
UploadLargePreimage inits the preimage upload and uploads the leaves, starting the challenge period. Squeeze is not called by this method as the challenge period has not yet elapsed.
func (*Helper) WaitForChallenged ¶
func (h *Helper) WaitForChallenged(ctx context.Context, ident types.LargePreimageIdent)
type InputModifier ¶
func WithLastCommitment ¶
func WithLastCommitment(value common.Hash) InputModifier
func WithReplacedCommitment ¶
func WithReplacedCommitment(idx uint64, value common.Hash) InputModifier
Click to show internal directories.
Click to hide internal directories.