hyperledger / iroha-ios Goto Github PK
View Code? Open in Web Editor NEWiOS Swift library for Iroha, a simple distributed ledger
Home Page: https://wiki.hyperledger.org/display/iroha
License: Other
iOS Swift library for Iroha, a simple distributed ledger
Home Page: https://wiki.hyperledger.org/display/iroha
License: Other
pod 'IrohaCommunication'
I have update framework IrohaCommunication from version 4.0.0 to 4.0.1
after pod install error on file IRTransaction error
Module 'IrohaCrypto' not found
`Ld /Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Products/Debug-iphonesimulator/IrohaCrypto/IrohaCrypto.framework/IrohaCrypto normal (in target 'IrohaCrypto' from project 'Pods')
cd /Users/lpatolya/XcodeProjects/fearless-iOS/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios11.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Products/Debug-iphonesimulator/IrohaCrypto -L/Users/lpatolya/XcodeProjects/fearless-iOS/Pods/IrohaCrypto/blake2Imp -L/Users/lpatolya/XcodeProjects/fearless-iOS/Pods/IrohaCrypto/ed25519Imp -L/Users/lpatolya/XcodeProjects/fearless-iOS/Pods/IrohaCrypto/sr25519Imp -F/Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Products/Debug-iphonesimulator/IrohaCrypto -F/Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Products/Debug-iphonesimulator/scrypt.c -F/Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Products/Debug-iphonesimulator/secp256k1.c -filelist /Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/IrohaCrypto.build/Objects-normal/x86_64/IrohaCrypto.LinkFileList -install_name @rpath/IrohaCrypto.framework/IrohaCrypto -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/IrohaCrypto.build/Objects-normal/x86_64/IrohaCrypto_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -fprofile-instr-generate -lblake2 -led25519_sha2 -lsr25519crust -framework Foundation -framework scrypt -framework secp256k1 -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/IrohaCrypto.build/Objects-normal/x86_64/IrohaCrypto_dependency_info.dat -o /Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Products/Debug-iphonesimulator/IrohaCrypto/IrohaCrypto.framework/IrohaCrypto
ld: warning: ignoring file /Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Products/Debug-iphonesimulator/scrypt.c/scrypt.framework/scrypt, building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64
ld: warning: ignoring file /Users/lpatolya/Library/Developer/Xcode/DerivedData/fearless-gdanpnshkzyxpyhifolhbauvynqn/Build/Products/Debug-iphonesimulator/secp256k1.c/secp256k1.framework/secp256k1, building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64
Undefined symbols for architecture x86_64:
"_secp256k1_ecdsa_sign_recoverable", referenced from:
-[SECSigner sign:error:] in SECSigner.o
"_secp256k1_ecdsa_recover", referenced from:
-[SECSignatureVerifier recoverFromSignature:forOriginalData:error:] in SECSignatureVerifier.o
"_secp256k1_ec_pubkey_create", referenced from:
-[SECKeyFactory deriveFromPrivateKey:error:] in SECKeyFactory.o
"_secp256k1_ec_pubkey_serialize", referenced from:
-[SECKeyFactory deriveFromPrivateKey:error:] in SECKeyFactory.o
-[SECSignatureVerifier recoverFromSignature:forOriginalData:error:] in SECSignatureVerifier.o
"_secp256k1_context_destroy", referenced from:
-[SECKeyFactory deriveFromPrivateKey:error:] in SECKeyFactory.o
-[SECSignatureVerifier recoverFromSignature:forOriginalData:error:] in SECSignatureVerifier.o
-[SECSigner sign:error:] in SECSigner.o
"_secp256k1_context_create", referenced from:
-[SECKeyFactory deriveFromPrivateKey:error:] in SECKeyFactory.o
-[SECSignatureVerifier recoverFromSignature:forOriginalData:error:] in SECSignatureVerifier.o
-[SECSigner sign:error:] in SECSigner.o
"_secp256k1_ecdsa_recoverable_signature_serialize_compact", referenced from:
-[SECSigner sign:error:] in SECSigner.o
"_secp256k1_ecdsa_recoverable_signature_parse_compact", referenced from:
-[SECSignatureVerifier recoverFromSignature:forOriginalData:error:] in SECSignatureVerifier.o
"_crypto_scrypt", referenced from:
-[IRScryptKeyDeriviation deriveKeyFrom:salt:scryptN:scryptP:scryptR:length:error:] in IRScryptKeyDeriviation.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`
Unable finish archiving (see log above)
This issue related to firebase/firebase-ios-sdk#1266
Dependency gRPC-ProtoRPC should be updated to minimum version 1.13.0
All podspec.json files under https://github.com/CocoaPods/Specs/tree/master/Specs/4/5/2/IrohaSwift are pointing to not the correct repository (https://github.com/hyperledger/iroha-ios) but a wrong repository (https://github.com/soramitsu/iroha-ios.git) . Please fix them.
implement simple http client in Swift
Trying to launch IrohaSwifty example.
Getting invalid transactions. Also timestamp is not timestamp but transaction counter.
[2018-06-04 18:27:10.452054845][th:71][warning] CommandService Stateless invalid tx: Signature: [[Wrong signature [ece91bae02bd02ff32812565aa3472dbaa895ffe0bf8dc780452c52340f78043c6f29ed15e5f82aa3b49f6c17af9cfaa197e9e81838f36a669451ee3fd78eb03;407e57f50ca48969b08ba948171bb2435e035d82cec417e18e4a38f5fb113f83] ]]
Transaction: [[bad timestamp: too old, timestamp: 1, now: 1528126030442 ]]
I tried to follow build the code at simulator.
Steps to reproduce error:
==================================== 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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.