Closed SarangNoether closed 4 years ago
Updated the encrypted unlock time research proposal with sarang's timing data: https://github.com/insight-decentralized-consensus-lab/monero_encrypted_unlock_time
Also, experimenting with a new application for surae's seashell avatars project. Essentially, each transaction fingerprint (behavior or metadata) is compared against the behavior of the core software and assigned a 0
if matching or 1
if deviating. Looping over fingerprints creates a fingerprint string that is ingested to produce a visual hash. These could be added to a research blockchain explorer so that it's easier to tell at a glance which transactions must have been generated by custom software.
For example, the top image shows the avatar for transactions that are from (or mimic) the core GUI/CLI, which has fingerprint ...0000
and the bottom image shows the avatar for transactions that included a juvenile ring member and thus produce a different signature (...0010
). Note that this particular issue has since been fixed.
[2020-05-20 13:00:07] <sarang> GREETINGS
[2020-05-20 13:00:08] <sarang> hello
[2020-05-20 13:00:53] <sgp_> hello
[2020-05-20 13:01:01] <dEBRUYNE> hi
[2020-05-20 13:01:35] — sarang will wait a bit for others to arrive
[2020-05-20 13:02:06] <xmrmatterbridge> <telapongo23> Hi guys, just eavesdropping here :-D
[2020-05-20 13:02:14] — Isthmus waves
[2020-05-20 13:04:07] <hyc> hello
[2020-05-20 13:04:27] <sarang> Let's move to ROUNDTABLE, where anyone is welcome to share research topics of interest
[2020-05-20 13:04:42] <sarang> Who wishes to share something? (I saw Isthmus just posted to the agenda issue)
[2020-05-20 13:05:54] <ArticMine> Hi
[2020-05-20 13:06:15] <sarang> I suppose that I can share a few items
[2020-05-20 13:06:25] <sarang> First, I'll review some Arcturus numbers, some of which were presented last week
[2020-05-20 13:06:43] <sarang> Recall that Arcturus is a modification of Triptych that needs only one proof per transaction, instead of one proof per spend
[2020-05-20 13:06:45] <h4sh3d[m]> Hi
[2020-05-20 13:06:51] <sarang> (making it similar to RCT3's update and Omniring)
[2020-05-20 13:07:01] <sarang> I'll link some plots...
[2020-05-20 13:07:24] <sarang> Size data for 1 input: https://usercontent.irccloud-cdn.com/file/DYMoX7jy/size-1.png
[2020-05-20 13:07:36] <sarang> Size data for 2 inputs: https://usercontent.irccloud-cdn.com/file/7Hw5Wnsv/size-2.png
[2020-05-20 13:07:50] <sarang> Size data for 16 inputs: https://usercontent.irccloud-cdn.com/file/QzJ03VBI/size-16.png
[2020-05-20 13:08:07] <sarang> You can see the improvement as the number of inputs increases
[2020-05-20 13:08:35] <sarang> From last week, I'll re-post the timing data...
[2020-05-20 13:08:58] <sarang> Verification timing for 1-input/2-output transaction: https://usercontent.irccloud-cdn.com/file/airMJ4pC/timing-1-2.png
[2020-05-20 13:09:19] <sarang> Verification timing for 2-input/2-output transaction: https://usercontent.irccloud-cdn.com/file/iZdBR8xe/timing-2-2.png
[2020-05-20 13:10:52] <sarang> Related to this, I've been working on the Arcturus transaction security model, which uses an Omniring-style balance game/definition and applies it to the combination of Arcturus proofs and Bulletproof range proofs
[2020-05-20 13:11:31] <sarang> I'll post that update when I've finished typesetting it and reorganizing the preprint on IACR
[2020-05-20 13:11:40] <sarang> (but it's still in progress!)
[2020-05-20 13:11:53] <sarang> Any questions for me on this material?
[2020-05-20 13:12:36] <hyc> Arcturus seems to blow away the other sig mechs
[2020-05-20 13:12:45] <fort3hlulz> What's the main drawback(s) of Arcturus compared to other sig mechs?
[2020-05-20 13:12:56] <fort3hlulz> Seems like a clear win, but maybe there is something I'm missing.
[2020-05-20 13:13:03] <sarang> The RCT3 update beats it for overall size (when looking at the whole chain), but that does very poorly in verification due to input padding
[2020-05-20 13:13:18] <sarang> Arcturus relies on a nonstandard cryptographic hardness assumption
[2020-05-20 13:13:58] <hyc> what are the implications of being nonstandard? needs further proofs?
[2020-05-20 13:14:01] <sarang> You can see the full-chain comparative estimates on page 12 of the Arcturus IACR preprint: https://eprint.iacr.org/2020/312.pdf
[2020-05-20 13:14:28] <sarang> note that in Figure 3, RCT3 wins, but in Figure 4, it loses
[2020-05-20 13:14:35] <sarang> (size vs time)
[2020-05-20 13:15:12] <sarang> It would need external study to see if it can either be reduced to more standard assumption, broken, or considered/tested enough to be considered reasonable
[2020-05-20 13:15:40] <sarang> Triptych does not have this limitation, and relies on only standard assumptions
[2020-05-20 13:16:20] <sarang> I'm submitting it to conference proceedings in the hope that it will get some quality review
[2020-05-20 13:16:35] <sarang> so I want to update the security model prior to that deadline at the end of this month
[2020-05-20 13:17:07] <hyc> the win on time is huge
[2020-05-20 13:17:23] <sarang> FWIW both Triptych and Arcturus are very similar for verification time
[2020-05-20 13:17:38] <sarang> that's because of how generators are batched similarly in both approaches
[2020-05-20 13:18:01] <hyc> triptych appears to be a constant factor larger in size
[2020-05-20 13:18:16] <hyc> well, nearly.
[2020-05-20 13:18:29] <sarang> It requires multiple proofs, and has some extra elements included (e.g. commitment offsets)
[2020-05-20 13:18:40] <sarang> Arcturus is a single proof, and does not require any commitment offsets
[2020-05-20 13:18:53] <sarang> (it does have proof elements that scale with the number of spends, but does so pretty darn well)
[2020-05-20 13:19:25] <hyc> at least all of the size plots are linear, no silly exponential growth
[2020-05-20 13:20:05] <hyc> probably an obvious statement but I would choose to optimize time
[2020-05-20 13:20:25] <sarang> In that case, Triptych and Arcturus are essentially comparable
[2020-05-20 13:20:41] <sarang> with small variations relating to how balances are checked
[2020-05-20 13:20:56] <sarang> and these variations disappear at higher ring sizes anyway
[2020-05-20 13:21:17] <hyc> and Triptych requires no nonstandard assumptions
[2020-05-20 13:21:26] <sarang> Nope
[2020-05-20 13:21:34] <Isthmus> "with small variations relating to how balances are checked" < ah thanks, I was wondering about this
[2020-05-20 13:21:40] <sarang> I could probably add the Arcturus-style balance security definition to Triptych as well
[2020-05-20 13:22:00] <sarang> Isthmus: balance checks in MLSAG/CLSAG/Triptych are identical... sum the commitment offsets and outputs to zero
[2020-05-20 13:22:08] <sarang> In Arcturus it's built in to the proving system directly
[2020-05-20 13:23:07] <sarang> At high ring sizes, the offset-based balance check is overshadowed by the large number of group operations required for the rest of the verification process
[2020-05-20 13:23:13] <hyc> this is some great stuff. Arcturus still grows in size more slowly than Triptych,
[2020-05-20 13:23:16] <sarang> At low ring sizes, they're more comparable and the difference is notable
[2020-05-20 13:23:24] <sarang> Yeah
[2020-05-20 13:23:37] <sarang> Its per-spend elements scale better
[2020-05-20 13:24:02] <sarang> What's nifty is they both use the same underlying Groth-style cryptographic plumbing, but in different ways
[2020-05-20 13:24:10] <sarang> (this is the same plumbing that Lelantus uses)
[2020-05-20 13:24:49] <sarang> Anyway, I've taken up enough of the roundtable time for one day!
[2020-05-20 13:24:55] <sarang> Does anyone else have research they wish to share?
[2020-05-20 13:25:18] <Isthmus> TheCharlatan updated the encrypted unlock time research proposal with sarang's timing data: https://github.com/insight-decentralized-consensus-lab/monero_encrypted_unlock_time
[2020-05-20 13:25:50] → kic0 joined (~kico@gateway/tor-sasl/kico)
[2020-05-20 13:25:59] <sarang> s/Tryptich/Triptych/
[2020-05-20 13:26:10] <Isthmus> (based on feedback at previous MRL meeting, and input from sarang)
[2020-05-20 13:26:30] <Isthmus> Also, experimenting with a new application for surae's seashell avatars project. Essentially, each transaction fingerprint (behavior or metadata) is compared against the behavior of the core software and assigned a 0 if matching or 1 if deviating.
[2020-05-20 13:26:32] <Isthmus> Looping over fingerprints creates a fingerprint string that is ingested to produce a visual hash. These could be added to a research blockchain explorer so that it's easier to tell at a glance which transactions must have been generated by custom software.
[2020-05-20 13:26:36] <sarang> I'm glad the 3-CLSAG and 3-Triptych data was useful!
[2020-05-20 13:26:54] <Isthmus> For example, the first image shows the avatar for transactions that are from (or mimic) the core GUI/CLI, which has fingerprint ...0000
[2020-05-20 13:26:56] <Isthmus> https://usercontent.irccloud-cdn.com/file/vjCauM0y/image.png
[2020-05-20 13:27:06] <Isthmus> The secnd image shows the avatar for transactions that included a juvenile ring member and thus produce a different signature (...0010)
[2020-05-20 13:27:10] <Isthmus> the bottom image shows the avatar for transactions that included a juvenile ring member and thus produce a different signature (...0010)
[2020-05-20 13:27:14] <Isthmus> https://usercontent.irccloud-cdn.com/file/Lzt9vfyJ/image.png
[2020-05-20 13:27:35] <Isthmus> (note that this particular issue was fixed in recent update)
[2020-05-20 13:28:10] <Isthmus> Anyways, still very early toy/prototype
[2020-05-20 13:28:28] <sarang> So the hash inputs are individually set bits? 1 = "basically the same as standard", 0 = "different enough"
[2020-05-20 13:28:43] ⇐ kico quit (~kico@gateway/tor-sasl/kico): Ping timeout: 240 seconds
[2020-05-20 13:28:59] <sarang> and this is done over different characteristics to build the input string?
[2020-05-20 13:29:38] <Isthmus> Yep
[2020-05-20 13:30:07] — Isthmus pauses to clarify wording
[2020-05-20 13:30:23] <Isthmus> 0 = "the core wallet would construct a transaction in this way"
[2020-05-20 13:30:30] <Isthmus> 1 = "the core wallet would never construct a transaction this way"
[2020-05-20 13:30:33] ⇐ TheoStorm quit (~TheoStorm@host-p8vu8h.cbn1.zeelandnet.nl): Quit: Leaving
[2020-05-20 13:30:42] <Isthmus> e.g. the juvenile spend example
[2020-05-20 13:31:02] <sarang> got it
[2020-05-20 13:32:44] <Isthmus> Will spice it up a bit though, surae comments "The skin of the shells could be fractals dependent on the hash input visualized in 2d with *color schemes* selected from families of pleasing color triples based on hash input..."
[2020-05-20 13:33:11] <UkoeHB_> What's a juvenile ring member,
[2020-05-20 13:33:12] <UkoeHB_> ?
[2020-05-20 13:33:55] <Isthmus> Any transaction that includes a ring that includes a ring member less than 10 blocks old (based on the time it was mined)
[2020-05-20 13:33:56] <Isthmus> https://github.com/monero-project/monero/issues/5712
[2020-05-20 13:34:16] <UkoeHB_> ah
[2020-05-20 13:34:26] <Isthmus> The core wallet has observed a 10-block lock time, so they must have been generated by custom software
[2020-05-20 13:34:32] <Isthmus> But now it's a consensus rule
[2020-05-20 13:35:22] <sarang> To what extent does the visual fingerprint identify the extent to which the transaction is nonstandard?
[2020-05-20 13:35:44] <sarang> e.g. can you look at a fingerprint and see "oof, this transaction is _very_ nonstandard!"
[2020-05-20 13:36:02] <sarang> (obviously the Hamming weight of the input will tell you this by inspection)
[2020-05-20 13:36:42] <Isthmus> No, since the visual hash function is appropriately unstable
[2020-05-20 13:37:38] <UkoeHB_> You could look at the fingerprint string itself to see how different, since more 1s = more different
[2020-05-20 13:37:49] <sarang> That's what I mean by the Hamming weight
[2020-05-20 13:38:08] <Isthmus> aaaactually if the hamming weigh was used to select the colorscale......
[2020-05-20 13:38:21] <Isthmus> Then it could be intuitively accomplished
[2020-05-20 13:38:26] <Isthmus> if colorscale(0) is greenish
[2020-05-20 13:38:28] <sarang> At that point, what's the usefulness of the fingerprint shape?
[2020-05-20 13:38:36] <sgp_> going all the way back to the unlock time proposal, I still think the tradeoffs aren't worth it
[2020-05-20 13:39:09] <Isthmus> Because 0010 and 0001 are different
[2020-05-20 13:39:26] <sarang> True
[2020-05-20 13:39:35] <sarang> So it really only tells you if the actual strings are different
[2020-05-20 13:39:48] <sarang> I guess I figured the "more useful" component in general might be the Hamming weight
[2020-05-20 13:39:55] <sarang> since one goal is to minimize it
[2020-05-20 13:39:59] <Isthmus> It depends if 'degree of wrongness' is important
[2020-05-20 13:40:06] <UkoeHB_> I agree sgp_ it feels quite expensive
[2020-05-20 13:40:24] <Isthmus> From my perspective, 0010, 0001, and 0011 are 3 distinct signatures
[2020-05-20 13:40:36] <Isthmus> Even though 0011 is more worse :- P
[2020-05-20 13:43:13] <UkoeHB_> ArticMine: how is it going with your penalty/fee proposal?
[2020-05-20 13:45:12] <sarang> While we wait to see if ArticMine is around, were there any other questions on the material Isthmus presented?
[2020-05-20 13:45:35] <sgp_> none about the presented material, but I eventually have a question for Isthmus about the coinbase vs non-coinbase spend distributions
[2020-05-20 13:45:52] <Isthmus> Hey @sgp_ what do you have in mind? :- )
[2020-05-20 13:45:57] <sarang> I would also be interested to see that for BTC
[2020-05-20 13:46:02] <sgp_> heelo Isthmus :)
[2020-05-20 13:46:14] <sgp_> s/heelo/hello
[2020-05-20 13:46:14] <monerobux> sgp_ meant to say: hello Isthmus :)
[2020-05-20 13:46:42] <sgp_> I really want to segregate coinbase outputs form other outputs
[2020-05-20 13:47:13] <sgp_> to do this, I ideally would like to know what the independent spend distributions are for these two categories of outputs
[2020-05-20 13:47:24] * kic0 → kico
[2020-05-20 13:47:24] <sgp_> my suspicion is that coinbase outputs are spent faster on average
[2020-05-20 13:48:28] <Isthmus> We can ascertain this by subtracting the reference distribution from the observed ensemble distribution
[2020-05-20 13:48:32] <Isthmus> And split it by type:
[2020-05-20 13:48:59] <Isthmus> distribution(coinbase inclusion in rings) - reference_distribution
[2020-05-20 13:49:02] <Isthmus> distribution(non-coinbase inclusion in rings) - reference_distribution
[2020-05-20 13:49:26] <Isthmus> I think @binaryFate was going to present this type of analysis at Konferenco, though I don't know if was split up by output type (non/coinbaase)
[2020-05-20 13:49:28] <sarang> Having a direct measurement from something like BTC would be very helpful regardless
[2020-05-20 13:49:52] <sarang> ideally to follow the Miller et al. idea of comparing known-estimated Monero behavior to BTC
[2020-05-20 13:50:19] ⇐ cornfeedhobo quit (~cornfeedh@unaffiliated/cornfeed): Ping timeout: 260 seconds
[2020-05-20 13:50:24] <Isthmus> I'll see about extracting true BTC spend times from Google's BigQuery dataset
[2020-05-20 13:50:31] <sarang> That'd be great
[2020-05-20 13:50:32] <Isthmus> There's probably some way to do it in a clever SQL one-liner
[2020-05-20 13:50:41] <Isthmus> But I can do it in 20 lines!
[2020-05-20 13:50:42] <Isthmus> :- P
[2020-05-20 13:50:54] <sarang> Separately, it would also be interesting to see how/if overall BTC spend times have changed since Miller et al.'s paper
[2020-05-20 13:51:07] <sarang> They used two different large groups of blocks
[2020-05-20 13:51:08] <sgp_> we need to have some selection for the coinbase-only rings in any case, though if the results show that the distributions are different, then that's even more reason to segregate
[2020-05-20 13:51:32] <Isthmus> "if the results show that the distributions are different, then that's even more reason to segregate" << this
[2020-05-20 13:51:43] ⇐ DeanWeen quit (~dean@gateway/tor-sasl/deanguss): Ping timeout: 240 seconds
[2020-05-20 13:52:01] <sgp_> note I still support coinbase-only rings even if the distributions are exactly the same :p
[2020-05-20 13:52:17] <sarang> In the interest of time, were there any other topics to be brought up before moving on?
[2020-05-20 13:52:38] <sgp_> that's all fro me, thanks Isthmus
[2020-05-20 13:52:42] <sgp_> *from
[2020-05-20 13:53:03] <UkoeHB_> Any new comments on the Tx Supplement proposal?
[2020-05-20 13:54:10] <sarang> Restructuring for uniformity and Janus mitigation seems useful and reasonable to me, FWIW
[2020-05-20 13:54:17] <sgp_> agreed
[2020-05-20 13:54:20] <sgp_> costs are small
[2020-05-20 13:54:31] <sarang> Especially with the savings from CLSAG
[2020-05-20 13:54:36] → cornfeedhobo joined (~cornfeedh@unaffiliated/cornfeed)
[2020-05-20 13:54:57] <Isthmus> I'm in favor. Uniformity is the whole point.
[2020-05-20 13:55:20] <ArticMine> UkoeHB_ It is almost done. I held it back to give ti ore thought especially with COVID-19 which is a perfect scenario for the issue
[2020-05-20 13:55:40] <ArticMine> I should have this in the next two weeks
[2020-05-20 13:55:49] <UkoeHB_> Cool thanks :)
[2020-05-20 13:56:52] <sarang> OK, with the last few minutes of the hour, let's get to ACTION ITEMS
[2020-05-20 13:57:10] <sarang> I would like to finish the update of the Arcturus security model, to get the updated preprint submitted for review
[2020-05-20 13:57:25] <sarang> And will be discussing the CLSAG audit with Teserakt
[2020-05-20 13:57:33] <sarang> Anyone else?
[2020-05-20 13:57:45] <UkoeHB_> In the tx supplement proposal I recommend moving to sorted TLV in the extra field. However, it's not completely solved. One option is to retain 'restricted tags' for core features (e.g. encrypted payment IDs, miner nonce). Are restricted tags worthwhile or too hands-on?
[2020-05-20 13:58:34] ⇐ iDunk quit (~iDunk@unaffiliated/idunk): Ping timeout: 240 seconds
[2020-05-20 13:59:11] <sarang> Well, certain tags would be required by consensus... can you refresh us on your definitions here?
[2020-05-20 13:59:48] <UkoeHB_> Moving to restricted tags might force more uniformity out of pool implementations, since there would be a fixed miner nonce size. However, they could just move their unique nonces to unrestricted tags.
[2020-05-20 14:00:20] <UkoeHB_> Only encrypted payment IDs would remain in the extra field after the update
[2020-05-20 14:00:30] <UkoeHB_> And miner extra nonce
[2020-05-20 14:00:48] <UkoeHB_> So not much consensus left
[2020-05-20 14:01:02] <sarang> Oh, TLV for _extra only_... of course
[2020-05-20 14:01:03] <sarang> nvm
[2020-05-20 14:01:20] <sarang> I was thinking about fields in general, which is not correct
[2020-05-20 14:02:52] <UkoeHB_> With a restricted miner nonce we (probably I) could release a miner nonce guideline for pool implementer to reference
[2020-05-20 14:03:37] <UkoeHB_> If it's easy enough then hopefully most pools and solominers would be indistinguishable on-chain
[2020-05-20 14:04:02] <sarang> OK, any other questions, topics, or action items before we adjourn?
[2020-05-20 14:04:11] <h4sh3d[m]> I posted a proposal for the atomic swap, feedback are welcome
[2020-05-20 14:04:18] <sarang> Link?
[2020-05-20 14:04:35] <h4sh3d[m]> https://repo.getmonero.org/monero-project/ccs-proposals/-/merge_requests/145
[2020-05-20 14:04:38] <sarang> thanks
[2020-05-20 14:05:42] <sarang> All right, let's adjourn in the interest of time (and for log posting purposes). Thanks to everyone for attending!
Join in for the weekly Monero Research Lab meeting.
When: Wednesday, 20 May 2020 @ 17:00 UTC Where: #monero-research-lab (freenode/matrix)
Agenda
Greetings
Roundtable
Questions
Action items