ca5c7feb9f
Reduce redundant logic in validateAddressFormat
2025-05-26 22:36:53 -04:00
faf6b8e93e
fix validateAddressFormat
2025-05-26 22:28:54 -04:00
d844519847
Merge branch 'master' of github.com:go-i2p/i2pkeys
2025-05-26 22:27:00 -04:00
25ef151100
Improve validation of bytes when generating address from byte slice
2025-05-26 22:26:13 -04:00
f772cc42a3
Improve validator function
2025-05-26 22:24:18 -04:00
d166f5c31e
Update I2PAddr.go, fixes eyedeekay/onramp issue #2
2025-05-15 22:44:23 -04:00
9694fe011c
Add ability to pass different flags to the DEST GENERATE function
2024-12-08 15:48:46 -05:00
d8a31854b9
Separate out generate address function and make it's SAM port configurable
2024-11-29 18:01:00 -05:00
f82fb12470
Simplify, simplify, simplify
2024-11-29 17:13:10 -05:00
50d395b12d
Split I2PAddr and I2PDestHash into their own files
2024-11-29 14:20:55 -05:00
a05ca99118
Merge branch 'loadkeys' into refactor
2024-10-26 22:59:30 -04:00
b99e77153e
Make LoadKeys() create new keys if the keyfile doesn't exist
2024-10-26 22:59:06 -04:00
b56afeb346
tweaks
2024-10-26 19:20:37 -04:00
890d71f974
comments
2024-10-26 19:20:05 -04:00
bfcde005b3
Refactored LoadKeysIncompat
...
-Previously: would log errors regardless at the end
-Better error handling
2024-10-26 19:18:08 -04:00
25eedfeed8
return os.ErrNotExist instead of written error
2024-10-26 13:50:59 -04:00
936c39746c
tweaks
2024-10-15 19:48:13 -04:00
8df0f31a4d
Added logging to I2PAddr.go
...
-removed "trace" and "info"
-moved log to its own file
-shifted priv -> _priv (pre newline removal)
-added response string in Lookup()
-added response string in NewDestination()
2024-10-15 09:53:10 -04:00
c1b05d6ede
!WIP! - added logging
2024-10-14 23:28:25 -04:00
6c95fc6ac7
-Critical change: trim newline from private key
...
-commented out newline investigation in Test_KeyGenerationAndHandling
-Test_KeyGnerationAndHandling works as expected now.
2024-09-15 21:48:51 -04:00
c86c07c1df
refactored error handling in HostnameEntry()
2024-09-09 20:20:43 -04:00
fde718e1d8
refactored error handling in StoreKeysIncompat()
2024-09-09 20:17:21 -04:00
3a99966c42
refactored error handling in LoadKeys()
2024-09-09 20:07:43 -04:00
d23cb52f2c
refactored error handling in fileExists()
2024-09-09 20:02:56 -04:00
28d6bf4d97
update go modules
2023-03-07 02:11:16 +00:00
9307ae9cf4
StringIsBase64 is bittorrent mode
2022-09-22 23:14:43 -04:00
e6cb984e8f
add option to only return b64s
2022-09-21 00:36:57 -04:00
910de44ac8
Make the StoreKeys function automatically set up the file if it's not already there
2022-08-03 16:46:30 -04:00
f1a1319f2b
repurpose the useless cmd application nobody used into a place to put the i2pkeys library outside of both the SAM libraries
2022-03-10 00:44:14 -05:00
204d4ae6dc
repurpose the useless cmd application nobody used into a place to put the i2pkeys library outside of both the SAM libraries
2022-03-10 00:20:25 -05:00