Here is a port of the code presented as a tutorial here: https://medium.com/programmers-bloc...chain-java-tutorial-from-scratch-6eeed3cb03fa
It includes examples of blockchain, transactions, wallets and mining.
I would suggest in the first instance that you follow the tutorial and try to convert the java code your self as there are a few stages that make important points. If you are not sure on the use of Javaobject or the classes it accesses, all the code required is in the attached example so get it from there. There are not many comments in the code, it is all explained in the tutorial. If you are just curious, that's OK too.
It also requires the BouncyCastle jar from here: https://www.b4x.com/android/forum/threads/share-encrypted-data-with-b4a.35482/. Copy it into your additional libraries folder, if you haven't already.
It probably took me about 4 hours to pull everything together and get it working, I was pleasantly surprised how straightforward the coding is. I've learnt a lot about the concepts and technology from doing this and I must say, I was expecting something far more complicated.
I hope you find it useful.
Update to fix bug alwaysBusy found in post# 5
30
It includes examples of blockchain, transactions, wallets and mining.
I would suggest in the first instance that you follow the tutorial and try to convert the java code your self as there are a few stages that make important points. If you are not sure on the use of Javaobject or the classes it accesses, all the code required is in the attached example so get it from there. There are not many comments in the code, it is all explained in the tutorial. If you are just curious, that's OK too.
It also requires the BouncyCastle jar from here: https://www.b4x.com/android/forum/threads/share-encrypted-data-with-b4a.35482/. Copy it into your additional libraries folder, if you haven't already.
It probably took me about 4 hours to pull everything together and get it working, I was pleasantly surprised how straightforward the coding is. I've learnt a lot about the concepts and technology from doing this and I must say, I was expecting something far more complicated.
I hope you find it useful.
Update to fix bug alwaysBusy found in post# 5
30
Attachments
Last edited: