Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophersanborn/d1bc7778b72f0137d5baf7707ee878a5 to your computer and use it in GitHub Desktop.
Save christophersanborn/d1bc7778b72f0137d5baf7707ee878a5 to your computer and use it in GitHub Desktop.
Scanning Tx Metadata for Owned Tx Outputs using StealthAddress class, 2014 MacBook Pro, 2018-11-17, Algorithm 1, Run 2
===========================================================
** Benchmark: Scanning Tx Metadata for Owned Tx Outputs: **
===========================================================
*
* Generating 398 red-herring keys to be our 'non-matches':
* ...Allocated 398 keys in 73 milliseconds.
*
* Generating Bob StealthAddress:
* ...Bob: BTSBBirtYbXSx7WkCq7sFvAUEJRtj9vCM4LHEEstrGgHmjPjRVohqDWSEBdk3dE1rq1qo7owC2U4mZMFFZbKNxZFQmoWg73Dav
*
* Generating an OTK and TxAuthKey for an output to Bob, and adding to key vector:
* ...OTK: OTK57tzAcabxuzBUxRwz5xSFF63bGh6d9cuJF3xStCqXTSP3yi8wG
* ...TAK: BTS7hUXjXYrgwo6kZXzAGbvw6qTfGigWrX1BruPgKjs3ejzfXCg9N
*
* 400 Keys may be paired in 160000 (OTK, TAK) testable combinations.
* (Of which only one pairing should be 'recognized' as beloning to Bob.)
*
*
* *************************
* STARTING 10 BATCHES: (Single-threaded; Mac OS X; x86_64)
*
* ** STARTING: Batch 1: **
*
* Match on (key[398], key[399]).
* Batch 1 Summary: Time 31325 ms; Tested 160000 key pairings; Matched on 1 combo.
*
* ** STARTING: Batch 2: **
*
* Match on (key[398], key[399]).
* Batch 2 Summary: Time 31925 ms; Tested 160000 key pairings; Matched on 1 combo.
*
* ** STARTING: Batch 3: **
*
* Match on (key[398], key[399]).
* Batch 3 Summary: Time 31741 ms; Tested 160000 key pairings; Matched on 1 combo.
*
* ** STARTING: Batch 4: **
*
* Match on (key[398], key[399]).
* Batch 4 Summary: Time 32036 ms; Tested 160000 key pairings; Matched on 1 combo.
*
* ** STARTING: Batch 5: **
*
* Match on (key[398], key[399]).
* Batch 5 Summary: Time 31968 ms; Tested 160000 key pairings; Matched on 1 combo.
*
* ** STARTING: Batch 6: **
*
* Match on (key[398], key[399]).
* Batch 6 Summary: Time 32695 ms; Tested 160000 key pairings; Matched on 1 combo.
*
* ** STARTING: Batch 7: **
*
* Match on (key[398], key[399]).
* Batch 7 Summary: Time 36041 ms; Tested 160000 key pairings; Matched on 1 combo.
*
* ** STARTING: Batch 8: **
*
* Match on (key[398], key[399]).
* Batch 8 Summary: Time 38036 ms; Tested 160000 key pairings; Matched on 1 combo.
*
* ** STARTING: Batch 9: **
*
* Match on (key[398], key[399]).
* Batch 9 Summary: Time 38713 ms; Tested 160000 key pairings; Matched on 1 combo.
*
* ** STARTING: Batch 10: **
*
* Match on (key[398], key[399]).
* Batch 10 Summary: Time 38926 ms; Tested 160000 key pairings; Matched on 1 combo.
*
*
* *************************
* BENCH SUMMARY: Total Time: 343.406 sec, over 10 batches of 160000 simulated TXOs.
*
* Avg Batch Time: 34.3406 sec.
* Fastest: 31.325 sec.
* Slowest: 38.926 sec.
*
* Scanning Time per Network-Activity-Day (BTC): 259.61 Sec, at Bitcoin levels of 14 TXO/Sec.
* Scanning Time per Network-Activity-Day (XMR): 4.68 Sec, at Monero levels of 21,800 TXO/Day.
*
* CONCLUDES BENCH: ScanningForTransactions.
* ////////
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment