Documentation ¶
Index ¶
Constants ¶
View Source
const ( IVSize = aes.BlockSize KeySize = 16 // XXX: This shouldn't go here. )
Variables ¶
This section is empty.
Functions ¶
func Solve ¶
params, enc-chunks, goal -> secret, offset (offset is not necessary, but having it is useful for testing/debugging)
func VerifySolution ¶
Types ¶
type Parameters ¶
type Parameters struct { Rounds uint32 StartOffset uint32 // XXX: Not respected yet. StartRange uint32 }
func (*Parameters) Validate ¶
func (params *Parameters) Validate() error
type Puzzle ¶
type Puzzle struct { Secret []byte Goal []byte // Goal is the only value that's shared with the client. Offset uint32 Params Parameters }
Click to show internal directories.
Click to hide internal directories.