Skip to content

False positive rate in transaction index #651

Closed Answered by romanz
prusnak asked this question in Q&A
Discussion options

You must be logged in to vote

Great question!
IIRC (tested a few months back), there were no collisions in txid.
I didn't test funding / spending indices but they shouldn't have too much collisions:

  • let's assume 64 bits' prefix
  • for 50% collision probability we would need 2**32 rows (birthday paradox)
  • currently, there are ~700M txid rows - so the collision probability should be ~1.4% = 700e6**2 / (2 * 2**64)
  • there are ~1.9B funding outputs - so the collision probability should be ~9.8% = 1.9e9**2 / (2 * 2**64)
  • there are ~1.8B spending rows - so the collision probability should be ~8.8% = 1.8e9**2 / (2 * 2**64)

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@prusnak
Comment options

@romanz
Comment options

@prusnak
Comment options

@romanz
Comment options

@romanz
Comment options

Answer selected by prusnak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants