いろは(iroha) is this.
いろはAndroid(IrohaAndroid) is client library for using いろは(iroha) for Android.
- Android Studio >=2.2.1
- Android API Level >=v19 (v4.4, KitKat)
- Android Build Tools >=v25
In your app/build.gradle
compile 'org.hyperledger:iroha-android:1.4.0'
Or if you use Maven, like this
<dependency>
<groupId>org.hyperledger</groupId>
<artifactId>iroha-android</artifactId>
<version>1.4.0</version>
<type>pom</type>
</dependency>
String hashedMessage = MessageDigest.digest("message", MessageDigest.SHA3_256);
// ===> hashed message by SHA3_256
import io.soramitsu.irohaandroid.Iroha;
import io.soramitsu.irohaandroid.model.KeyPair;
KeyPair keypair = Iroha.createKeyPair();
keypair.publicKey; // Ed25519 public key encoded by base64
keypair.privateKey; // Ed25519 private key encoded by base64
import io.soramitsu.irohaandroid.Iroha;
import io.soramitsu.irohaandroid.model.KeyPair;
String signature = Iroha.sign(keyPair, "message")
//===> signature // String
import io.soramitsu.irohaandroid.Iroha;
import io.soramitsu.irohaandroid.model.KeyPair;
boolean verify = Iroha.verify(keyPair.publicKey, signature, "message")
//===> true if the correct message
Sorry, This API has been removed.
Copyright 2016 Soramitsu Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.