Testing IPFS for some blockchain experiment.

avatar
(Edited)

Managed to store a photograph.

After days of struggling with Samba, Python and Linux.

Beem me up...

There is some stuff that I want to do, to experiment with blockchains. And it seems that Python is the best language to use for it. The blockchains I want to use do support Python. And so it must be possible to have them interact with each other. Or at least, that is the theory. And to store chuncks of data IPFS might come in handy.

It has been a while since I did some coding. (Mumbles something about a Sloth named Sluke.) First there was this idea to store data on the Steem blockchain, but in a slightly different way. Base64, to be more precise. Using it for encoding data would make it possible to store any data on the Steem blockchain. If an account would have enough Resource Credits {RC} that is.

PureBasic.

The data could even be AES encrypted first, then compressed (packed) and finally Base64 encoded. For the proces of preparing the data I would use PureBasic. A fast compiler language that has these things build in, complete with SHA3 hashing. When done it could send it to Beem, the Python connection to Steem. And thus publish it. In theory it could work.

And I wanted to use a LapTop to code. One that I had released from Windows and blessed with Lubuntu Linux 18:04. Using the main digital archive with Samba. That is a kind of ironical, I know, but there are also two Windows computers in the network. Unfortunately that is where things got fogged up. A new Samba version messed up the config file, all shares gone. Error, error, error and me going on tilt.

Python, what the pip!?

Beem, a Python library to easily interact with the Steem blockchain. Installed it using the so called pip command. Now I am basically a Python Noob (or knob, maybe even at times) and forgot I wanted to use Python3, not 2... And after coding the (easy and pretty straight forward) wallet creation I got loads of errors. Luckily I had Samba working again, by restoring the old config file. Yet I could not seem to manage to create a Beem wallet...

Pipped in Beem at 3 too, that was nice. Python 2 and 3 living aside each other. Later I saw that I just had to add a line which forced the use of a specific version. (#!/usr/bin/env python3) In the meantime though I just used the CLI command to create a wallet. And that is how I would use PureBasic in combination with Beem anyway. Guess I got a bit rusty though, or the extreme hot weather did fry parts of my brain.

It is hobby coding. Being creative with blockchains. Also wanted to create some interaction between Bitshares, Steem, EOS and maybe Telos. But that might be something for later this year, when autumn comes. At least I managed to use IPFS to store a photograph I made. Did not know I would be able to display it. But it seems that worked right out of the box... 😁

"Step away from the keyboard...!"


Hotel on the isle of Schiermonnikoog.
https://ipfs.globalupload.io/QmQJ1gXsevTA8hDPBozrFYPi4yH3xNb8MagrKhKedezxXP
Photo cc-by-sa @oaldamster.




0
0
0.000
6 comments
avatar

Hello oaldamster!

Congratulations! This post has been randomly Resteemed! For a chance to get more of your content resteemed join the Steem Engine Team

0
0
0.000
avatar

Hurrah for getting through it and it working. I do like a bit of python!

0
0
0.000
avatar

Trial and error all the way. 😁 Python seems pretty straight forward, think it will be fun to use.

0
0
0.000
avatar

Congratulations @oaldamster! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 9500 comments. Your next target is to reach 10000 comments.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Vote for @Steemitboard as a witness to get one more award and increased upvotes!
0
0
0.000
avatar

This content has earned some GEEK. 100 000 GEEK tokens has been transferred to your steem-engine.com account.

Geek Rewards (GEEK) is a steem engine token that rewards content creators for their geeky contributions to the community.

0
0
0.000