Skip to content

JavaScript library for Iroha, a Distributed Ledger Technology (blockchain) platform.

License

Notifications You must be signed in to change notification settings

CSittya/iroha-javascript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

いろはjs (irohajs)

What's いろは(iroha)?

いろは(iroha) is this.

Description

いろはjs(irohajs) is client javascript library for using いろは(iroha).
demo

Requirement

Installation

Usage

Load

<script src="/path/to/iroha.js"></script>

or

import Iroha from 'iroha.js'
var Iroha = require('iroha.js')

API

iroha.createKeyPair

var keys = iroha.createKeyPair();

Return key object.
Response:

{
	publicKey: A 32 byte public key encoded base64,
	privateKey: A 64 byte private key encoded base64
}

iroha.sign

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)

iroha.verify

var keys = iroha.verify({
 			            	publicKey: A 32 byte public key encoded base64,
 			            	signature: A signature,
 			            	message: A message
 			            });

Response:

Return True or False;

Author

GUCCI-swallow

License

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.

About

JavaScript library for Iroha, a Distributed Ledger Technology (blockchain) platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 86.0%
  • HTML 14.0%