-
Notifications
You must be signed in to change notification settings - Fork 6
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: low-level support for v1 messaging #6
Conversation
// This creates 2 users connected to the API and sends DMs | ||
// back and forth using message API V1. | ||
test( | ||
skip: "manual testing only", | ||
"v1 messaging: intros, reading, writing, streaming", | ||
() async { | ||
// Setup the API clients. | ||
var aliceApi = Api.create(host: '127.0.0.1', port: 5556, isSecure: false); | ||
var bobApi = Api.create(host: '127.0.0.1', port: 5556, isSecure: false); |
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.
This test walks through the core of the functionality added.
b9d2033
to
20b68a8
Compare
20b68a8
to
9a556ce
Compare
/// This performs a variation of the X3DH protocol to establish a shared secret | ||
/// between "me" and "peer". | ||
/// NOTE: it varies based on whether "me" is the recipient (vs sender). | ||
Uint8List compute3DHSecret( |
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.
Here's the careful crypto bits.
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.
cc @mkobetic in case you want to follow along on the crypto pieces!
/// This performs a variation of the X3DH protocol to establish a shared secret | ||
/// between "me" and "peer". | ||
/// NOTE: it varies based on whether "me" is the recipient (vs sender). | ||
Uint8List compute3DHSecret( |
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.
cc @mkobetic in case you want to follow along on the crypto pieces!
This includes the low-level bits required for V1 messaging.
It includes
PublicKeys
and v2SignedPublicKeys