iroha-javascript
iroha-javascript copied to clipboard
JavaScript library for Iroha, a Distributed Ledger Technology (blockchain) platform.
Today, Youssef Mohammad [reported](https://t.me/hyperledgeriroha/24516) an error occuring with Iroha-JS in Iroha Telegram. Log ```text js file:///C:/Users/ASUS/Desktop/crowd-funding/node_modules/@scale-codec/core/dist/lib.mjs:583 throw new Error(`Decode data for discriminant ${discriminant} is undefined; decoders schema: ${formatDecoders(decoders)}`); ^ Error:...
## Description Currently, both `__schema__.json` and `__generated__.json` are gitignored. However, if some kind of schema reflection is tracked, it would help: - to be more mindful about schema changes during...
### Motivation Currently, it is hard to understand how to get the right version of SDK according to the version of Iroha. Having some source of information would help. ###...
### Motivation It is very common to serialise and deserialise bytes to HEX format while working with SDK. So, it makes sense to export a couple of functions for that.
## Description `Signer` class has `accountId` field within it. It is located there so that `Client` can access it. I think it doesn't make sense. `Signer` should be constructed only...
## Description Appending signature to an existing `SignedTransaction` is a common operation for multisignature workflows. The API should look like this: ```js import { Signer, appendTransactionSignature } from '@iroha2/client' import...
## Description Currently, `@iroha2/client` provides a mechanism to inject the `crypto` instance into the library, so that all crypto-related functions will work after that: ```js import { setCrypto } from...
It would be nice to generate TypeDoc for the whole SDK so it will be possible to explore the API of all packages online.
`@iroha2/data-model` is built on a particular version of Iroha 2, and there might be compatibility issues with other version of how structures are (de)serialised. It might cause confusing errors like...