mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-08 01:28:44 +00:00
Compare commits
1 Commits
json/add-c
...
json/add-b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
978af9d5ff |
@@ -4,12 +4,12 @@ import "time"
|
|||||||
|
|
||||||
// Challenge is the metadata about a single challenge issuance.
|
// Challenge is the metadata about a single challenge issuance.
|
||||||
type Challenge struct {
|
type Challenge struct {
|
||||||
IssuedAt time.Time `json:"issuedAt"`
|
IssuedAt time.Time `json:"issuedAt"` // When the challenge was issued
|
||||||
Metadata map[string]string `json:"metadata"`
|
Metadata map[string]string `json:"metadata"` // Challenge metadata such as IP address and user agent
|
||||||
ID string `json:"id"`
|
ID string `json:"id"` // UUID identifying the challenge
|
||||||
Method string `json:"method"`
|
Method string `json:"method"` // Challenge method
|
||||||
RandomData string `json:"randomData"`
|
RandomData string `json:"randomData"` // The random data the client processes
|
||||||
PolicyRuleHash string `json:"policyRuleHash,omitempty"`
|
PolicyRuleHash string `json:"policyRuleHash,omitempty"` // Hash of the policy rule that issued this challenge
|
||||||
Difficulty int `json:"difficulty,omitempty"`
|
Difficulty int `json:"difficulty,omitempty"` // Difficulty that was in effect when issued
|
||||||
Spent bool `json:"spent"`
|
Spent bool `json:"spent"` // Has the challenge already been solved?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user