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

feat(primitives): Introduce MintedBlock concept #116

Merged
merged 1 commit into from
Jun 12, 2022
Merged

Conversation

scarmuega
Copy link
Member

We introduce a new set of structures that allows us to differentiate between blocks constructed directly from primitives and blocks that represent existing blocks of the chain. The later have the characteristic of being linked (by a lifetime parameter) to the original CBOR bytes, allowing us to compute hashes of the sub-structures that match the ones found on-chain.

@scarmuega scarmuega marked this pull request as ready for review June 12, 2022 13:43
@scarmuega scarmuega merged commit fe80ff7 into main Jun 12, 2022
@scarmuega scarmuega deleted the feat/minted-blocks branch June 12, 2022 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant