Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add header fields #16

Merged
merged 2 commits into from
Jul 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions internal/block/header.go
bamzedev marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
package block

import (
"github.com/eigerco/strawberry/internal/crypto"
"github.com/eigerco/strawberry/internal/time"
)

// Header as defined in the section 5 in the paper
type Header struct {
ParentHash crypto.Hash // Hp
PriorStateRoot crypto.Hash // Hr
ExtrinsicHash crypto.Hash // Hx
TimeSlotIndex time.Timeslot // Ht
EpochMarker []crypto.Hash // He
bamzedev marked this conversation as resolved.
Show resolved Hide resolved
WinningTicketsMarker [time.TimeslotsPerEpoch]*Ticket // Hw
JudgementsMarkers []crypto.Hash // Hj
BlockAuthorKey []byte // Hk
VRFSignature []byte // Hv
bamzedev marked this conversation as resolved.
Show resolved Hide resolved
BlockSealSignature []byte // Hs
bamzedev marked this conversation as resolved.
Show resolved Hide resolved
}
Loading