feat: Calculate the Appended Data

This commit is contained in:
2022-08-02 15:26:00 +02:00
parent 12e617ead9
commit fc43655956
2 changed files with 27 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ void main() {
// ...
// Bob does X3DH
final skBob = await x3dhFromInitialMessage(
final resultBob = await x3dhFromInitialMessage(
X3DHMessage(
ikAlice.pk,
resultAlice.ek.pk,
@@ -39,6 +39,7 @@ void main() {
ikBob,
);
expect(resultAlice.sk, skBob);
expect(resultAlice.sk, resultBob.sk);
expect(resultAlice.ad, resultBob.ad);
});
}