2020-10-28 17:35:56 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
type BeaconEntry struct {
|
2021-06-04 21:07:04 +00:00
|
|
|
Round uint64
|
|
|
|
Data []byte
|
|
|
|
Metadata map[string]interface{}
|
2020-10-28 17:35:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Randomness []byte
|
|
|
|
|
2021-06-04 21:07:04 +00:00
|
|
|
func NewBeaconEntry(round uint64, data []byte, metadata map[string]interface{}) BeaconEntry {
|
2020-10-28 17:35:56 +00:00
|
|
|
return BeaconEntry{
|
2021-06-04 21:07:04 +00:00
|
|
|
Round: round,
|
|
|
|
Data: data,
|
|
|
|
Metadata: metadata,
|
2020-10-28 17:35:56 +00:00
|
|
|
}
|
|
|
|
}
|