onion-monero-blockchain-explorer icon indicating copy to clipboard operation
onion-monero-blockchain-explorer copied to clipboard

[Do Not Merge] Adding TX k-anonymity

Open ACK-J opened this issue 2 years ago • 5 comments

Added /api/transaction/private/<TXID postfix hash> to the block explorer API so users can request transaction information in a private way.

Related to https://github.com/moneroexamples/onion-monero-blockchain-explorer/issues/284

ACK-J avatar Jul 21 '23 03:07 ACK-J

k-anonymity for transactions now works however performance needs to improve. It takes 35 seconds to return 825 transactions on a somewhat resource limited virtual machine. @moneroexamples do you have any ideas? Maybe batching transactions?

ACK-J avatar Jul 21 '23 15:07 ACK-J

Thanks. Sorry, at the moment I do not know how to improve its performance.

moneroexamples avatar Jul 25 '23 09:07 moneroexamples

I made some performance improvements which got the time down to 3 seconds to request 647 transactions. However, the use of get_transactions() requires the node RPC not be in restricted mode, or else only 100 transactions can be returned.

ACK-J avatar Jul 27 '23 19:07 ACK-J

I made some additional performance improvements which got the time down to 0.5 seconds to request 647 transactions and 16 seconds for 10,000 txs. Adding threading helped a lot when > 1000 transactions are requested. These numbers are also from a low resource VM, I will test it on a high performance server soon. I suggest you run the daemon with the following flags to prevent LMDB max reader errors. ./monerod --stagenet --max-concurrency 60

ACK-J avatar Jul 30 '23 18:07 ACK-J