Commit Graph

198 Commits

Author SHA1 Message Date
6217a889e1 update Makefile with tinygo build options
Some checks failed
TinyGo Build / tinygo-build (tinygo-wasm, tinygo-wasm, reticulum-go.wasm, wasm) (push) Failing after 1m21s
TinyGo Build / tinygo-build (tinygo-build, tinygo-default, reticulum-go-tinygo, ) (push) Failing after 2m2s
2025-11-10 10:11:45 -06:00
92e4651c0c update build constraints for TCP interfaces to support TinyGo 2025-11-10 10:11:06 -06:00
ivan
a01bad919c Merge pull request 'Update TinyGo branch with debug logging' (#2) from main into tinygo
Reviewed-on: #2
2025-11-07 18:53:54 +00: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
353e9c6d9b Update logging to use new debug package
- Removed the old debug logging functions and replaced them with calls to the new debug package.
- Updated logging statements throughout the main.go file to utilize adjustable logging levels.
- Enhanced the clarity and structure of log messages for better debugging and traceability.
2025-11-07 12:41:29 -06:00
088ba3337d Add debug package for logging with adjustable levels
- Introduced a new debug package that allows for logging at various levels (1-7).
- Implemented initialization, logger retrieval, and logging functions.
- Added functionality to set and get the current debug level.
2025-11-07 12:41:14 -06:00
ivan
cfc88e887b Merge pull request 'update tinygo' (#1) from main into tinygo
Reviewed-on: #1
2025-11-06 21:16:11 +00:00
4cd2338095 Update README.md 2025-11-06 15:12:16 -06:00
c6cc1d8ca8 Update 2025-10-31 07:39:51 -05:00
0afb0e9ade Update 2025-10-31 07:39:41 -05:00
feeaa72102 Update GitHub Actions workflows
- Pin to full -length commit hash
- Add master alongside main
2025-10-31 07:39:34 -05:00
d325ee6a2d Update UDPInterface Send method to return an error for unsupported UDP functionality in TinyGo 2025-10-30 19:08:42 -05:00
a45ad400f9 Fixes 2025-10-30 19:05:20 -05:00
f599cc4d43 Update AutoInterface and UDPInterface to use net.PacketConn for better compatibility with TinyGo. Update methods to handle errors related to unsupported features in TinyGo, including interface enumeration and multicast UDP. 2025-10-30 19:01:33 -05:00
1b3f4e59db Update GitHub Actions workflow to trigger on 'tinygo' branch for builds 2025-10-30 19:01:18 -05:00
bb964445f3 add examples to gitignore for now 2025-10-30 18:57:48 -05:00
5369037a74 Add TinyGo build targets to Makefile and create GitHub Actions workflow for TinyGo builds 2025-10-30 18:54:23 -05:00
bb98248830 Update Go module dependencies and version in go.mod and go.sum files 2025-10-30 18:49:23 -05:00
575657bbc5 Remove cyclomatic and cognitive complexity rules from revive.toml configuration 2025-10-26 11:49:48 -05:00
8da4a759f5 Add FromHash method to create destinations from known hashes and enhance link handling capabilities 2025-10-07 22:44:08 -05:00
dff1489ee5 Add link ID generation in Establish method for connection requests 2025-10-07 22:44:02 -05:00
30c97bc9dd Implement identity recall functionality to retrieve existing identities by hash 2025-10-07 22:43:55 -05:00
005e2566aa Add destination registration and link handling in Transport 2025-10-07 22:43:45 -05:00
cc10830df3 Fix CreatePacket method in Announce struct to dynamically set context flag based on the existence of ratchet data. 2025-10-07 21:53:39 -05:00
b548e5711e Add destination type constants for packet handling in types.go 2025-10-07 21:31:45 -05:00
cc89bfef6e Update destination hash calculation in handleAnnouncePacket to use SHA256. 2025-10-07 21:31:40 -05:00
45a3ac1e87 Fix destination hash calculation by incorporating SHA256 for name hashing. 2025-10-07 21:31:16 -05:00
e39936ac30 Fix Announce struct to include destination name and hash validation.
Also update New and NewAnnounce functions to require destinationHash and destinationName parameters.
2025-10-07 21:30:57 -05:00
b601ae1c51 Add read loop for UDP interface to handle incoming packets asynchronously. 2025-10-07 21:30:27 -05:00
7d7a022736 Refine CPU usage calculation in performance monitoring script by truncating decimal values before summation. 2025-09-27 05:56:31 -05:00
0ac2a8d200 Add binary execution tests for Linux, macOS, and Windows in CI workflow. Enhance ARM cross-compilation testing with specific environment variables. 2025-09-27 05:54:30 -05:00
f3808a73e1 Remove caching step for Go modules in performance monitoring workflow 2025-09-27 05:51:43 -05:00
cb908fb143 Increase monitoring duration 2025-09-27 05:50:29 -05:00
f53194be25 Fix announce packet handling to align with RNS specification. Enhance payload parsing, signature verification, and destination hash validation. Improve logging for better debugging of announce packet processing. 2025-09-27 05:48:33 -05:00
ad732d1465 mark interface as online 2025-09-27 05:47:28 -05:00
b70a7d03af Add autointerface for testing 2025-09-27 05:47:17 -05:00
911fe3ea8e Add support for 32-byte Ed25519 2025-09-27 05:46:51 -05:00
b59bb349dc add basic performance monitoring action 2025-09-27 05:44:47 -05:00
08cbacd69f Update README badges for clarity and consistency in multi-platform testing 2025-09-27 05:44:03 -05:00
9a70a92261 Add support for multi-platform testing 2025-09-27 05:43:54 -05:00
be34168a1b Refine comment in TCPClientInterface to clarify HDLC framing usage for TCP connections 2025-09-27 04:41:36 -05:00
cebab6b2f3 Add debug logging and missing packet data 2025-09-27 04:41:25 -05:00
fdcb371582 Fix announce packet creation and sending logic to use the announce package. Enhance error handling and logging for interface checks during packet transmission. 2025-09-27 04:40:47 -05:00
f01b1f8bac Update Decrypt method in Identity to validate token structure and HMAC. Update extraction logic for ephemeral public key, ciphertext, and MAC, ensuring proper error handling for token size and HMAC validation. 2025-09-27 04:40:35 -05:00
a0eca36884 Update logging in HandlePacket and handleAnnouncePacket. 2025-09-27 04:30:59 -05:00
972d00df92 Fix TCPClientInterface readLoop and handlePacket methods to streamline HDLC framing logic and improve packet handling. Remove KISS framing support and update logging for received packets. Ensure outgoing data uses HDLC framing consistently. 2025-09-27 04:30:28 -05:00
483b6e562b Update announce packet creation and sending logic to utilize transport methods 2025-09-27 04:30:13 -05:00
cbb5ffa970 Cleanup incorrect or outdated code 2025-09-27 04:29:59 -05:00