1 of 52

Monero

an anonymous altcoin

Dionysis Zindros

ATHECRYPT 2016

2 of 52

Overview

  • Bitcoin’s problems
  • Monero’s solutions
  • Fungibility
  • Anonymity
  • Unlinkability
  • Untraceability

3 of 52

Acknowledgments

Bitcoin Genève, Université Libre de Bruxelles

Jérémie Dubois-Lacoste

Arne Brutschy

4 of 52

Bitcoin

  • The first decentralized cryptocurrency
  • But it has problems
  • It is not fungible
  • It is not anonymous
  • It’s linkable
  • It’s traceable

5 of 52

Bitcoin’s graph

6 of 52

7 of 52

Linkability

Payments to C are linked

8 of 52

9 of 52

10 of 52

Forensic analysis of blockchains

Forensic analysis of bitcoin reveals identities

What can we use to forensically analyze the bitcoin blockchain?

  • Change addresses
  • Transaction correlation
  • Public service addresses (pools, shops)

11 of 52

Blockchain forensic analysis services

  • Booming new field
    • bitiodine.net
    • coinalytics.co
    • quantabytes.com
  • Blockchain is permanent
  • Privacy can only decrease with time

12 of 52

Why do we need financial privacy?

  • Supported by long-history of cypherpunk philosophy
  • Private crypto currencies will dominate
  • Evidence illustrates privacy benefits the honest
  • Needed if we want to achieve true decentralization
  • Otherwise centralization can be forced upon us through courts of law

“Those people who do not have power, we mustn't reduce their power even more by making them yet more transparent.”

Julian Assange

13 of 52

Fungibility

Fungibility is the property of a commodity whose individual units are capable of mutual substitution.

Fungible cryptocurrencies have units that are interchangeable.

14 of 52

Bitcoin’s lack of fungibility

  • All bitcoins are equal, but some bitcoins are more equal than others
  • Coins are traceable
  • Colored coins
  • Tainted coins
  • Privacy can be broken, so fungibility is voluntary
  • coinvalidation.com
  • Social pressure exists to break fungibility in bitcoin

15 of 52

Why do we want fungibility?

  • Fundamental property of currencies
  • If I get paid, I need to know that I can spend my money
  • We know from bitcoin voluntary fungibility does not work
  • Lack of fungibility centralizes nature of coins
    • Who is the authority to determine tainting?

16 of 52

Achieving blockchain untraceability

  • Tumblers (bitcoin)
    • Centralization
  • Coinjoin (bitcoin)
    • Opt-in, off by default
    • Anonymity set is too small
  • Zerocash
    • Large proofs
    • Costly fees
    • Slow
  • Monero

17 of 52

Achieving bitcoin unlinkability

  • Bitcoin stealth addresses
    • Requires interactivity
    • Or exchange of information beforehand
    • Or elaborate use of OP_RETURN
  • Renew addresses every time
    • Impractical

18 of 52

Monero

  • Altcoin
  • Rewritten from scratch, not a fork
  • Created April 2014
  • Based on CryptoNote protocol

19 of 52

Monero overview

  • Stealth addresses achieve unlinkability
  • Ring signatures achieve untraceability

20 of 52

Monero’s unlinkability

  • Monero uses stealth addresses

21 of 52

Bitcoin address model

22 of 52

CryptoNote address model

23 of 52

Stealth addresses

  • Bob maintains one pre-generated public address
  • To send money to Bob, Alice generates a one-time key based on Bob’s public address
  • Bob monitors the blockchain for payments
  • Bob can recognize payments to one-time keys from his address using his private key
  • Only the owner of a monero address knows the output is for him
  • Mallory cannot distinguish whether a payment belongs to Bob

24 of 52

Stealth addresses

  • Bob can now publish his stealth address to everybody
  • Each output sent to Bob will look to observers as having different destinations
  • Nobody can tell these outputs are going to Bob
  • Nobody can tell these outputs are going to the same person

25 of 52

Stealth addresses

  • Bob creates two EC key pairs (A, a) and (B, b)
  • (a, b) is his private key
  • a is the view key (or tracking key)
  • b is the spending key
  • (A, B) is his public key and can be encoded into an address

26 of 52

Send money to stealth address

G is elliptic curve base point�H is hash function

  • Alice wants to pay bob to (A, B)
  • She generates random r and publishes R = rG
  • Computes one-time key P = H(rA)G + B

27 of 52

Viewing money on stealth address

  • For every transaction on the blockchain, Bob computes P’ = H(aR)G + B
  • Bob checks if P = P’
  • P’ = H(aR)G + B � = H(arG)G + B� = H(raG)G + B� = H(rA)G + B� = P
  • Only a is needed to view money; a is a view key

28 of 52

