Giter VIP home page Giter VIP logo

Comments (15)

mwarning avatar mwarning commented on May 25, 2024

I will have a look. Does work without the Python script?

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

If KadNode does not work with authorization, then I would suspect that libsodium has changed some API semantics for its 1.0 release...

from kadnode.

vkefallinos avatar vkefallinos commented on May 25, 2024

The thing is that it worked once a few days ago and after that it stopped
working. Can you please give me all the versions of the modules needed to
make it work. Also if you have time please try my python script to tell me
if it works with your setup.
On Dec 17, 2014 4:26 AM, "Moritz Warning" [email protected] wrote:

If KadNode does not work with authorization, then I would suspect that
libsodium has changed some API semantics for its 1.0 release...


Reply to this email directly or view it on GitHub
#28 (comment).

from kadnode.

vkefallinos avatar vkefallinos commented on May 25, 2024

The script just runs the commands. So it doesn't work even if I run the commands on the console.
I am now trying libsodium 0.7.1 and will get back to you.

from kadnode.

vkefallinos avatar vkefallinos commented on May 25, 2024

I tried libsodium 0.7.1 and it doesn't work either. Can you give a p2p domain with its public key that is online this moment so I can test if it doesnt work because all of my nodes are on the same public ip?

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

I need some more time to debug this. :-)

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

You can try this to lookup mwarning.p2p
--auth-add-pkey mwarning.p2p:bd31b72d867606cf4924fd020867a0f39247906b4471ad2a6e4fffcc1ee2cdb1

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

Ok, the basic DHT lookup succeeds for me, but the other side does not respond to my challenges to prove that it has the secret key. That is why lookup won't show any results.

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

It works on a local network. More tomorrow.

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

Ok, as it turns out. My server was behind a NAT. Which won't work. Another server with a public IP address worked.
I've looked at your script and it kills kadnode on every start which is bad because it takes some time for a node to bootstrap into the network. You also do not need to append .p2p anywhere in your script. It is ignored by KadNode anyway. I hope that helps. :-)

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

I have added a patch so that kadnode will remove unsuccessful searches when they are done - rather then timeout. This will make KadNode more responsive when starting a new search.

from kadnode.

vkefallinos avatar vkefallinos commented on May 25, 2024

It worked with mwarning.p2p and it was fast!!! :) I have to put raspberry's in different internet connections to test it properly.
Can I ignore ".p2p" on "--auth-add-skey "node1.p2p:" --value-id node1.p2p"?
Also is it possible to have more than one tld?
To add an skey node or a pkey node it needs to restart. That's why I kill kadnode and restart. Is there a better way?
Thank you

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

I am glad mwarning.p2p worked for you as well. :-)
Let me know how your setup is doing!

Can I ignore ".p2p" on "--auth-add-skey "node1.p2p:" --value-id node1.p2p"?

Yes, you don't need .p2p, it is ignored. It is used only in the DNS and NSS code part to decide if to accept a query. You can change the TLD using the --query-tld option. But currently only one tld is supported. This may change in the future.
Adding keys at runtime is a bit troublesome to implemented and I do not feel that it is an important feature. Anyway, I've fixed a bug today that caused KadNode not export all good peers. Restarting KadNode should work better now.

from kadnode.

vkefallinos avatar vkefallinos commented on May 25, 2024

Great..Nice work anyway.
Here is the project that uses kadnode: https://github.com/PeerBay/peerNode

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

I will try to implement a common authentication scheme, the current one is not really satisfying - this should make it possible to add keys add runtime.

from kadnode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.