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

E2E demo deps #80

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

E2E demo deps #80

wants to merge 20 commits into from

Conversation

expede
Copy link
Member

@expede expede commented Jan 31, 2025

No description provided.


let round_tripped = bob
.try_decrypt_content(bob_doc1.dupe(), &encrypted_content)
.unwrap();
Copy link
Member Author

@expede expede Jan 31, 2025

Choose a reason for hiding this comment

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

@jtfmumm this panics. I think that lines 1471-1476 show that the CGKAs should be in sync. Maybe the receive is missing a rebuild trigger or something?

}
StaticEvent::PrekeyRotated(op) => self.receive_prekey_op(&KeyOp::from(Rc::new(op)))?,

StaticEvent::CgkaOperation(cgka_op) => self.receive_cgka_op(cgka_op)?,
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the Cgka op coming in off the wire

Comment on lines 1478 to 1481
assert_eq!(
alice_doc1.borrow().cgka.pcs_key_ops,
bob_doc1.borrow().cgka.pcs_key_ops
);
Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps worth noting that these are different (this assertion fails)

Copy link
Contributor

Choose a reason for hiding this comment

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

This makes sense, since Bob would only insert into this once he has decrypted the root secret and created a PcsKey.

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.

2 participants