Commit Graph

237 Commits

Author SHA1 Message Date
ca3bef0635 implement storage manager for ratchet key management with directory initialization and ratchet data handling 2025-11-21 12:43:10 -06:00
59486330ec update HandleIncomingLinkRequest to accept packet instead of linkID and add HandleRequest method for improved request handling 2025-11-21 12:43:00 -06:00
1133e9755d Add better logging in HandlePacket and handleLinkPacket for better error tracking and clarity 2025-11-21 12:42:18 -06:00
b450aa8569 refactor: update delivery callback in TestPacketReceiptCallbacks to use channel for improved synchronization
Some checks failed
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 33s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 20s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 30s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 38s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 39s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 36s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Build Multi-Platform / build (arm, windows) (push) Failing after 34s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 30s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m25s
Go Revive Lint / lint (push) Successful in 44s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 29s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 31s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 44s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 43s
Go Build Multi-Platform / Create Release (push) Has been skipped
Run Gosec / tests (push) Successful in 59s
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-11-20 21:49:50 -06:00
6aef9e9337 update revive linter rules
Some checks failed
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 31s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 45s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 47s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 33s
Run Gosec / tests (push) Successful in 54s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 22s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 24s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 29s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 46s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 45s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 33s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 34s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 35s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 33s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 33s
2025-11-20 21:46:15 -06:00
678ab32ee6 refactor: simplify index increment for IFAC code handling in handleAnnouncePacket for improved readability 2025-11-20 21:45:49 -06:00
4e37112aee refactor: replace log statements with debug logging in packet.go for improved clarity and consistency 2025-11-20 21:45:44 -06:00
af046370db refactor: replace log statements with debug logging in link.go for improved clarity and consistency 2025-11-20 21:45:39 -06:00
eb40fd6451 refactor: remove flaky address resolution checks in TestNewUDPInterface for improved test reliability 2025-11-20 21:45:35 -06:00
763fb4a962 refactor: improve variable initialization in GetRTT method for better clarity 2025-11-20 21:45:30 -06:00
673f19b1ff feat: add OpenBSD support for TCP keepalive configuration in TCPClientInterface 2025-11-20 21:45:25 -06:00
4a20551e9a feat: add NetBSD support for TCP keepalive configuration in TCPClientInterface 2025-11-20 21:45:20 -06:00
1ac5696c80 refactor: improve variable initialization and return types in Identity methods for clarity 2025-11-20 21:45:15 -06:00
5c2ea259b8 refactor: replace log statements with debug logging for packet resend errors in channel.go 2025-11-20 21:45:10 -06:00
7573e942f1 refactor: streamline Read and Close methods in buffer.go for improved clarity and efficiency 2025-11-20 21:45:06 -06:00
d3cf775394 refactor: simplify RequestPath method by removing unnecessary error handling 2025-11-20 21:45:01 -06:00
5e19f6f802 fix: update TargetHost for Quad4 TCP interface from rns.quad4.io to rns2.quad4.io 2025-11-20 21:44:51 -06:00
72d70b2141 feat: add receipt management for packet handling, including registration, unregistration, and proof validation 2025-11-20 21:31:36 -06:00
06da42a148 feat: implement PacketReceipt struct with methods for receipt creation, validation, and timeout handling 2025-11-20 21:31:31 -06:00
ec8b843cd4 feat: enhance Packet struct with new fields and hash methods for improved functionality 2025-11-20 21:31:24 -06:00
9e7e9a71ca feat: add link establishment tests and implement key generation, handshake, and proof validation in the Link module 2025-11-20 21:31:18 -06:00
b0669954a4 code cleanup 2025-11-20 21:25:50 -06:00
ded5853026 move platformGetRTT implementation to tcp_common.go for non-Linux platforms 2025-11-20 21:24:58 -06:00
426422413c Update TODO 2025-11-20 21:24:36 -06:00
50c8546344 chore: update golang.org/x/crypto dependency to v0.45.0 in go.mod and go.sum
Some checks failed
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 33s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 37s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 37s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 39s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 37s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 36s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 33s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 33s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 52s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 34s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 34s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 30s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m20s
Go Revive Lint / lint (push) Successful in 48s
Run Gosec / tests (push) Successful in 50s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-11-20 18:22:08 -06:00
b0fad14504 fix: add security comment for TCP_INFO syscall in platformGetRTT function
Some checks failed
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 23s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 24s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 39s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 41s
Go Build Multi-Platform / build (arm64, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, windows) (push) Has been cancelled
Go Build Multi-Platform / Create Release (push) Has been cancelled
Go Build Multi-Platform / build (arm, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm, windows) (push) Has been cancelled
Go Revive Lint / lint (push) Has been cancelled
Go Build Multi-Platform / build (arm, freebsd) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, darwin) (push) Has been cancelled
Run Gosec / tests (push) Has been cancelled
2025-11-20 18:21:14 -06:00
24aa4fa88b remove default RTT implementation for non-Linux platforms and enhance keepalive period configuration for FreeBSD and Windows
Some checks failed
Go Build Multi-Platform / build (arm, linux) (push) Failing after 38s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 33s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 41s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 31s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 22s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 29s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 37s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 31s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 30s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 34s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 33s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m0s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 48s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m25s
Run Gosec / tests (push) Failing after 58s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-11-20 18:14:57 -06:00
189645940c fix: add security comments to clarify handling of non-critical errors in ratchet file operations
Some checks failed
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 35s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 39s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 38s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 30s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 29s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 33s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 32s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 35s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 36s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 36s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 34s
Run Gosec / tests (push) Failing after 58s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 46s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m28s
Go Revive Lint / lint (push) Successful in 55s
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-11-20 18:04:30 -06:00
4f37df2fc0 fix: add security comments to handle non-critical errors in ratchet persistence 2025-11-20 18:04:26 -06:00
4859f5513a fix: add security comment for Unix timestamp handling in CreatePacket function 2025-11-20 18:04:22 -06:00
2a2d6d6515 feat: add platform-specific TCP timeout configurations for Darwin, FreeBSD, Windows, and Linux 2025-11-20 18:04:11 -06:00
d0c111d2f5 Update README
Some checks failed
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 42s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 46s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 41s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 37s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 44s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 40s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 38s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 41s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 38s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 57s
Run Gosec / tests (push) Failing after 1m17s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 40s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 42s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m33s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 57s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-11-20 17:57:58 -06:00
3d943aaaef refactor: improve announce packet handling by clarifying address extraction and validation logic
Some checks failed
Go Build Multi-Platform / build (arm, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm, windows) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, darwin) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, windows) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Has been cancelled
Run Gosec / tests (push) Has been cancelled
Go Revive Lint / lint (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, linux) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, windows) (push) Has been cancelled
Go Build Multi-Platform / Create Release (push) Has been cancelled
Go Build Multi-Platform / build (amd64, darwin) (push) Has started running
2025-11-20 17:57:13 -06:00
d5d7fbdb79 refactor: simplify comments in getHashablePart function for clarity 2025-11-20 17:57:07 -06:00
fdfe895d2d feat: enhance TCP and UDP interfaces with improved timeout settings and MTU configuration 2025-11-20 17:57:00 -06:00
01e639133b feat: enhance AutoInterface with improved configuration and multicast handling 2025-11-20 17:56:54 -06:00
6c6953e664 refactor: update identity management to use raw byte storage and msgpack for ratchet persistence 2025-11-20 17:56:48 -06:00
b4039dc148 feat: implement ratchet management with persistence and rotation 2025-11-20 17:56:40 -06:00
ba18fba43e Fix announce packet and debug logging 2025-11-20 17:56:29 -06:00
f4a929ce3a Update README.md
Some checks failed
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 41s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 46s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 44s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 33s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 33s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 32s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 55s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 53s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 43s
Run Gosec / tests (push) Successful in 58s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 48s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 35s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 51s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m29s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 45s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-11-13 10:30:50 -06:00
fe66163ef7 remove 2025-11-13 10:30:41 -06:00
2cc34172c8 remove workflows 2025-11-13 10:30:32 -06:00
9331c4edbd add donation information and funding options
Some checks failed
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 1m15s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 31s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 33s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 1m19s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 1m17s
Benchmark GC Performance / benchmark (push) Successful in 1m42s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 29s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 26s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 26s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 32s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m8s
Run Gosec / tests (push) Successful in 1m0s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 30s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 31s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m0s
Go Revive Lint / lint (push) Successful in 25s
Performance Monitor / performance-monitor (push) Successful in 2m27s
2025-11-10 12:57:25 -06:00
f097bb3241 security: use net.JoinHostPort instead of fmt.Sprintf
Some checks failed
Benchmark GC Performance / benchmark (push) Successful in 1m19s
Run Gosec / tests (push) Successful in 48s
Go Revive Lint / lint (push) Successful in 34s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 31s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 34s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 29s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 27s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 48s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m28s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 27s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 27s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 27s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 27s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 27s
Performance Monitor / performance-monitor (push) Successful in 2m40s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 25s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 27s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
v0.5.0
2025-11-09 00:05:36 -06:00
22fc5093db perf: combine multiple append calls in transport 2025-11-09 00:05:31 -06:00
fc95e54b2e update: Makefile with debug build target and update help text
Some checks failed
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 55s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 58s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 54s
Benchmark GC Performance / benchmark (push) Successful in 1m28s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 48s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 46s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 29s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 28s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m32s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 50s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 36s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 38s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 40s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 46s
Run Gosec / tests (push) Successful in 51s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 36s
Performance Monitor / performance-monitor (push) Has been cancelled
2025-11-09 00:01:19 -06:00
636d400f1e refactor: migrate to structured debug logging 2025-11-09 00:00:55 -06:00
fd5eb65bc0 fix: use context.TODO() in logger.Enabled check for improved clarity 2025-11-07 12:51:14 -06:00
4e13fe523b fix: resolve deepsource linter issues
- Fixed the append usage warning (CRT-D0001)
- Fixed the nil context warning (SCC-SA1012)
2025-11-07 12:47:47 -06:00
dd2cc3e3d9 update logging function to improve argument handling 2025-11-07 12:44:40 -06:00