Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func EncodeCuckooJSON ¶
func EncodeCuckooJSON(cuck CuckooJSON) ([]byte, error)
func VerifyJSON ¶
func VerifyJSON(cuck CuckooJSON) bool
Types ¶
type Cuckoo ¶
type Cuckoo struct {
// contains filtered or unexported fields
}
type CuckooJSON ¶
type CuckooJSON struct { Parameter map[string]uint64 `json:"parameters"` InputData []byte `json:"header"` //sha256 bytes Cycle []uint64 `json:"cycle"` }
func DecodeCuckooJSON ¶
func DecodeCuckooJSON(jsonBlob []byte) (*CuckooJSON, error)
Click to show internal directories.
Click to hide internal directories.