-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
…ead of `UserOps`
…ould be handled w/r/t `SignedEvents`
NOTE: This is my final commit to pNetwork - it's been a pleasure working with you all over the years! <3
…from the `SignedEvents` type
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]; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cce6661
to
e1d7b70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.