Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Challenge ¶
type Challenge struct { // It identifys the demand to be sure the request is not reused ID uint64 // A random slice wich must be find by the requester ChallengeTarget []byte // To have the difficulty in the request to be able // to manage different difficultyes (it's in bits) Difficulty uint16 // Expire define the time after what the challenge is set as unvalid (and removed from RAM tree) Expire time.Time Err error `json:"-"` }
Challenge represent the server challenge
func BuildNewRequestChalange ¶
BuildNewRequestChalange build a challenge object and save it in memory unsing a btree list
Click to show internal directories.
Click to hide internal directories.