From 608f0a23ebe1ec91b427842896ffb2f84463a930 Mon Sep 17 00:00:00 2001 From: Adam Hunter Date: Fri, 17 May 2024 14:13:41 -0400 Subject: [PATCH] fix typo with X25519 Key Agreement example --- cryptography/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptography/README.md b/cryptography/README.md index 49da1e5..70e8836 100644 --- a/cryptography/README.md +++ b/cryptography/README.md @@ -334,7 +334,7 @@ Future main() async { keyPair: aliceKeyPair, remotePublicKey: bobPublicKey, ); - final sharedSecretBytes = await aliceKeyPair.extractBytes(); + final sharedSecretBytes = await sharedSecret.extractBytes(); print('Shared secret: $sharedSecretBytes'); } ``` @@ -435,4 +435,4 @@ Future main() async { print('SHA-512 hash: ${hash.bytes}'); } -``` \ No newline at end of file +```