MarginSeconds
int64Value
30
SigHexLen
untyped bigintValue
(128 <untyped> bigint)
maxList
untyped bigintValue
(100 <untyped> bigint)
beacons
v0.Tree// 8-byte big-endian round -> 64 hex chars (sha256 of the signature)
- OID
- 02b6ab…c6f7:4
beacons details
latest
int64// highest round verified here (0: none)
Value
0
provider
typeValue
drand.provider
target
func(now int64) int64target is the first round published strictly after now+MarginSeconds. It returns 0 (core: "cannot bind now, retry later") when that round is not newer than a round already verified here: the block time is then behind wall clock by more than the margin (e.g. the first block after a halt) and the round may already be public.
- OID
- 02b6ab…c6f7:6
target details
TargetAt
func(unix int64) int64TargetAt is the round a bind at block time unix would get, without the staleness check. For keepers and UIs.
- OID
- 02b6ab…c6f7:8
TargetAt details
TimeOf
func(round int64) int64TimeOf is the unix time at which evmnet publishes round.
- OID
- 02b6ab…c6f7:9
TimeOf details
Submit
func(round int64, signature string) stringSubmit verifies round's drand evmnet signature (hex, the "signature" field of [https://api.drand.sh/](https://api.drand.sh/)\<ChainHash>/public/\<round>) and stores its randomness. Permissionless; the caller is never trusted. A round already stored is a no-op (returns the stored value), so concurrent submitters never fail each other. Returns the randomness (64 hex characters).
- OID
- 02b6ab…c6f7:10
Submit details
Register
func() stringRegister registers this provider with Sinopia core (once; anyone may send it). It stays inert until the admin approves it (timelocked randomness.add).
- OID
- 02b6ab…c6f7:11
Register details
Has
func(round int64) boolHas reports whether round's randomness is stored here.
- OID
- 02b6ab…c6f7:12
Has details
Latest
func() int64Latest is the highest round verified here (0 if none).
- OID
- 02b6ab…c6f7:13
Latest details
Info
func() stringInfo returns the provider's parameters and state as JSON.
- OID
- 02b6ab…c6f7:14
Info details
Rounds
func(offset int64, limit int64) stringRounds lists stored rounds, newest first, as "round:randomness" lines.
- OID
- 02b6ab…c6f7:15
Rounds details
Render
func(path string) stringRender shows the provider on gnoweb.
- OID
- 02b6ab…c6f7:16
Render details
key
func(round int64) stringkey encodes round as 8 big-endian bytes so avl order is numeric order.
- OID
- 02b6ab…c6f7:17
key details
keyRound
func(k string) int64- OID
- 02b6ab…c6f7:18
keyRound details
itoa
func(n int64) string- OID
- 02b6ab…c6f7:19