Hyperledger Iroha v1.0 beta-3 version
In this release following changes were made:
Experimental multi-signature transactions support
This is one of the most important features so far, since it allows integrators of Iroha to customise validation logic and may help people who want to have smart-contracts support. Let me tell you more:
As per definition of multi signature account on wikipedia, it is a type of account, which has a special condition, associated with the account: it is related to a number of cryptographic signatures required to issue valid transactions from the account, or "quorum". Quorum is a requirement to have M of N signatures, attached to transaction, where N is a total number of public keys associated with the account.
It helps to build following logic:
- in order to form a valid transaction a user of Iroha has to apply several keys distributed across several people or devices to her transactions
- in order to form a valid transaction a user of a service with Iroha may send her transactions to a service, which validates some custom logic (amount of transferred assets, special fields, whatever) and this service can add a signature to transaction if it passed custom validation
What is different in Iroha, compared to other services, is that a user is able to send transactions to peer network which don't have all required signatures, "half-baked". Iroha puts them in a temporary storage and distributes across the network. In the end, when Iroha peer network has received enough "half-baked" transactions (quorum condition is valid) such transaction is sent to Iroha validation and is written in the ledger in case of successful validation.
If you are curious — check code in hyperledger-iroha/iroha#1260. Docs are going to be available gradually in our documentation website.
Block streaming
This would allow people to create services around Iroha that can listen to events happening on the chain — like specific transactions. In the future, it would allow us to implement block explorer functionality as well.
Python and Java Bindings for Windows platform
Check it in hyperledger-iroha/iroha#1335 and at artifact.soramitsu.co.jp website
Other features
- All assets now are returned instead of a single asset in GetAccountAssets (hyperledger-iroha/iroha#1402)
- Permissions are now implemented as enums instead of strings (hyperledger-iroha/iroha#1444, hyperledger-iroha/iroha#1434, hyperledger-iroha/iroha#1407, hyperledger-iroha/iroha#1408, hyperledger-iroha/iroha#1384)
- Ability to specify postgres database name on irohad startup
- Improved stateless validation for precision (hyperledger-iroha/iroha#1370)
- Reduced CPU usage caused by compilation of regexes (hyperledger-iroha/iroha#1345)
- Protobuf schema changes causes automatic generation of cpp files on build (hyperledger-iroha/iroha#1441)
- Hash can now be created from hex string (hyperledger-iroha/iroha#1475)
- Overwriting existing genesis block requires approval on Irohad start (thanks to @zeekhuge) (hyperledger-iroha/iroha#1300)
- CLI now supports GetAccountAssetTransactions command (hyperledger-iroha/iroha#1323)
- Significant compilation time improvements for irohad (hyperledger-iroha/iroha#1424, hyperledger-iroha/iroha#1414)
Fixes
- Fixed block query race condition which prevented making queries in a quick succession (hyperledger-iroha/iroha#1396)
- Fixed a bug which prevented synchronization between a newly added peer and the network (hyperledger-iroha/iroha#1390)
- Transfer asset now correctly handles mismatch between command's and asset's precision(hyperledger-iroha/iroha#1470)
- SetAccountDetail command can be executed on itself without any permissions (hyperledger-iroha/iroha#1452)
- If account name is not specified CLI will not issue a message about keypair generation (hyperledger-iroha/iroha#1455)
- fromPrivateKey now throws exception which can be caught (no more runtime errors!) (hyperledger-iroha/iroha#1429)
- Simulator now retrieves block height from storage, rather than current proposal (hyperledger-iroha/iroha#1360)
- When transaction is finalized before subscription, correct status is returned (hyperledger-iroha/iroha@dc6b0a4)
- Java bindings are generated in correct packages (hyperledger-iroha/iroha#1382)
Docs
CI Improvements
- MacOS pipeline has --output-on-failure flag turned on by default (hyperledger-iroha/iroha#1425)
- Added MSVC build pipeline for shared model (hyperledger-iroha/iroha#1358)