Spending money from stealth address

  • Bob can compute x = H(aR) + b such that P = xG
  • xG = (H(aR) + b)G� = H(aR)G + bG� = H(aR)G + B� = P
  • Bob can spend by signing with x
  • b is needed to spend money; b is a spending key

29 of 52

Ring signatures

30 of 52

Ring signatures

31 of 52

Ring signature

  • We control key (PS, xS)
  • Pick an anonymity set:

S’ = { P1, P2, …, PN }

  • Augment the public key set with our own key

S = S’ U { PS }

  • Sign message m using S and xs and output signature σ

32 of 52

Ring signatures terminology

GEN: Produces key pair (P, x) where P is public, x is private and an associated public key image I (such that P → I is one-way and masked with x)

SIG: Takes message m, an anonymity set S’ = { Pi } i ≠ s and a pair (PS, xS), outputs a signature σ and a set S = S’ ∪ { PS }

VER: Takes message m, public key set S, signature σ and outputs “true” or “false”

LNK: Takes a signature σ and a public key image set 𝓘 = { Ii } and outputs “linked” or “independent

33 of 52

Ring signature

  • Correctness: VER(m, S, SIG(m, xS, S’ U {PS})) is true

If a message is signed with a private key from a set of public keys, the signature can be verified with this set of public keys.

34 of 52

Ring signature

  • Unforgeability: Given only a public key set S, it is impossible to produce a valid signature

35 of 52

Ring signature

  • Linkability: The same private key cannot be used to sign two different messages

Given all the secret keys { xi } for a set of public keys S, it is impossible to produce n + 1 distinct signatures σ1, σ2, …, σn + 1

36 of 52

Ring signature

  • Anonymity: Given a signature σ and a set S, it is impossible to determine the public key associated with the signer (with probability 1/n + non-negl)

37 of 52

Monero’s untraceability

  • Monero uses ring signatures
  • To make a payment, Alice picks an anonymity set S from the utxo
  • She ring-signs as σ the anonymity set S with her private key xS
  • Alice gives key image I of her public key PS to Bob
  • Alice proves to Bob that the ring signature was made using some private key associated with some public key whose image is I
  • Bob receives payment and validates ring signature σ
  • Bob cannot distinguish which private key from the anonymity set was used
  • Transaction graph becomes non-deterministic

38 of 52

39 of 52

Spending money

In bitcoin:

  • Sign your utxo O of amount X using the private key corresponding to the public key you used for receiving O

In monero:

  • Find anonymity set from utxo* with same amount X as O
  • Sign using anonymity set and the private key corresponding to the public key you used for receiving O

40 of 52

Bitcoin TX

41 of 52

Monero TX

42 of 52

Ring signatures

  • You’re mixing your outputs with others’
  • Others are mixing your output with theirs constantly too!
  • No need for interactivity or consent from others in your anonymity set
  • Forensic analysis impossible due to combinatorial explosion

43 of 52

44 of 52

Double spend avoidance

  • Possible due to LNK function
  • For each utxo, keep list of public key images I
  • When we wish to validate new transaction:
    • Take its input anonymity set S
    • For each input public key P ∈ S verify independence
    • Find list of public key images I associated with plausible spendings of P
    • Run LNK on σ against list
  • Spending the same output twice is easily detected

45 of 52

Spending money

In bitcoin:

  • Sign your utxo O of amount X using the private key corresponding to the public key you used for receiving O

In monero:

  • Find anonymity set from utxo* with same amount X as O
  • Sign using anonymity set and the private key corresponding to the public key you used for receiving O

46 of 52

Denominations

  • Monero outputs are split into decimal denominations
  • Similar to bank notes
  • To send 11.5 XMR, we send 10 XMR + 1 XMR + 0.5 XMR
  • Each denomination is sent to stealth address by reapplying stealth algo

47 of 52

Monero achievements

  • Hides transactions destination (stealth)
  • Hides transactions origin (ring)
  • Hides precise amounts (denominations)
  • There is no “rich list” like in bitcoin

48 of 52

View keys

  • View keys can be used to comply with taxation if we want
  • Can be used to prove transaction was made in case of dispute
  • Can be used to achieve transparency in case of non-profits
  • Could be used in solvency proofs
  • The user can choose privacy or transparency as they wish
  • Transparency is opt-in only

49 of 52

Real-world statistics

  • Market capitalization: $5,222,000
  • 1 XMR = 1 mBTC

50 of 52

Bonus

  • CryptoNight mining achieves egalitarian proof-of-work
  • 60 seconds expected block generation time for fast confirmation
  • Adaptive block size
  • Smooth emission

51 of 52

thanks

@dionyziz

45DC 00AE FDDF 5D5C B988 EC86 2DA4 50F3 AFB0 46C7

52 of 52

References

CryptoNote whitepaper:

https://cryptonote.org/whitepaper.pdf