I even try to build a prototype my self for p2p poker.
I don't have anymore the code to share.
Anyway I will also recommend this video about it:
I found the answer in the youtube comments:
> Dan McNeill: What if I use a different key for each card?
> MrBawn: In the physical version, you could absolutely identify each card by which of your keys unlocked your lock without unlocking your opponent's lock. In the crypto version, you can't tell which of your keys works on an encrypted card because your opponent's lock has turned it into gibberish. So an incorrect key would be indistinguishable from a correct key.
> This paper provides the following answers:
> 1. No. (Rigorous mathematical proof supplied.)
> 2. Yes. (Correct and complete protocol given.)
We've just released the tech article here: https://medium.com/cartesi/how-cartesi-is-changing-the-game-...
That's the Floyd from Floyd-Warshall Algorithm and Rabin from the Rabin-Karp string search Algorithm.