Semaphores, IPFS and Smart Contracts

I am migrating my cipher challenges onto IPFS and into a smart contract. I have now migrated my semaphore challenge into Ethereum [here]:

Semaphores, IPFS and Smart Contracts

I am migrating my cipher challenges onto IPFS and into a smart contract. I have now migrated my semaphore challenge into Ethereum [here]:

For this, let’s store the graphics in IPFS:

For ‘a’ the graphic is stored here:

https://ipfs.io/ipfs/QmStHMPpKeXZWn6ouve4e9j9YAK187WxQWuYPNSjkdyBQh?filename=s_a.gif

The code can then be added with:

With this, we have an array of strings (words) and which is selected for the cipher process. Next, we select each letter at a time, and replace it with the IPFS file location:

We can now deploy to ganache:

And then test:

The code is:

Find the cipher for the Semaphore code of:  <img  src='https://ipfs.io/ipfs/QmcDf789MEnfd5ndYXDjyVvTbh2mELgf8ZfzpKACt1kRQ4'  style='height: 50px;'> <img  src='https://ipfs.io/ipfs/QmVjLKtRPM4dgudn6KhU1fpAMy1SqXGSZvFQaFx1gADeGY'  style='height: 50px;'> <img  src='https://ipfs.io/ipfs/QmboxrxXSAftQdYoTvUxm2Lv1RWooSS4VCN1R9vc6raUGp'  style='height: 50px;'> <img  src='https://ipfs.io/ipfs/Qmbs4WSFv9fCNdaDePSYfmsREeQm2GR9HPtc8a7AHzGPm7'  style='height: 50px;'> <img  src='https://ipfs.io/ipfs/QmeTR8smB6JPU6qFcnSdpa2w4AY6ybd1okxeXdr3Bvm5Af'  style='height: 50px;'> <img  src='https://ipfs.io/ipfs/QmP5niwPW7TBVB7XExnMnvdrsgjgPGsLeDL2FifzbLYGaj'  style='height: 50px;'> <img  src='https://ipfs.io/ipfs/QmWNbm68bWyT3KbEbLBeFB8K645UpTH7ykiCZWzv6PU5T3'  style='height: 50px;'> <img  src='https://ipfs.io/ipfs/Qmdb9CsfVVvMU2GH1u1afKhcq89FgadD2AWeSYY5thLXWC'  style='height: 50px;'>   
The answer is: consider

When we render this in a browser, we get:

and which checks out correctly. We can now go ahead and deploy to the Ropsten network:

https://ropsten.etherscan.io/address/0xda0ae36ade637a57a5656b2239bd83d60c66db95#code

Now you can try the challenge:

https://asecuritysite.com/challenges/sem