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(sentinel-lib): Add support to generic event signing #1

Merged
merged 26 commits into from
May 17, 2024

Conversation

ubordignon
Copy link

No description provided.

gskapka and others added 25 commits May 1, 2024 12:18
NOTE: This is my final commit to pNetwork - it's been
a pleasure working with you all over the years! <3
fn encode(&self) -> Bytes {
// FIXME sha256(protocol, protocol_chain_id, blockhash, unique_event_identifier_such_as_merklepathonevm)
// Currently, random 32 bytes
let event_id = &[0xab, 0xcd, 0xee, 0xff];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, as discussed.

let receipt = sub_mat.receipts[0].clone();
let (tx_index, _) = receipt.get_rlp_encoded_index_and_rlp_encoded_receipt_tuple().unwrap();
let proof = MerkleProof::try_from((&mut merkle_tree, tx_index.as_ref())).unwrap();
// FIXME type mismatch
Copy link

@envin3 envin3 May 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok as discussed. To be fixed in a next release.

Copy link

@envin3 envin3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ubordignon ubordignon force-pushed the sentinel-generic-event-signing branch from cce6661 to e1d7b70 Compare May 17, 2024 10:14
Copy link

@envin3 envin3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ubordignon ubordignon merged commit bbfec92 into master May 17, 2024
@ubordignon ubordignon deleted the sentinel-generic-event-signing branch May 17, 2024 10:19
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.

4 participants