mirror of
https://github.com/btcsuite/btcd.git
synced 2026-08-13 12:32:51 +02:00
In this commit, we send the responder key as soon as the initiator diverges from the v1 prefix. This avoids the BIP324 deadlock where both sides can wait for the other to write before the initiator has sent its complete 64-byte key. We split key generation and key agreement into separate admission leases, and release each lease before the intervening network I/O. The regression test stops after the first mismatch, requires the responder to make progress, then completes key agreement and verifies the resulting packet ciphers interoperate. |
||
|---|---|---|
| .. | ||
| chacha.go | ||
| go.mod | ||
| go.sum | ||
| handshake_test.go | ||
| log.go | ||
| transport.go | ||
| transport_test.go | ||