IRCaBot 2.1.0
GPLv3 © acetone, 2021-2022
#saltr
/2025/01/17
~dr|z3d
@RN
@RN_
@StormyCloud
@T3s|4
@eyedeekay
@orignal
@postman
@zzz
%Liorar
+FreefallHeavens
+Over
+RTP
+Xeha
+bak83
+cancername
+cumlord
+mareki2p
+poriori
+profetikla
+radakayot
+uop23ip
An0nm0n
Arch
Dann
DeltaOreo
FreeB
Irc2PGuest39399
Irc2PGuest4830
KiloDelt1
Leopold_
Meow
Nausicaa
Onn4l7h
Onn4|7h
T3s|4__
acetone__
anon3
anu3
carried6590
itsjustme
mareki2pb
not_bob_afk
pisslord
qend-irc2p
shiver_
simprelay
solidx66
stormytest
thetia
u5657
woodwose
wtfman1
onon_ zzz, throw out the peer tests, do NAT detection via STUN
dr|z3d another rapid cycler: y8q2xWGfKdUzGVkapSZ~wJbqGWJ1vTaPUz0oChBp99M=
mareki2p I'm currently writing I2P capable application in C and I am studying the I2CP protocol. I am able to connect to I2CP router's port and request host name translation. I would like to send something to that host. I guess I need to create a session first, but for that I need a destination. Is this correct? How do I generate a destination? In SAMv3 it was easy.
dr|z3d maybe that'll give you some ideas.
zzz mareki2pb, no you don't need a session/dest to do a lookup. In the docs and the java code it's called 'simple session'
zzz rereading though, yes you need to create a destination to start a real session before you can send anything
zzz see the common structures spec
mareki2p Thank, you. So just generate 256 random bytes as private key (elgamal) and compute corresponding public key. Another 20 random bytes as private key (DSA+SHA-1) and compute corresponding public key. Then serialize them to create session message, add signature, and send to I2CP port.
zzz the elgamal key is unused, just stick random data in there for the public key
zzz and I recommend you use Ed25519, not DSA-SHA1, but you could start with DSA-SHA1 if it's easier
zzz if you don't want to do key certificates yet
mareki2p Yeah, I'm writing it in C from scratch, no libraries. Both elgamal and DSA seems easy enough for me, I never computed any elliptic curves.
zzz you will need elgamal or X25519 keys when you get to the leaseset, but you don't need them for the destination
orignal and for routers
zzz he's doing I2CP, no RIs there
dr|z3d orignal: does your light theme snark+ standalone look like shit?