mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-02-09 05:19:24 -06:00
16 lines
559 B
Go
16 lines
559 B
Go
package challenge
|
|
|
|
import "time"
|
|
|
|
// Challenge is the metadata about a single challenge issuance.
|
|
type Challenge struct {
|
|
IssuedAt time.Time `json:"issuedAt"`
|
|
Metadata map[string]string `json:"metadata"`
|
|
ID string `json:"id"`
|
|
Method string `json:"method"`
|
|
RandomData string `json:"randomData"`
|
|
PolicyRuleHash string `json:"policyRuleHash,omitempty"`
|
|
Difficulty int `json:"difficulty,omitempty"`
|
|
Spent bool `json:"spent"`
|
|
}
|