hyperledger-iroha / iroha-ios

iOS Swift library for Iroha, a simple distributed ledger
https://wiki.hyperledger.org/display/iroha
Other
92 stars 59 forks source link

message: "query signatories did not pass validation" when making new account on example #74

Closed darwinharianto closed 5 years ago

darwinharianto commented 6 years ago

I tried to follow build the code at simulator.

Steps to reproduce error:

  1. Compile the code
  2. Run it on simulator
  3. See the logs 😄
 ==================================== Keypair ====================================
| Public key: [889f6b881e331be21487db77dcf32c5f8d3d5e8066e78d2feac4239fe91d416f]  |
| Private key: [0f0ce16d2afbb8eca23c7d8c2724f0c257a800ee2bbd54688cec6b898e3f7e33] |
 =================================================================================

Transaction to Iroha: 

{"commands":[{"createAccount":{"accountName":"lexa","domainId":"test","mainPubkey":"cmNlhnQvsUnxMMmnriN8/H5firRoYEUZePFdguTnmEs="}}],"creatorAccountId":"admin@test","createdTime":"1542337977000","quorum":1} 

{}
Query to Iroha: 

{"meta":{"createdTime":"1542337983000","creatorAccountId":"admin@test","queryCounter":"1"},"getAccount":{"accountId":"lexa@test"}} 

SwiftyIrohaExample.Iroha_Protocol_QueryResponse:
error_response {
  reason: STATEFUL_INVALID
  message: "query signatories did not pass validation"
}
query_hash: "f7bcb22ae8c8dbcd856ba63f6dd82dc919d341802723d6fd7918b68aa817ad25"

What should I do to create new account?

ERussel commented 5 years ago

New library implementation was added and example was reworked. So the issue is not actual now.