Hyperledger Iroha

127 Members
blockchain framework for mobile apps https://github.com/hyperledger/iroha16 Servers

Load older messages

Timestamp Message
21 Jan 2020
10:15:14@gitter_sorabot:matrix.orgsorabot (Gitter)

Anton Khvorov via telegram
For an Android app, usually Google Play Market is used as a distribution platform (market).
To do so, you need to generate .apk in Android Studio, create an application in Play Market console, put your .apk into the Play Market applicaiton.
You can also use third-party distribution platforms, like Firebase App Distribution, the process is more or less the same there.

Regarding Iroha SDK for Android app, it doesn't affect the distribution process, so you can you it without any issues

10:17:13@gitter_sorabot:matrix.orgsorabot (Gitter) Ernesto Olivier via telegram
OK, thanks for quick and accurate answer.
10:18:48@gitter_sorabot:matrix.orgsorabot (Gitter) Sara via telegram
You're welcome! Let us know if any other questions occur. And if you find any mistakes in documentation, please also text me 🙂
10:19:24@gitter_sorabot:matrix.orgsorabot (Gitter) Ernesto Olivier via telegram
23 Jan 2020
16:31:03@gitter_sorabot:matrix.orgsorabot (Gitter)

Michael Kontoulis via telegram
Hello, I am developing an Android app and trying to use the iroha-java client. Right now I am facing an issue that I can't send Queries. Transactions work fine, but queries always produce errors when sent with IrohaAPI.query(myQuery).

The errors are always "Unsupported value: iroha.protocol.QueryResponse.query_hash" even though everything seems correct. If I pass clearly incorrect values like say wrong username the response is "Unsupported value iroha.protocol.QueryResponsr.error_response" so I believe I pass everything correctly but I may be wrong. Can you possibly help with that? It would be much appreciated.

16:38:39@gitter_sorabot:matrix.orgsorabot (Gitter) Bogdan Mingela via telegram
What versions of iroha and iroha-java are used? Could you also share some code. Have you followed examples or iroha-java tests?
16:49:46@gitter_sorabot:matrix.orgsorabot (Gitter) Michael Kontoulis via telegram
Iroha-java is : 'com.github.hyperledger.iroha-java:client:6.0.0'. Iroha itself is the latest stable release from dockerhub so 1.1.1 . I have followed the examples
16:51:14@gitter_sorabot:matrix.orgsorabot (Gitter) Michael Kontoulis via telegram
val api = IrohaAPI( "IP", 50051)
16:51:31@gitter_sorabot:matrix.orgsorabot (Gitter) Michael Kontoulis via telegram
val myQuery = Query.builder("test2@ImpiloLogTest", 1).getAccountAssetTransactions("test2@ImpiloLogTest" , "login_attempt#ImpiloLogTest" , 5 , null).buildSigned( Utils.parseHexKeypair("key1","key2"))
val res = api.query(myQuery)
24 Jan 2020
09:10:11@gitter_sorabot:matrix.orgsorabot (Gitter)

Bogdan Mingela via telegram
I wasn't really able to reproduce the issue:

