Monero 백서

Monero

원문

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

e moderator completes the signature, and submits the transaction. ii. Party B accepts A. Party B creates a partial transaction for the moderator’s initialized verdict transaction, and sends it to the moderator. This step can be performed before 19 Our dispute resolution design assumes actors are in good faith. People who are uncooperative, and for example don’t initiate or sign transactions that don’t favor themselves, will no doubt make the process much more tedious for everyone. CHAPTER 10. MONERO IN AN ESCROWED MARKETPLACE 115 the verdict is finalized, in which case Party B would make partial transactions for both potential verdicts. B. The moderator partially signs that partial transaction, and sends it to Party B. C. Party B finishes signing the transaction, and submits it to the network. He sends the transaction hash to the moderator. (d) Moderator closes out the dispute : The moderator summarizes the dispute and its reso- lution, and sends their report to the buyer and vendor. There are four key design optimizations installed. Preselected moderators By choosing the moderators ahead of time, vendors can create a shared secret with each of them for each of their products and publish its public key with the product information. 20 This way buyers can construct the complete merged multisig address in one step, as soon as they decide to purchase something, harmonizing with the requirement for ‘offline selling’. Preselecting multiple moderators allows buyers to choose the one they trust more. Buyers may also, if they don’t trust a vendor’s accepted moderators, cooperate with an online moderator of their choosing to make a multisig address with the vendor’s product base key. After receiving a purchase order, the vendor may accept that new moderator or decline the sale. 21 We expect the mutual desire of buyers and vendors for good moderators to, over time, create a hierarchy of moderators organized by the quality and fairness of the service they provide. Lower quality moderators or those with less of a reputation would likely earn less money or service fewer or less significant transactions. 22 Subaddresses and product IDs Vendors create a new base key for each product line/ID, and those keys are used to construct 2-of-3 multisig addresses.23 When vendors fulfill a purchase order they create a unique subaddress for receipt of funds, which can be used to match purchase orders with payments received. 20 Importantly, these multisig addresses are still resistant to key aggregation tests since the buyer’s shared secrets are unknown to observers. 21 For expediency, an escrow service could be ‘always online’, and instead of using preselected moderators all 2-of-3 multisig addresses are actively constructed with that service when a purchase order is made. Another possibility is using nested multisig (Section 9.7), where the preselected moderator is actually a 1-of-N multisig group. That way whenever a dispute arises any moderator from that group who happens to be available can step in. It would likely require substantial development effort to implement. 22 It is not clear to us the best, or most likely, funding method for moderators. Perhaps they would get paid a flat or percentage fee of each moderated transaction or transaction where they are added as a moderator (and then if the fee wasn’t provided in the original partial transactions, refuse to cooperate in a dispute), or users and/or vendors and/or marketplace platforms would contract with them. 23 This base key is also used for 1-of-2 multisig purchasing. We feel it is important not to expose the private spend key in the communication channel, so using a buyer-vendor shared secret makes a lot of sense. CHAPTER 10. MONERO IN AN ESCROWED MARKETPLACE 116 The requirement for ‘purchase order-based payments’ is met efficiently here, especially since funds directed to different subaddresses are trivially accessible from the same wallet (recall Section 4.3). Anticipatory partial transactions Multisig transactions take multiple rounds, so we begin making them as soon as possible. For user convenience, partial transactions that are only rarely used (e.g. refund transactions) get made early, so they are immediately available for signing if the need arises. Conditional moderator access For the sake of both efficiency and privacy, moderators only need access to the details of a trade when settling disputes. To accomplish this, we make the multisig private view key a hash of the buyer-vendor shared secret private key kv,grppurchase−order =Hn(Tmv,ksh,2x3AB ) where Tmv is the mar- ketplace view key domain separator and A and B correspond with vendor and buyer, andksh,2x3AB = Hn(kbaseA ∗kbaseB G). We extend what it can ‘view’ to the buyer-vendor communication transcript. In other words, the communication encryption key is kcepurchase−order =Hn(Tme,kv,grppurchase−order) (Tme is the marketplace encryption key domain separator). 24,25 Moderators gain access to the buyer-vendor communications, and the ability to authorize pay- ments, only when one of the original parties releases the view key to them. 26 Moreover, vendors can verify the marketplace host (who may also be the only moderator available, depending on how this concept is implemented) is not MITM (‘man in the middle’) of their conversations with customers (i.e. pretending to be the buyer or vendor) by checking that the base keys they publish for each product match what gets displayed. Since the buyer’s base key, which gets used to create the multisig address, is also part of the encryption key, a malicious host would have a hard time orchestrating a MITM attack. 24 Separating the view key and encryption key allows handing out just view rights to the communication log without view rights to the multisig address’s transaction history. 25 This method is also used for 1-of-2 multisig addresses. 26 It is important for moderators to verify the communication log they receive hasn’t been tampered with. One way might be for each cosigner to include a signed hash of the current message log whenever they send out a new message. Moderators can look at the back-and-forth, and series of hashed logs, to identify discrepancies. It would also help cosigners identify messages that failed to transmit, and alternatively create evidence that particular signers did in fact receive certain messages. CHAPTER 11 Joint Monero Transactions (TxTangle) There are a number of unavoidable transaction graph heuristics created by the nature of dif- ferent entities and scenarios. In particular, the behavior of miners, pools (Section 5.1 of [93]), escrowed marketplaces, and exchanges have clear patterns open to analysis even within Monero’s ring signature-based protocol. We describe here TxTangle, analogous to Bitcoin’s CoinJoin [2], one method to confuse those heuristics.1 In essence, several transactions are squashed into one transaction, making the behavior patterns of each participant blend together. To accomplish that obfuscation, it must be unreasonably difficult for observers to use the infor- mation contained in a joint transaction to group inputs and outputs, and associate them with individual participants, nor know how many participants there actually were.2 Moreover, even the participants themselves should not be aware of the number of participants, or be able to group the inputs and outputs of other participants unless they control all but one participant’s grouping. 3 Finally, it should be possible to construct joint transactions without relying on a central authority [58]. Fortunately, all these requirements can be achieved in Monero. 1 This chapter constitutes the proposal for a joint transaction protocol. No such protocol has been implemented as of this writing. A previous proposal, named MoJoin and created by pseudonymous co-author Monero Research Lab (MRL) researcher Sarang Noether, required a trusted dealer to function. Such a dealer seems to conflict with the Monero project’s basic commitment to privacy and fungibility, and hence MoJoin was not pursued further. 2 Since in Bitcoin amounts are clearly visible, it is often possible to group CoinJoin inputs and outputs based on amount sums. [34] 3 Maliciously polluting joint transactions is a potential attack on this method, first identified for CoinJoin. [91] 117 CHAPTER 11. JOINT MONERO TRANSACTIONS (TXTANGLE) 118 11.1 Building joint transactions In a normal transaction, inputs and outputs are tied together using the proof that amounts balance. From Section 6.2.1, the sum of pseudo output commitments equals the sum of output commitments (plus the fee commitment). ∑ j C′aj − (∑ t Cbt +fH ) = 0 A trivial joint transaction could take all the content of multiple transactions, and stick them in one. MLSAG messages would sign all the sub-transactions’ data, and amount balancing would quite obviously work (0 + 0 + 0 = 0).4 However, input and output groupings could just as trivially be identified based on testing if input/output subsets have balancing amounts. 5 We can easily get around this by computing shared secrets between each pair of participants, then adding these offsets to their pseudo output commitments’ masks (Section 5.4). In each pair, one participant adds the shared secret to one of his pseudo output commitments, and the other participant subtracts it from one of his pseudo commitments. When summed together, the secrets cancel out, and since each pair of participants has a shared secret the amount balance only appears after all commitments are combined. 6 Shared secrets may hide input/output groupings in the immediate sense, but participants must learn about all the inputs and outputs somehow, and the easiest way is if they each communicate their individual input/output groupings. Clearly this violates the initial premise, and in any case implies participants know the number of participants. 11.1.1 n-way communication channel The maximum number of participants to a TxTangle is either the number of outputs or inputs (whichever is lower). We model that by each real participant pretending to be a different person for each output he is sending. This is primarily for the purpose of setting up a group communication channel with other would-be participants, without revealing how many participants there are. Imaginen (2≤n≤ 16, although at least 3 is recommended) 7 supposedly unrelated people gather at apparently random intervals in a chatroom, scheduled to open at time t0 and close at t1 (only 16 people can be in a chatroom at once, and the chatroom has conditions like fee priority, base fee per byte [to simplify consensus around the current median and block reward], and range of acceptable transaction types since e.g. currently transactions from the beginning of Monero can’t be directly spent in a RingCT transaction [132]). At t1 all mock-members signal desire to proceed 4 Since Bulletproofs-style range proofs are actually aggregated into one (Section 5.5), participants would have to collaborate to some extent even in the trivial case. 5 Participants could try to divide up the fee in a fancy manner to confuse observers, but it would fail in the face of brute force since fees are not that large (around 32 bits or less). 6 We offset the pseudo output commitments instead of output commitments since output commitment masks are constructed from the recipient’s address (Section 5.3). 7 Currently, a transaction may have at most 16 outputs. CHAPTER 11. JOINT MONERO TRANSACTIONS (TXTANGLE) 119 by publishing a public key, and the room is converted into an n-way communication channel by constructing a shared secret amongst all the mock-members. 8 This shared secret is used to encrypt message contents, while mock-members sign input-related messages using SAG signatures (Section 3.3) so it’s never clear who sent a given message, and output-related messages with a bLSAG (Section 3.4) on the set of mock-member public keys so actual outputs are dissociated from mock-members.9 11.1.2 Message rounds to construct a joint transaction After the channel is set up, TxTangle transactions can be constructed in five rounds of communica- tion, where the next round may only begin after the previous is finished, and each round is given a timed communication interval within which messages should be randomly published. These intervals are intended to prevent message clusters that would reveal input/output groupings. 1. Each mock-member privately generates a random scalar for each intended output, and signs them with bLSAGs. A sorted list of these scalars is used to determine output indices (recall Section 4.2.1; the smallest scalar gets index t = 0). 10 They publish those bLSAGs, and also SAGs which sign the transaction version numbers of intended inputs. After this round participants can calculate the transaction weight based on number of inputs and outputs, and accurately estimate the fee required. 11,12,13 2. Each mock-member uses the list of public keys to construct a shared secret with each other member for offsetting their pseudo output commitments, and decides who will add or subtract based on each pair’s smaller public key. 14 Each mock-member must pay for 1/nth of the fee estimate (using integer division). The mock-member with lowest output index is given the responsibility of paying for the remainder after dividing (it will be a truly infinitesimal amount, but must be taken into account to prevent fingerprinting TxTangle transactions). They privately generate transaction public keys for each of their outputs (not to be sent to 8 The multisig method from Section 9.6.3 is one way, extending M-of-N all the way to 1-of-N. 9 Each separate set of TxTangle bLSAGs should use the same key images, since everything related to a given output is linked together. 10 Output index selection should match other implementations of transaction construction to avoid fingerprinting different software. We use this effectively random approach to align with the core implementation, which also randomizes outputs. 11 If it turns out there must be only two real participants, based on comparing the number of inputs and outputs to one’s own input/output count, the TxTangle can be abandoned. It’s recommended for each participant to have at least two inputs and two outputs, in case of malicious actors who don’t abandon TxTangles even when they realize it’s just two participants. This recommendation is open to debate, since using more inputs and outputs is not heuristically neutral. 12 TxTangle transactions should not have extraneous information stored in the extra field (e.g. no encrypted payment ID unless it’s only a 2-output TxTangle which should have at least a dummy encrypted payment ID). 13 Fee estimation should be based on a standardized approach, so each participant calculates the same thing. Otherwise outputs may be clustered based on fee calculation method. This same fee standard should be implemented outside of TxTangle, to promote TxTangle transactions looking the same as normal transactions. 14 Since points are compressed (Section 2.4.2), just interpret the keys as 32-byte integers. The smaller key’s owner adds, and larger key’s owner subtracts, by convention. CHAPTER 11. JOINT MONERO TRANSACTIONS (TXTANGLE) 120 other members just yet), and construct their output commitments, encoded amounts, and Part A partial proofs to be used for the aggregate Bulletproof range proof, signing all of it with bLSAGs (one commitment, one encoded amount, and one partial proof per bLSAG message, and the key image links these to the original list of random scalars that was used to specify output indices). Pseudo output commitments are generated as normal (Section 5.4), then offset with the shared secrets, and signed with SAGs. After the bLSAGs and SAGs are published, and assuming participants estimated the total fee in the same way, they may now verify that amounts balance overall. 15 3. If amounts balance properly we begin a small additional round for building the aggregate Bulletproof that proves all output amounts are in range. Each mock-member uses the previous round’s Part A partial proofs and output commitments, and privately computes the aggregate challenge A. They use it to construct their Part B partial proof, which they send to the channel with a bLSAG. 4. Participants begin filling in the message to be signed by MLSAGs (recall the footnote in Section 6.2.2). Published in random order over the communication interval are two kinds of messages. Each input’s ring member offsets and key images are signed with a SAG and associated with the correct pseudo output commitment. Each output’s one-time address, transaction public key, and Part C partial proof (computed based on the Part B partial proofs and an aggregate challenge B) are signed with a bLSAG (these can also include a random base transaction public key component, which as we will see can be used for fake Janus mitigation). 5. Participants use all the partial proofs to complete the aggregate Bulletproof, and privately apply a logarithmic inner product technique to compress it for the final proof to be included in transaction data. Once all the information to be signed by MLSAGs is collected, each participant completes their inputs’ MSLAGs and randomly sends them (with a SAG for each) to the channel over the communication interval. Any participant may submit the transaction as soon as they have all the pieces. Transaction public keys and the Janus mitigation If every participant to a TxTangle knows the transaction private key r (Section 4.2), then any of them may test the others’ one-time output addresses against a list of known addresses. For this reason it is necessary to construct TxTangle transactions as if there were a subaddress recipient (Section 4.3), including different transaction public keys for each output. To match with possible implementation of a mitigation for the Janus attack related to subaddresses, in which one additional ‘base’ transaction public key is included in the extra field [101], TxTangles 15 We don’t publish the separate fee amounts paid for in case a participant calculated it wrong, which may reveal an output cluster due to a collection of non-standard fee amounts. If amounts don’t balance properly, the TxTangle transaction may be abandoned. CHAPTER 11. JOINT MONERO TRANSACTIONS (TXTANGLE) 121 should also have a fake ‘base’ key composed of a sum of random keys generated by each mock- member.16 Many TxTangle participants sending money to a subaddress will likely have at least two outputs, one of which diverts change back to the participant. This means any TxTangle participant can still enable Janus mitigation by making their change’s transaction public key also the ‘base’ key for the subaddress recipient. 17 The subaddress recipient might realize the transaction is a TxTangle, and that the ‘base’ key probably corresponds with the sender’s change output. 18 11.1.3 Weaknesses Malicious actors have two primary ways to defeat the purpose of TxTangle, which is to hide input/output groupings from potential adversaries/analysts. They may pollute the transactions, such that the subset of honest participants is smaller (or even non-existent) [91]. They may also cause TxTangle attempts to fail, and use subsequent attempts by the same participants to estimate input/output groupings. The former case is not easy to mitigate, especially in the very decentralized case where no partici- pant has a reputation. One possible application of TxTangle is with collaborating pools, who may hide which pool their miners belong to among a collection of pools. Such pools would know the input/output groupings, but since the purpose is helping their connected miners it would behoove them to keep the information secret. Moreover, such TxTangles would not permit bad actors, assuming the pools are somewhat honest. The latter case can be defended against by only attempting to TxTangle a few times before taking a break, and by always reg
프로젝트로 돌아가기