Documentation
¶
Index ¶
Constants ¶
View Source
const PluginName = "WebAPI DRNG Endpoint"
PluginName is the name of the web API DRNG endpoint plugin.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectiveBeaconRequest ¶ added in v0.3.0
type CollectiveBeaconRequest struct {
Payload []byte `json:"payload"`
}
CollectiveBeaconRequest is a request containing a collective beacon response.
type CollectiveBeaconResponse ¶ added in v0.3.0
type CollectiveBeaconResponse struct {
ID string `json:"id,omitempty"`
Error string `json:"error,omitempty"`
}
CollectiveBeaconResponse is the HTTP response from broadcasting a collective beacon message.
type Committee ¶ added in v0.3.0
type Committee struct {
InstanceID uint32 `json:"instanceID,omitempty"`
Threshold uint8 `json:"threshold,omitempty"`
Identities []string `json:"identities,omitempty"`
DistributedPK string `json:"distributedPK,omitempty"`
}
Committee defines the information about a committee.
type CommitteeResponse ¶ added in v0.3.0
type CommitteeResponse struct {
Committees []Committee `json:"committees,omitempty"`
Error string `json:"error,omitempty"`
}
CommitteeResponse is the HTTP message containing the DRNG committee.
type Randomness ¶ added in v0.3.0
type Randomness struct {
InstanceID uint32 `json:"instanceID,omitempty"`
Round uint64 `json:"round,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
Randomness []byte `json:"randomness,omitempty"`
}
Randomness defines the content of new randomness.
type RandomnessResponse ¶ added in v0.3.0
type RandomnessResponse struct {
Randomness []Randomness `json:"randomness,omitempty"`
Error string `json:"error,omitempty"`
}
RandomnessResponse is the HTTP message containing the current DRNG randomness.
Click to show internal directories.
Click to hide internal directories.