~dr|z3d
@RN
@RN_
@StormyCloud
@T3s|4
@T3s|4_
@eyedeekay
@orignal
@postman
@zzz
%Liorar
%cumlord
%snex
+FreefallHeavens
+H20
+Onn4l7h
+Sh0ck
+bak83
+bpb
+leopold
+onon_
+qend-irc2p
+r00tobo
+uop23ip
+xHarr
Arch
BubbRubb
Dann
DeltaOreo
Irc2PGuest10122
Irc2PGuest16211
Irc2PGuest16546
Irc2PGuest35641
Irc2PGuest35761
Irc2PGuest61752
Irc2PGuest69068
Irc2PGuest82658
Maylay
Meow
ac9f
acetone_
anontor
duck
halloy13412
makoto
mareki2p_
nZDoYBkF__
not_bob_afk
ntty
poriori_
profetik1
shiver_
simprelay
solidx66
thetia
tr
u5657
vivid_reader56
zer0bitz_
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
have a look at zzzmirror.i2p/topics/1882-how-to-test-i2cp-and-loopback-connections mareki2p
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?