いろは(iroha) is this.
いろはjs(irohajs) is client javascript library for using いろは(iroha).
demo
- Clone this repository.
- Download the latest release.
- [Feature]Install with npm/bower.
<script src="/path/to/iroha.js"></script>
or
import Iroha from 'iroha.js'
var Iroha = require('iroha.js')
var keys = iroha.createKeyPair();
Return key object.
Response:
{
publicKey: A 32 byte public key encoded base64,
privateKey: A 64 byte private key encoded base64
}
var signature = iroha.sign({
publicKey: A 32 byte public key encoded base64,
privateKey: A 64 byte private key encoded base64,
message: A message
});
Return signature object.
signature:
//signature
{
publicKey: A 32 byte public key encoded base64,
privateKey: A 64 byte private key encoded base64,
message: A message
}
Response:
signature(A signature string encoded base64)
var keys = iroha.verify({
publicKey: A 32 byte public key encoded base64,
signature: A signature,
message: A message
});
Response:
Return True or False;
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.