Commit graph

57 commits

Author SHA1 Message Date
81b3dcf3ea
Refactor AddressBookTrustSignature and ContactManager to improve UUID and peer address validation
https://github.com/nosial/Socialbox-PHP/issues/35
2025-03-11 22:46:36 -04:00
netkas
f1dbf5a4d0 Handle InvalidArgumentException in RPC processing and update error messages 2025-03-03 04:25:40 -05:00
netkas
29a3d42538 Major changes, revamp required 2025-02-20 00:34:07 -05:00
netkas
1f9890bba0 Updated standard error code 2025-02-19 14:57:47 -05:00
netkas
0a773101d2 Reordered the logger statement in the case where the rest of the execution fails for whatever reason 2025-02-19 14:51:13 -05:00
netkas
6001e85160 Improved signature verification procedure to be simplified for server-side verification purposes. 2025-02-19 14:50:31 -05:00
netkas
ee48456f2f Renamed SigningKey to Signature 2025-02-10 15:40:20 -05:00
netkas
95dd4eb5f2 updated VerifyPeerSignature to make timed signatures optional, updated parameter names and improved validation 2025-02-08 00:33:19 -05:00
netkas
b380df95fe Removed unused import 2025-02-04 15:07:05 -05:00
netkas
4068862d3c Removed unused exception 2025-02-04 15:06:41 -05:00
netkas
7485733219 Added method verifyPeerSignature(PeerAddress|string $signingPeer, string $signatureUuid, string $signatureKey, string $signature, string $messageHash, int $signatureTime): SignatureVerificationStatus 2025-02-03 14:11:07 -05:00
netkas
0e190c085a Added method signTimedMessage() and verifyTimedMessage() for verifying messages based on signed timestamps 2025-02-03 13:59:11 -05:00
netkas
8c2cbf48d5 Improved Peer Resolution and fixed minor bugs and issues, completed todo 2025-01-31 15:31:07 -05:00
netkas
330e7f876b Added the ability to trust signing keys & resolve signing keys for peers, minor improvements and added new standard error "CONFLICT" 2025-01-30 15:20:11 -05:00
netkas
b8346e139c Renamed StandardException to StandardRpcException 2025-01-30 00:37:37 -05:00
netkas
efc9905200 Moved StandardException to it's own namespace 2025-01-30 00:27:06 -05:00
netkas
59d08b88b1 Added decentralized method resolvePeerSignature 2025-01-29 15:41:49 -05:00
netkas
f40b9ed7f4 Resolve peer at host identification to prevent accidental peer creation when it isn't necessary 2025-01-27 03:52:17 -05:00
netkas
93eff1320f Corrected session initiation logic 2025-01-27 03:38:11 -05:00
netkas
8d5a95da9b Added self-host resolution for resolvePeer 2025-01-27 02:35:41 -05:00
netkas
3311862263 Refactor and enhance peer resolution logic 2025-01-25 17:26:13 -05:00
netkas
aba9adf916 Added the method AddressBookGetContact and minor improvements in other implementations 2025-01-24 19:12:03 -05:00
netkas
f689e36378 Refactored Peer Information to use InformationFields rather than being hard-coded into the peer record 2025-01-24 15:10:20 -05:00
netkas
3bb5f2788e Updated PhpDocs 2025-01-22 15:36:01 -05:00
netkas
ad1e819094 Type error fixes 2025-01-22 15:04:41 -05:00
netkas
9dd8c39ce1 Refactor peer resolution logic and add sync interval setting 2025-01-15 15:49:53 -05:00
netkas
ab03439e04 Refactor peer synchronization and resolution logic. 2025-01-15 15:21:44 -05:00
netkas
a7f5d268de Add support for handling PING requests in Socialbox 2025-01-15 13:55:33 -05:00
netkas
5cb8e72ca5 Refactor header validation logic. 2025-01-14 15:45:17 -05:00
netkas
edf6677256 Add error handling and update parameter in RPC request 2025-01-14 14:53:21 -05:00
netkas
0fbb824f10 Add error handling and refactor peer synchronization logic 2025-01-11 19:49:20 -05:00
netkas
24e21038e8 Handle host peer identification and synchronization logic 2025-01-11 19:38:09 -05:00
netkas
4d01947092 Add authentication method to SocialClient 2025-01-10 18:11:24 -05:00
netkas
a4b17f91e0 Minor Correction 2025-01-10 15:17:12 -05:00
netkas
62c8d332a9 Add peer resolution through the resolvePeer method 2025-01-10 15:16:02 -05:00
netkas
fde3ccfc68 Add external session management and support for remote servers 2025-01-10 14:58:24 -05:00
netkas
ec32978050 Handle missing session in DHE exchange requests 2025-01-10 13:34:40 -05:00
netkas
e9269a24fc Implement session inactivity expiration handling. 2025-01-03 21:22:02 -05:00
netkas
367399f0fd Changed Encryption to use LibSodium instead of OpenSSL, refactored many things and overall improved the code quality and performance with magic. 2025-01-03 12:27:04 -05:00
netkas
c380556255 Refactor session initialization and host validation logic 2024-12-24 19:18:06 -05:00
netkas
830133d102 Minor change 2024-12-23 21:21:30 -05:00
netkas
7e4b02bc04 Remove outdated test files and update peer registration logic 2024-12-23 19:25:21 -05:00
netkas
c866e2f696 Add support for Privacy Policy, Terms of Service, and CAPTCHA 2024-12-14 00:43:19 -05:00
netkas
756297671f Add client metadata to session creation and enforce TOS/PP 2024-12-12 14:55:44 -05:00
netkas
d2119df824 Make client name and version nullable in ClientRequest 2024-12-12 12:58:00 -05:00
netkas
f0624e71d1 Refactor header validation and add GetSessionState scaffold. 2024-12-12 05:12:28 -05:00
netkas
701acfde35 Remove unused StandardMethods and improve session logic 2024-12-12 04:33:10 -05:00
netkas
6c8cbfddec Improve error handling and timestamp formatting 2024-12-09 21:26:25 -05:00
netkas
38b96db83a Update captcha handling and introduce new captcha mechanism 2024-10-31 15:49:42 -04:00
netkas
7868db0ece Remove unused Log import and add docblock for handleRpc method 2024-10-31 12:20:16 -04:00