Documentation
¶
Index ¶
Constants ¶
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
func HammingDistance ¶ added in v1.0.9
HammingDistance calculates the hamming distance between two byte slices
Types ¶
type Header ¶
type Header struct {
Version uint32
NumKeys uint32
LibVersion [32]byte // Fixed-size array for a 32-character string
}
func (*Header) MarshalBinary ¶
func (*Header) UnmarshalBinary ¶
type PlotCollection ¶
type Shake256SignerOpts ¶ added in v1.0.10
type Shake256SignerOpts struct {
// The desired output length in bytes.
// For 256-bit security, use at least 64 bytes (512 bits) of output.
OutputLen int
}
Shake256SignerOpts implements crypto.SignerOpts for SHAKE256.
func (Shake256SignerOpts) HashFunc ¶ added in v1.0.10
func (o Shake256SignerOpts) HashFunc() crypto.Hash
HashFunc returns 0 because SHAKE256 is an XOF, not a fixed hash. A value of 0 signals to the signer that the hash will be provided as a digest with a flexible length, as is the case for SHAKE.
type Solution ¶ added in v1.0.9
type Solution struct {
Hash string `json:"hash"`
Distance int `json:"distance"`
PublicKey string `json:"public_key"`
Signature string `json:"signature"`
}
func NewSolution ¶ added in v1.0.9
Click to show internal directories.
Click to hide internal directories.