Monero 백서

Monero

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 19쪽 중 16쪽

enerating most random elements of a transaction for new attempts. These elements include the transaction public keys, pseudo commitment masks, range proof scalars, and MLSAG scalars. In particular, the set of ring decoys for each input should remain the same to prevent cross-comparisons revealing the true input. If possible, different true inputs should be used for different TxTangle attempts. Since this weakness is inevitable, it makes the next section’s concept more palatable. 16 Key cancellation (Section 9.2.2) should not be a problem, since it’s just a fake key and should ideally be randomly indexed within the list of transaction public keys. 17 If sending to your own subaddress, there is no need for Janus mitigation. Wallets enabled for Janus mitigation should recognize the amount spent in a TxTangle equals the amount received to your subaddress, so they don’t erroneously notify the user of a problem. 18 This is assuming transaction public keys are 1:1 with the outputs, as is apparently the case today. If it was standard for transaction public keys to be in random or sorted order within the extra field, then TxTangle and non-TxTangle transactions would be largely indistinguishable for subaddress recipients. There are niche cases where TxTangle participants are unable to include a ‘base’ key (e.g. when all their outputs are to subaddresses), or where it is clearly non-TxTangle since the subaddress recipient receives most or all of the outputs. Note that since TxTangle transactions would generally have a lot more outputs than a typical transaction, this heuristic can be used to differentiate TxTangles from normal subaddress’d transactions. CHAPTER 11. JOINT MONERO TRANSACTIONS (TXTANGLE) 122 11.2 Hosted TxTangle Truly decentralized TxTangle has some open questions. How are the timed rounds initiated and enforced? How are chatrooms created in the first place, for participants to find each other? The most straightforward way is with a TxTangle host, who generates and manages those chatrooms. Such a host would seem to defy the goal of obfuscated participation, since each individual must connect, and send it messages that could be used to correlate input/output groupings (especially if the host participates and knows the message contents). We can use a network like I2P19 to make each message received by the host appear as if from a unique individual. 11.2.1 Basic communication with a host over I2P, and other features With I2P, users make so-called ‘tunnels’ that pass heavily encrypted messages through other users’ clients before reaching their destination. From what we understand, these tunnels can transport multiple messages before being destroyed and recreated (e.g. there appears to be a 10-minute timer on tunnels). It is essential for our use case to carefully control when new tunnels are created, and which messages may come out of the same tunnel. 20 1. Applying for TxTangles : In our original n-way proposal (Section 11.1.1) participants grad- ually add their mock-members to available TxTangle rooms before they are scheduled to close. However, if a large enough volume of users try to TxTangle concurrently, there is likely to be a high rate of failure as users try to randomly put all their intended outputs in the same TxTangle ‘room’, but then the rooms get full too soon so they have to back out. It would be quite a mess. We can make an impactful optimization by telling the host how many outputs we have (e.g. giving him a list of our mock-member public keys), and letting him assemble each TxTangle’s participants. Since we still retain the bLSAG and SAG messaging protocol, the host won’t be able to identify output groupings in the final transaction. All he knows is the number of participants, and how many outputs each had. Moreover, in this scenario observers can’t monitor open TxTangle rooms to deduce information about the participants, an important privacy improvement. Note that the host’s power to pollute TxTangles isn’t significantly different from the non-host design, so this change is neutral to that attack vector. 2. Communication method: Since the host is already acting as the locus of message transport, it is simplest for him to manage TxTangle communication. During each round the host collects messages from mock-members (still at random over a communication interval), and 19 The Invisible Internet Project ( https://geti2p.net/en/). 20 In I2P there are ‘outbound’ and ‘inbound’ tunnels (see https://geti2p.net/en/docs/how/tunnel-routing). Everything received through an inbound tunnel looks like it’s from the same source even if from multiple sources, so on the surface it would appear TxTangle users don’t need to create different tunnels for all their usecases. However, if the TxTangle host makes himself the entry point for his own inbound tunnel, then he gains direct access to the outbound tunnels of TxTangle participants. CHAPTER 11. JOINT MONERO TRANSACTIONS (TXTANGLE) 123 at the end of a round there is a short data distribution phase where he sends all the collected data to each participant, with a buffer period before the next round to ensure the messages are received and given time to process. 3. Tunnels and input/output groupings : Once a TxTangle has been initiated, users should dissociate their mock-member identities from the actual outputs that get created. This means creating new tunnels for bLSAG-signed messages, and each such tunnel may only transmit messages related to a specific output (it is fine to transmit multiple such messages through the same tunnel, since obviously information about the same output comes from the same source). They should also create new tunnels for SAG-signed messages related to specific inputs. 4. Threat of host MITM attack : The host might fool a participant by pretending to be other participants, since he controls sending out the mock-member list for constructing bLSAGs and SAGs. In other words, the list he sends participant A might contain participant A’s mock-members, and all the rest are his own. Messages received by participant B are re- signed using A’s list before being retransmitted to A. Since all messages signed by A’s list belong to A, the host would have direct insight into A’s input/output groupings! We can prevent the host from acting as MITM of honest participant interactions by mod- ifying how transaction public keys are made. Participants send each other their intended transaction public keys as normal (with a bLSAG), then, much like robust key aggregation from Section 9.2.3, the actual keys that get included in transaction data (and used to make output commitment masks, etc.) are prefixed with a hash of the mock-member list. In other words,Hn(Tagg, Smock,rtG)∗rtG is thetth transaction public key. Baking the mock-member list into the transaction itself makes it very difficult to complete TxTangles without direct communication between all actual participants. 21 11.2.2 Host as a service It’s important for sustainability and continuous improvement that a TxTangle service operate for profit. 22 Rather than compromise user identities with an account-based model, the host may participate in each TxTangle as a lone output, and require the participants to fund it. When accessing the host’s ‘eepsite’/service to apply for TxTangles, users are notified of the current hosting charge, which should be paid on a per-output basis. Participants would be responsible for paying fractions of the fee and the host charge. This time, the smallest mock-member’s public key (excluding the host’s key) would take the remainder of both the fee and host charge.23 Since the host has no inputs, he has no pseudo output commitment 21 If Janus mitigation is implemented, this MITM defense should instead be done with the fake Janus base key. Each mock-member provides a random key rmockG, then the actual base key is ∑mockHn(Tagg, Smock,rmockG)∗ rmockG. 22 While a deployed TxTangle service may be for profit, the code itself could be open source. This would be important for auditing wallet software that interacts with a TxTangle service. 23 We must use mock-member keys here since the host doesn’t pay a fee, and his output index is unknown. CHAPTER 11. JOINT MONERO TRANSACTIONS (TXTANGLE) 124 to cancel his output’s commitment mask. Instead, he creates shared secrets with the other mock- members as usual, then separates his real commitment mask into randomly sized chunks for each other mock-member and divides them by the shared secrets. He publishes a list of those scalars (corresponding them with each other mock-member based on their public key), signing with his mock-member key so participants know it’s from the host. The appearance of this list signals the beginning of round 1 from Section 11.1.2 (e.g. the end of setup round ‘0’). Mock-members will multiply their host-scalar by the appropriate shared secret, and add that to their pseudo commitment mask. In this way, even the host’s output cannot be identified by any participant in the final transaction without a full coalition against him. To simplify calculations of the fee, the host may distribute the total fee to be used in the transaction at the end of round 1, since he will learn the transaction weight early. Participants can verify that amount is similar to the expected amount, and pay their fraction of it. If participants collaborate to cheat, and not provide the hosting charge, then the host may ter- minate the TxTangle at round 3. He may also terminate if messages appear in the channel that should not be there or that aren’t valid. At the end of round 5 the host completes the transaction and submits it to the network for verification, as part of his service. He includes the transaction hash in the final distribution message. 11.3 Using a trusted dealer There are some drawbacks to decentralized TxTangle. It requires all participants actively com- municate within a strict timing schedule (and find each other to begin with), and is challenging to implement. Adding a central dealer, who is responsible for collecting transaction information from each par- ticipant and obfuscating the input/output groupings, can simplify the proceedings. The cost is a higher bar of trust, since the dealer must (at minimum) learn those groupings. 24 11.3.1 Dealer-based procedure The dealer will advertise that he is available to manage TxTangles, and collects applications from potential participants (consisting of the number of intended inputs [with their types] and outputs). He may participate with his own input/output set if he wishes. After a grouping of almost 16 outputs is assembled (there should be two or more participants, and no participant may have all but one output or input), the dealer will start the first of five rounds. In each round he accumulates information from each participant, makes some decisions, and sends out messages that signify the beginning of a new round. 24 This section is inspired by the MoJoin protocol outline. CHAPTER 11. JOINT MONERO TRANSACTIONS (TXTANGLE) 125 1. To begin, the dealer generates, for each pair of participants, a random scalar, and decides which in each pair should have the positive or negative version. He uses the number and type of inputs and outputs to estimate the total fee required. He sums each participant’s scalars together, and privately sends to each their sum, along with the fee fraction they are expected to pay for, and the (randomly chosen) indices of their outputs. These messages constitute a signal to participants that a TxTangle is beginning. 2. Each participant constructs their sub-transaction as they normally would, generating sepa- rate transaction public keys for their outputs (with Janus mitigation as needed), calculating one-time output addresses and encoding output amounts, making pseudo output commit- ments that balance output commitments and the fee fraction, assembling a list of ring mem- ber offsets for use in MLSAG signatures along with the appropriate key images, and add to one of their pseudo output commitments the dealer-sent scalar (multiplied by G). They create Part A partial proofs for their outputs, and send all this information to the dealer. The dealer verifies that input and output amounts balance, and sends the complete list of Part A partial proofs to each participant. 3. Each participant computes the aggregate challenge A, and generates Part B partial proofs which they send to the dealer. The dealer collects the partial proofs and distributes them to all the other participants. 4. Each participant computes the aggregate challenge B, and generates Part C partial proofs which they send to the dealer. The dealer collects these, and applies the logarithmic inner product technique to compress them into the final proof. Assuming the proof verifies as it should, he generates a random fake Janus ‘base’ transaction public key, and sends the message to be signed in MLSAGs to each participant. 5. Each participant completes their MLSAGs and sends them to the dealer. Once he has all the pieces, he may finish constructing the transaction, and submit it to be included in the blockchain. He may also send the transaction ID to each participant so they can confirm it was published. Bibliography [1] Add intervening v5 fork for increased min block size. https://github.com/monero-project/monero/pull/ 1869 [Online; accessed 05/24/2018]. [2] CoinJoin. https://en.bitcoin.it/wiki/CoinJoin [Online; accessed 01/26/2020]. [3] cryptography - What is a cryptographic oracle? https://security.stackexchange.com/questions/10617/ what-is-a-cryptographic-oracle [Online; accessed 04/22/2018]. [4] Cryptography Tutorial. https://www.tutorialspoint.com/cryptography/index.htm [Online; accessed 05/19/2018]. [5] Cryptonote Address Tests. https://xmr.llcoins.net/addresstests.html [Online; accessed 04/19/2018]. [6] Directed acyclic graph. https://en.wikipedia.org/wiki/Directed_acyclic_graph [Online; accessed 05/27/2018]. [7] Extended Euclidean algorithm. https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm [Online; accessed 03/19/2020]. [8] hackerone #501585. https://hackerone.com/reports/501585 [Online; accessed 12/28/2019]. [9] How do payment ids work? https://monero.stackexchange.com/questions/1910/ how-do-payment-ids-work [Online; accessed 04/21/2018]. [10] Modular arithmetic. https://en.wikipedia.org/wiki/Modular_arithmetic [Online; accessed 04/16/2018]. [11] Monero 0.13.0 “Beryllium Bullet” Release. https://www.getmonero.org/2018/10/11/monero-0.13. 0-released.html [Online; accessed 10/12/2019]. [12] Monero 0.14.0 “Boron Butterfly” Release. https://web.getmonero.org/2019/02/25/monero-0.14. 0-released.html [Online; accessed 10/12/2019]. [13] Monero inception and history. https://monero.stackexchange.com/questions/475/ monero-inception-and-history-how-did-monero-get-started-what-are-its-origins-a/476#476 [On- line; accessed 05/23/2018]. [14] Monero v0.9.3 - Hydrogen Helix - released! https://www.reddit.com/r/Monero/comments/4bgw4z/monero_ v093_hydrogen_helix_released_urgent_and/ [Online; accessed 05/24/2018]. [15] Randomx. https://www.monerooutreach.org/stories/RandomX.php [Online; accessed 10/12/2019]. 126 BIBLIOGRAPHY 127 [16] Ring CT; Moneropedia. https://getmonero.org/resources/moneropedia/ringCT.html [Online; accessed 06/05/2018]. [17] Tail emission. https://getmonero.org/resources/moneropedia/tail-emission.html [Online; accessed 05/24/2018]. [18] Trust the math? An Update. http://www.math.columbia.edu/~woit/wordpress/?p=6522 [Online; accessed 04/04/2018]. [19] Useful for learning about Monero coin emission. https://www.reddit.com/r/Monero/comments/512kwh/ useful_for_learning_about_monero_coin_emission/d78tpgi/ [Online; accessed 05/25/2018]. [20] What is a premine? https://www.cryptocompare.com/coins/guides/what-is-a-premine/ [Online; accessed 06/11/2018]. [21] What is the block maturity value seen in many pool interfaces? https://monero.stackexchange.com/ questions/2251/what-is-the-block-maturity-value-seen-in-many-pool-interfaces [Online; accessed 05/26/2018]. [22] XOR – from Wolfram Mathworld. http://mathworld.wolfram.com/XOR.html [Online; accessed 04/21/2018]. [23] Federal Information Processing Standards Publication (FIPS 197). Advanced Encryption Standard (AES), 2001. http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf [Online; access 03/04/2020]. [24] The .xz File Format, August 2009. https://tukaani.org/xz/xz-file-format.txt section 1.2 [Online; ac- cessed 04/02/2020]. [25] Fungible, July 2014. https://wiki.mises.org/wiki/Fungible [Online; accessed 03/31/2020]. [26] Analysis of Bitcoin Transaction Size Trends, October 2015. https://tradeblock.com/blog/ analysis-of-bitcoin-transaction-size-trends [Online; accessed 01/17/2020]. [27] NIST Releases SHA-3 Cryptographic Hash Standard, August 2015. https://www.nist.gov/news-events/ news/2015/08/nist-releases-sha-3-cryptographic-hash-standard [Online; accessed 06/02/2018]. [28] Base58Check encoding, November 2017. https://en.bitcoin.it/wiki/Base58Check_encoding [Online; ac- cessed 02/20/2020]. [29] Monero cryptonight variants, and add one for v7, April 2018. https://github.com/monero-project/monero/ pull/3253 [Online; accessed 05/23/2018]. [30] Payment Reversal Explained + 10 Ways to Avoid Them, October 2018. https://tidalcommerce.com/learn/ payment-reversal [Online; accessed 02/11/2020]. [31] Diffie–Hellman problem, December 2019. https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_ problem [Online; accessed 03/31/2020]. [32] Kurt M. Alonso and Jordi Herrera Joancomart´ ı. Monero - Privacy in the Blockchain. Cryptology ePrint Archive, Report 2018/535, 2018. https://eprint.iacr.org/2018/535. [33] Kurt M. Alonso and Koe. Zero to Monero - First Edition, June 2018. https://web.getmonero.org/library/ Zero-to-Monero-1-0-0.pdf [Online; accessed 01/15/2020]. [34] Kristov Atlas. Kristov Atlas Security Advisory 20140609-0, June 2014. https://www.coinjoinsudoku.com/ advisory/ [Online; accessed 01/26/2020]. [35] Adam Back. Ring signature efficiency. BitcoinTalk, 2015. https://bitcointalk.org/index.php?topic= 972541.msg10619684#msg10619684 [Online; accessed 04/04/2018]. [36] Daniel J. Bernstein. Curve25519: New Diffie-Hellman Speed Records. In Moti Yung, Yevgeniy Dodis, Agge- los Kiayias, and Tal Malkin, editors, Public Key Cryptography - PKC 2006 , pages 207–228, Berlin, Heidel- berg, 2006. Springer Berlin Heidelberg. https://cr.yp.to/ecdh/curve25519-20060209.pdf [Online; accessed 03/04/2020]. [37] Daniel J. Bernstein. ChaCha, a variant of Salsa20, January 2008. https://cr.yp.to/chacha/ chacha-20080120.pdf [Online; accessed 03/04/2020]. BIBLIOGRAPHY 128 [38] Daniel J. Bernstein, Peter Birkner, Marc Joye, Tanja Lange, and Christiane Peters. Twisted Edwards Curves, pages 389–405. Springer Berlin Heidelberg, Berlin, Heidelberg, 2008. https://eprint.iacr.org/2008/013. pdf [Online; accessed 02/13/2020]. [39] Daniel J. Bernstein, Niels Duif, Tanja Lange, Peter Schwabe, and Bo-Yin Yang. High-speed high-security signatures. Journal of Cryptographic Engineering , 2(2):77–89, Sep 2012. https://ed25519.cr.yp.to/ ed25519-20110705.pdf [Online; accessed 03/04/2020]. [40] Daniel J. Bernstein and Tanja Lange. Faster Addition and Doubling on Elliptic Curves , pages 29–50. Springer Berlin Heidelberg, Berlin, Heidelberg, 2007. https://eprint.iacr.org/2007/286.pdf [Online; accessed 03/04/2020]. [41] Karina Bjørnholdt. Dansk politi har knækket bitcoin-koden, May 2017. http://www.dansk-politi.dk/ artikler/2017/maj/dansk-politi-har-knaekket-bitcoin-koden [Online; accessed 04/04/2018]. [42] Dan Boneh and Victor Shoup. A Graduate Course in Applied Cryptography. https://crypto.stanford. edu/~dabo/cryptobook/ [Online; accessed 12/30/2019]. [43] Benedikt B¨ unz, Jonathan Bootle, Dan Boneh, Andrew Poelstra, Pieter Wuille, and Greg Maxwell. Bul- letproofs: Short Proofs for Confidential Transactions and More. https://eprint.iacr.org/2017/1066.pdf [Online; accessed 10/28/2018]. [44] Francisco Caba˜ nas. Francisco Caban
프로젝트로 돌아가기