The above image was made by enhancing text with stable diffusion using the prompt 'a cyan glowing communication network across the planet.'
Rstory relies on the EOS blockchain and Anchor wallet. Here's a guide to getting started with Anchor. To buy an Rstory token on Alcor Exchange, you'll need EOS, which can be purchased from Coinbase and transferred to your Anchor wallet account. Once there's an Rstory token in your wallet, you can go to rstory.io, connect Anchor, and read Mark Bailey's scifi novels without having to purchase them by traditional means.
Here are the steps to integrate Rstory into your site:
Hash encryption algorithm (python)
def custom_encode(input_str):
return ''.join(format(ord(char), '02x') for char in input_str)
def custom_decode(encoded_str):
return ''.join(chr(int(encoded_str[i:i+2], 16)) for i in range(0, len(encoded_str), 2))
a = 'RAW IPFS HASH'
x = custom_encode(a)
print(x)
Add scripts to head
<script src="https://rstory.mypinata.cloud/ipfs/QmRRRaytjur3gspxa9mUxaxLQhW6A19qRvp4TFweJfACkn"></script>
<script src="https://rstory.mypinata.cloud/ipfs/QmPrgG4X6sX3CHLLgrcQU8H8VTqh5mWqWfP6KLtfSfYKxc"></script>
<script src="https://unpkg.com/anchor-link@3"></script>
<script src="https://unpkg.com/anchor-link-browser-transport@3"></script>
Add javascript
The easiest way to do this is just to copy the javascript from the rstory.io html source. Use lines 225-326. This method relies on the product links being within an element with id="book-list".
Website - https://rstory.io
Twitter - https://x.com/Rstory_Official
Telegram - https://t.me/+m-WEaUc7Ud8yY2Qx
Github - https://github.com/ma-da/rstory