aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-03-11 11:20:38 +0100
committerOnur Gündüz <ogunduz@gmail.com>2026-03-11 11:20:38 +0100
commit6e37bc1f2755ef2e2270d2c1cb988d14ff6d0957 (patch)
tree286c7f2e78a229cc137da3aa91fb24e147535447 /README.md
parent03b95111f19a93ccee00e8e8e0afaab8112f5484 (diff)
downloadnoise-6e37bc1f2755ef2e2270d2c1cb988d14ff6d0957.tar.gz
noise-6e37bc1f2755ef2e2270d2c1cb988d14ff6d0957.zip
Naming
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/README.md b/README.md
index e9775f1..9a78f5e 100644
--- a/README.md
+++ b/README.md
@@ -68,15 +68,15 @@ func main() {
if initiator.IsComplete() && responder.IsComplete() {
fmt.Println("Handshake complete!")
- // Get handshake hash (can be used for channel binding)
- hash := initiator.GetHash()
+ // Handshake hash (can be used for channel binding)
+ hash := initiator.Hash()
fmt.Printf("Handshake hash: %x\n", hash)
- // Get transport cipher states
- txInit := initiator.GetTX()
- rxInit := initiator.GetRX()
- txResp := responder.GetTX()
- rxResp := responder.GetRX()
+ // Transport cipher states
+ txInit := initiator.Tx()
+ rxInit := initiator.Rx()
+ txResp := responder.Tx()
+ rxResp := responder.Rx()
// Send encrypted messages
plaintext := []byte("Secret message")