-
m-relay<jpk68:matrix.org> As it seems the new Trezor wallets rely on Noise for their wire protocol, I was wondering what the preferred approach might be to implementing such a protocol in core. Regarding Noise, specifically
-
m-relay<jpk68:matrix.org> Neither libsodium or OpenSSL support Noise (just its primitives), so it would have to use an existing Noise library (of which none are very widely adopted), or we could roll our own, I suppose
-
m-relay<ofrnxmr:xmr.mx> Nobody is looking at it
-
m-relay<jpk68:matrix.org> Yes, I know :)
-
m-relay<vtnerd:monero.social> Their new protocol looks like a beast. That's all I got so far
-
m-relay<jpk68:matrix.org> Just curious for the future
-
m-relay<ofrnxmr:xmr.mx> Id say: look at some other chain that implemented it (if any did)
-
m-relay<jpk68:matrix.org> Haha, I came to the same conclusion. I did read your writeup on the proposed P2P encryption support... did you have a Noise implementation in mind to use for that?
-
m-relay<jpk68:matrix.org> There is also the option of using Trezor's Rust library if/when it comes out, or making some sort of wrapper for their Python code
-
m-relay<vtnerd:monero.social> I initially proposed noise based on feedback from discussions at a monerokon then pivoted to ssl
-
m-relay<vtnerd:monero.social> There were some interesting features, but it didn't seem worth the effort. In the end the ssl patch has received little reviews anyway, so perhaps I should've just gone for the noise implementation
-
m-relay<vtnerd:monero.social> We can probably roll our own for trezor if needed, it's not terribly difficult assuming they pick just one specific algorithm
-
m-relay<jpk68:matrix.org> It's just Noise_XX
-
m-relay<jpk68:matrix.org> Someone made a Bitcoin-only library for the protocol already, which apparently works and could perhaps be a useful reference:
-
m-relay<jpk68:matrix.org> github.com/coreyphillips/trezor-connect-rs
-
m-relay<vtnerd:monero.social> The noise protocol is just for safe 7 right? The others use the older existing protobuf scheme?
-
m-relay<jpk68:matrix.org> Yes, I believe so
-
m-relay<vtnerd:monero.social> I guess they did it because Bluetooth (and maybe) nfc, but damn is it annoying from our perspective
-
m-relay<vtnerd:monero.social> Actually nfc power limits should be too low for monero txes but maybe I'm craY
-
m-relay<vtnerd:monero.social> *crazy
-
m-relay<jberman:monero.social> maybe we should get the p2p SSL patch running on beta to get it some good testing
-
tobtohtI'm very much not a fan of adding a large number of rust crates or re-introducing Python to our supply chain to support one vendor's custom wire protocol.
3 hours ago