~dr|z3d
                        
                        
                            @RN
                        
                        
                            @RN_
                        
                        
                            @StormyCloud
                        
                        
                            @T3s|4
                        
                        
                            @T3s|4_
                        
                        
                            @orignal
                        
                        
                            @postman
                        
                        
                            @zzz
                        
                        
                            %Liorar
                        
                        
                            %acetone
                        
                        
                            +FreefallHeavens
                        
                        
                            +Onn4l7h
                        
                        
                            +Sh0ck
                        
                        
                            +bak83_
                        
                        
                            +bpb
                        
                        
                            +leopold
                        
                        
                            +r00tobo_BNC
                        
                        
                            +uop23ip
                        
                        
                            +xHarr
                        
                        
                            Arch
                        
                        
                            BubbRubb
                        
                        
                            Danny
                        
                        
                            DeltaOreo
                        
                        
                            H20
                        
                        
                            Irc2PGuest16752
                        
                        
                            Irc2PGuest33667
                        
                        
                            Irc2PGuest97218
                        
                        
                            Maylay
                        
                        
                            Meow
                        
                        
                            ac9f_
                        
                        
                            anontor
                        
                        
                            b4dab00m
                        
                        
                            eyedeekay_
                        
                        
                            halloy13412
                        
                        
                            john231
                        
                        
                            makoto
                        
                        
                            nZDoYBkF
                        
                        
                            nilbog-
                        
                        
                            not_bob_afk
                        
                        
                            ntty
                        
                        
                            poriori_
                        
                        
                            profetik1
                        
                        
                            r00tobo[2]
                        
                        
                            shiver_
                        
                        
                            simprelay
                        
                        
                            solidx66
                        
                        
                            thetia
                        
                        
                            tmg86
                        
                        
                            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?