arceliar / ironwood Goto Github PK
View Code? Open in Web Editor NEWLicense: Mozilla Public License 2.0
License: Mozilla Public License 2.0
For unknown reason wireDummy
packet type is actually used for timeout instead of keepalive functionality provided by TCP.
Maybe rename it to wireHeartbeat
?
ive noticed
https://github.com/Arceliar/ironwood/blob/main/encrypted/internal/e2c/e2c.go
func Ed25519PrivateKeyToCurve25519(pk ed25519.PrivateKey) []byte {
h := sha512.New()
h.Write(pk.Seed())
out := h.Sum(nil)
return out[:curve25519.ScalarSize]
}
not performing any of the usual scalar masking as done in https://github.com/teserakt-io/golang-ed25519/blob/master/extra25519/extra25519.go#L16-L26 for example.
it should probably be done as per https://neilmadden.blog/2020/05/28/whats-the-curve25519-clamping-all-about/
it's probably ~FINE because curve25519.ScalarMult used by nacl/box
does it on its own but honestly it's not exactly clear whether all users of this value will do that, so I suggest doing it explicitly for brevity.
also Ed25519PublicKeyToCurve25519
should probably just use https://pkg.go.dev/github.com/teserakt-io/golang-ed25519/extra25519#PublicKeyToCurve25519 or https://pkg.go.dev/filippo.io/edwards25519#Point.BytesMontgomery instead of messing with bigints because bigints are kinda eh. likely slower and not constant-time (yes i know that derivering stuff from pubkey doesn't exactly require constant time).
also upstream this part was copied from changed as per FiloSottile/age@e63c22e
or you can just ignore this stuff because current code is kinda okay
Hello,
I have been experimenting with pinecone (https://github.com/matrix-org/pinecone) a bit briefly and was able to make some connections between nodes on same network, but had problems connecting to a pinecone instance running on a wan vps server with public ip so I started research solutions and came across ironwood.
I am seeking an overlay mesh network that will also relay through existing nodes like pinecone and yggdrasil but not requiring a tun/tap installation. Pinecone is supposed to do this, and I am wondering if ironwood can do the same?
If so, then I would like to compile it up to see if I can make connections to some systems that I have (Windows and Linux) and if the connections go well then maybe try some way to pass messages or packets to one, more than one, and all nodes on the overlay network.
Can you please let me know more about ironwood and its capabilities as I need something like this for a project that is in the works now?
Thanks and have a great day
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.