-
m-relay
<catduck101:matrix.org> .merges
-
m-relay
<binarybaron:matrix.org> what is tx_extra going to be limited to with the next hardfork?
-
Cindy_
tx_extra is gonna get limited more?
-
m-relay
<binarybaron:matrix.org> I thought so
-
Cindy_
tx_extra is already limited
-
m-relay
<binarybaron:matrix.org> I think its only a tx relay policy limit, not consensus.
-
Cindy_
well if everyone believes in it, it is consensus
-
Cindy_
it's limited to about 1060 bytes
-
m-relay
<binarybaron:matrix.org> That seems correct, thanks
-
m-relay
<binarybaron:matrix.org> I'm trying to transmit around 170 bytes of arbitrary bytes to someone who has the view keys to a Monero wallet to which I have the view keys as well. My current approach would be to encrypt the message with the public view key.
-
m-relay
<binarybaron:matrix.org> Probably with ECDH (compute shared secret point with random r) -> KDF (derive symmetric key) -> ChaCha20-Poly1305 (encrypt the message) ?
-
m-relay
<binarybaron:matrix.org> Is there an easier way? Payment IDs are pretty similar to what I am trying to do but they are deprecated and limited to 32 bytes.
-
Cindy_
limited to 8 bytes*
-
Cindy_
the 8-byte new payment IDs use a XOR cipher i think
-
m-relay
<binarybaron:matrix.org> The deprecated (unencrypted) payment IDs are limited to 32 bytes:
github.com/monero-oxide/monero-oxid…o-oxide/wallet/src/extra.rs#L36-L41
-
Cindy_
ah yeah that's true
-
Cindy_
what's the use case for this anyway?
-
m-relay
<binarybaron:matrix.org> Ah, so I could just use per-transaction secret (r) ? that seems a lot simpler
-
Cindy_
may i ask?
-
m-relay
<binarybaron:matrix.org> This is for our atomic swap protocol. The taker needs to transmit a certain secret (adaptor signature) to the maker at a certain point during the swap. Currently we do this over our P2P networking protocol over Tor with hidden services but they fail more often than you'd think. Taker and maker already have a shared Monero wallet (both have the view key) so my idea is that we can u<clipped message>
-
m-relay
<binarybaron:matrix.org> se it to transmit the adaptor signature "over the blockchain". It's the last step that requires an active connection and interactivity (except for the swap negotiation at the start).
-
m-relay
<binarybaron:matrix.org> It is a bit of a hack but I think it'd increase reliability substantially
-
m-relay
<binarybaron:matrix.org> (
github.com/eigenwallet/core)
-
m-relay
<rucknium:monero.social> binarybaron: Is a description of the new atomic swap protocol available?
-
m-relay
<billycipher:matrix.org> Hey guys, I’m able to see yalls messages even tho my home server is matrix?
-
Cindy_
isn't that how it works?
-
m-relay
<billycipher:matrix.org> In the description it says “Matrix .org users can not receive PM's / see messages from several home servers (including Monero .social). Please consider using a non-Matrix .org account” my bad, it’s my first time using this
-
m-relay
<ofrnxmr:xmr.mx> Old, needs update
-
plowsof
ACK
-
m-relay
<binarybaron:matrix.org> It is based on
arxiv.org/abs/2101.12332 but with a few modifications. We are a fork of the MVP developed by COMIT. Mostly a few protocol features that require good-will from the other party:
-
m-relay
<binarybaron:matrix.org> 1. Maker can allow a refund before the refund timelock expires (tx_btc_early_refund)
-
m-relay
<binarybaron:matrix.org> 2. Maker can allow taker to redeem Monero even after the punish timelock expires (cooperative_xmr_redeem)
-
m-relay
<binarybaron:matrix.org> 3. Some protocol changes to protect against DOS risks (partial_refund)
-
m-relay
<binarybaron:matrix.org> We also made a few modifications that make the whole things more resilient but those are mostly implementation details:
-
m-relay
<binarybaron:matrix.org> 1. We scan the the multi-sig wallet instead of requiring an out proof to be transmitted over the network (to reduce the need for interactivity)
-
m-relay
<binarybaron:matrix.org> 2. Built in hidden-services with Arti
-
m-relay
<binarybaron:matrix.org> 3. Replaced monero-wallet-rpc with FFI to wallet2, we also use monero-oxide for a bunch of stuff
-
m-relay
<binarybaron:matrix.org> 4. Rewrote the entire networking and peer discovery stack
-
m-relay
<binarybaron:matrix.org> A few of them (some of which haven't been implemented yet) are written down here:
github.com/eigenwallet/protocol. But mostly the code is the source of truth for the protocol spec.
-
m-relay
<binarybaron:matrix.org> at its core its the same protocol as the one implemented by farcaster
-
m-relay
<binarybaron:matrix.org> You can read through this if you want to understand how it works. The state machine is fairly high level:
github.com/eigenwallet/core/blob/master/swap/src/protocol/bob/swap.rs
-
DataHoarder
the soft-limits that exist on relay were just made hard on tx verification and inclusion post FCMP++