val keyPair = Ed25519Sha3().generateKeypair()
val domainName = "ImpiloLogTest"
val accountName = "test2"
val accountId = "$accountName@$domainName"
val assetName = "login_attempt"
val assetId = "$assetName#$domainName"
                        .createDomain(domainName, defaultRoleName)
                        .createAccount(accountName, domainName, keyPair.public)
                        .createAsset(assetName, domainName, 0)

        iroha.api.query(Query.builder(accountId, 1L)
                .getAccountAssetTransactions(accountId, assetId, 5, null)

Maybe there are some Android related stuff or dependencies mess taking place.
@mrZizik have you ever encountered the error described?

09:12:29@gitter_sorabot:matrix.orgsorabot (Gitter) Bogdan Mingela via telegram
Could you share your genesis block or code of transactions as well?
09:19:25@gitter_sorabot:matrix.orgsorabot (Gitter) Bogdan Mingela via telegram
I think there is an issue that QueryResponse cannot be assigned, could you just print or log api.query(myQuery)? what language are you using in your Android project? Kotlin or Java with lombok etc?
09:19:51@gitter_sorabot:matrix.orgsorabot (Gitter) Michael Kontoulis via telegram
First of all thank you for taking the time to help me. Secondly now that you mention it there was a dependecy issue with the following files and resolved it like this '''packagingOptions {
pickFirst 'META-INF/io.netty.versions.properties'
09:21:11@gitter_sorabot:matrix.orgsorabot (Gitter) Michael Kontoulis via telegram
To be specific we are using flutter and the android project itself is in Kotlin, but this shouldn't prove an issue
09:29:40@gitter_sorabot:matrix.orgsorabot (Gitter) Michael Kontoulis via telegram
If you mean the transactions that work with no issue, the code is exactly the same as it is in the examples just with our information.
09:32:34@gitter_sorabot:matrix.orgsorabot (Gitter) Bogdan Mingela via telegram
Could you try using QueryAPI instead of IrohaAPI for your query? There are different return value types of the methods. I'm just interested in a class scope of the issue. So just do smth like as an experiment
val queryAPI = QueryAPI(api, "test2@ImpiloLogTest", Utils.parseHexKeypair("key1","key2"))
val res = queryAPI.getAccountAssetTransactions("test2@ImpiloLogTest", "login_attempt#ImpiloLogTest" , 5)
09:39:34@gitter_sorabot:matrix.orgsorabot (Gitter) Sara via telegram
Just in case some of you are not part of our mailing list, here is a big announcement:
09:39:47@gitter_sorabot:matrix.orgsorabot (Gitter)

Sara via telegram
As Iroha maintainers, we want to make it the best blockchain for the future world and we believe that excellence is based on great ideas.
Please, share some with us!

What, in your opinion, is a must have for a blockchain in the future?
What you might use in your project right now?
Maybe, there is something lacking in Iroha and it would be great to have it?
Any ideas and suggestions, even very bold ones, are welcome!

Please, share them with our team here: https://wiki.hyperledger.org/pages/viewpage.action?pageId=29032702
We will carefully collect them and use for planning our new releases.

If you feel more comfortable not sharing your ideas publicly, please reply to me directly, I will add your idea anonymously to the final document.

Thank you for being part of our community 🖖

09:41:15@gitter_sorabot:matrix.orgsorabot (Gitter) Eduard Céspedes via telegram
Great, thanks! we will do it!
09:42:06@gitter_sorabot:matrix.orgsorabot (Gitter) Michael Kontoulis via telegram
@mingela I tried using it the new method and the result is still an error albeit a different one. """ UNAVAILABLE: io exception"""
09:42:13@gitter_sorabot:matrix.orgsorabot (Gitter) Sara via telegram
Thank you!
09:42:58@gitter_sorabot:matrix.orgsorabot (Gitter) Bogdan Mingela via telegram
Are you sure Iroha peer is available?
10:03:10@gitter_sorabot:matrix.orgsorabot (Gitter) Michael Kontoulis via telegram
Aa , there is a small issue with that right now, let me fix it and I'll get back to you. Thanks a lot!
10:50:20@gitter_sorabot:matrix.orgsorabot (Gitter) Ali Abdulmadzhidov via telegram
10:50:34@gitter_sorabot:matrix.orgsorabot (Gitter) Ali Abdulmadzhidov via telegram
Looks valid
10:50:58@gitter_sorabot:matrix.orgsorabot (Gitter)

Ali Abdulmadzhidov via telegram

Here is example of Query from iroha-sample app.

10:51:55@gitter_sorabot:matrix.orgsorabot (Gitter) Ali Abdulmadzhidov via telegram
Maybe your assetId or accountId are wrong. Also you should check version compatibility between iroha and iroha-java lib
17:49:19@gitter_sorabot:matrix.orgsorabot (Gitter) Michael Kontoulis via telegram
Hmm ,assetsid and account seem to be fine, I can do this fine through the python client @mingela can you tell me what version of iroha and java library you used when you tried to reproduce the error?
17:54:23@gitter_sorabot:matrix.orgsorabot (Gitter) Bogdan Mingela via telegram
Iroha-java 6.1.0, Iroha both 1.1.0 and 1.1.1 work
20:36:25@gitter_sorabot:matrix.orgsorabot (Gitter) Ali Abdulmadzhidov via telegram
if you say which versions are you using, i can set up them locally on my system and try it.

There are no newer messages yet.

Back to Room List