ca8d8688cb
Split key generation out in helper
v0.33.001
2021-10-27 22:38:52 -04:00
ef67dc1e44
Split key generation out in helper
2021-10-27 22:38:21 -04:00
9a162e9502
Readme update and code cleanup
2021-10-04 21:00:03 -04:00
31b8d62f04
Allow passing either pointer or instance to DialI2PRemote in DatagramSession
2021-07-18 15:06:49 -04:00
d191b3404e
Allow passing either pointer or instance to DialI2PRemote in DatagramSession
2021-07-18 15:05:36 -04:00
1de06ec9b9
Allow passing either pointer or instance to DialI2PRemote in DatagramSession
2021-07-18 15:05:02 -04:00
ed814a2fc6
Add SetReadDeadline and SetWriteDeadline to StreamSession
2021-04-15 21:11:56 -04:00
746084e65f
Add localaddr to streamsession
2021-04-15 20:51:07 -04:00
1a55eb6e90
Merge branch 'easy-keys' into 'master'
...
Support SAMv3.3 PRIMARY sessions and all 3 types of SubSessions
See merge request idk/sam3!1
2021-04-15 00:50:41 +00:00
d307d85458
Actually, use SubSessions
2021-02-28 23:22:42 -05:00
0be404e00f
Actually, use SubSessions
2021-02-28 23:11:33 -05:00
c37b1a099e
Append a random string to dialed addrs
2021-02-28 22:54:54 -05:00
9c93a9e934
Add a resolver
2021-02-28 18:47:37 -05:00
a4c6ef983d
implement x/dialer
2021-02-28 18:32:45 -05:00
5629074653
implement x/dialer
2021-02-28 18:13:39 -05:00
4e4d930c06
implement x/dialer
2021-02-28 17:00:17 -05:00
18b8c77c79
Make it so that PrimarySession.Dial can be used like net.Dial
2021-02-27 00:02:04 -05:00
aa8028230e
Make it so that PrimarySession.Dial can be used like net.Dial
2021-02-26 23:52:54 -05:00
6c5a389c9b
Make it so that PrimarySession.Dial can be used like net.Dial
2021-02-26 23:50:56 -05:00
818f18648a
Primary Session should return LocalAddr
2021-02-26 16:04:18 -05:00
ddbe66bfe9
Primary Session should return LocalAddr
2021-02-26 16:02:14 -05:00
f46a953bc8
Primary Session should return LocalAddr
2021-02-26 16:00:43 -05:00
e5f304f552
Primary Session should return LocalAddr
2021-02-26 15:55:22 -05:00
27810c197c
experiment: try using base32 as String in address since most things are going to expect it anyway, I think
2021-02-26 15:25:59 -05:00
6c76e83617
experiment: try using base32 as String in address since most things are going to expect it anyway, I think
2021-02-26 13:09:39 -05:00
1748849c87
experiment: try using base32 as String in address since most things are going to expect it anyway, I think
2021-02-26 13:07:22 -05:00
0f604e88b2
Try directly creating a listener on top of a PrimarySession
2021-02-26 10:52:19 -05:00
3ffa61bf70
Neat that was easy, SAM Primary sessions appear to work.
2021-02-22 12:54:52 -05:00
e9ab98c71b
Also port the datagram example to the Primary session
2021-02-21 00:28:26 -05:00
6b90389d7f
Add a basic test of a Primary session by making the datagramm session test fire off a datagram subsession
2021-02-21 00:07:06 -05:00
0b4982e1fe
Throw in some other useful defaults while I'm at it. TODO, switch everything over to the option emitter. Thought I already did that.
2021-02-19 23:38:05 -05:00
06ef087039
That... might actually do it, but there's probably something important I missed so far. I'll write up primary_test.go tomorrow.
2021-02-19 23:32:05 -05:00
2cb9b8f30c
Add DatagramSession to helper library, stub out samv3.3 primary sessions
2021-02-19 21:47:37 -05:00
bdc1edb224
Add DatagramSession to helper library, stub out samv3.3 primary sessions
2021-02-19 21:44:59 -05:00
de74967cd2
Add DatagramSession to helper library, stub out samv3.3 primary sessions
2021-02-19 21:28:28 -05:00
e8b472bed9
Ask for keys from the SAM API as a one-off event in i2pkeys. Set up for implementing crypto.Public/Private keys, crypto.Signer
2021-01-22 16:26:07 -05:00
e45d6f7cb0
Make it so i2pkeys also implements net.Addr
2020-12-30 20:53:27 -05:00
f3baac1fbe
update mods and fmt
2020-12-14 21:43:28 -05:00
692064fd13
simplify listener helper a bit
2020-12-14 21:43:04 -05:00
109830a970
gofmt
v0.32.32
2020-11-23 20:38:35 -05:00
d8c42f6a0a
Prep to cut a new release
2020-11-22 12:50:23 -05:00
9f0d7f348c
Prep to cut a new release
2020-11-22 12:48:28 -05:00
f464873c93
add I2PStreamSession to helper
2020-11-22 00:08:55 -05:00
a2f2e6786a
add I2PStreamSession to helper
2020-11-22 00:05:04 -05:00
704f2971b5
add a "helper" function which just magically creates a listener
2020-11-21 17:44:50 -05:00
aef996d60a
update deb changelog
2020-10-18 01:04:40 -04:00
529cdd6063
update deb changelog
v0.32.31
2020-10-18 01:03:01 -04:00
33f3caa3f9
Add fmt make target, incorporate address length fix from qiwenmin, add a shortcut for saving your keys
2020-10-18 00:58:45 -04:00
5a43ad260d
Merge pull request #3 from qiwenmin/fix-wrong-addr
...
Fix wrong address.
2020-10-18 04:34:41 +00:00
cd744bfe49
Fix wrong address.
...
With some addresses, ToBytes() calculates the wrong buffer lenngth
and returns the larger buffer for next step (sha256). So the b32
address will wrong.
For example, when the b64 key is the following:
tr2kQArAdxb7rt3Hr6itisY1Pi7ncWVUYDan2rjB45F1lIFvDPJih5dBa~WfWTvfyt
QKdtFoGHLuZdC8X71R5GXGvh8N0ECBtjhYPG8chFSEO2Cab2SZKYskEqGeOrlOvAQ-
yYaH0xCkarxFdvEbXoV~cfDhHDJcZI3Uc522sLWlB72-uOH9nlzyt-41byGc5GWn5c
CxJZx8UfszUIG9B2QoptrN0xquWvkLxescZ~0JYePTEJTeQFWlfPAiHcuAloAq3yKt
DCY4xcSracQr9ieCmnFJoUsLtzsjSrn7L~WwlI4pYYXxkm2dtzR8cPHJCBUBNMbK~K
TIxLtH0Tt9wI3edHgRMdxNm3EoozpPMXA05Ouni~ehWMhaywiJKTDZcGKDRqXJVm~y
xJGcXiXT2UzdwM~D20KTTUlLmeRqsU5hqpk2kgBIWKFfb8Gunx2hr0wEHsJypUwDQ-
FSGT0Fw0MRGq0QWvwXxroPbJdjsNnYOKCEogHxC4VrmzaLhHlEBQAEAAcAAA==
the right raw key length is 391, but ToBytes() returns a 393 bytes
raw key.
Using DecodeString() can fix this issue.
2020-09-27 08:33:52 +08:00