Restructure crypto code #191
Labels
enhancement
iroha2
package: client
Related to Client package(-s)
package: crypto
Related to Crypto packages
Currently:
@iroha2/client
contains acrypto
singleton, which should be set by users withsetCrypto
function before using related client functions@iroha2/crypto-target-*
) exports the samecrypto
wrap around an actual WASM, a JS layer.@iroha2/crypto-core
exports types which are guaranteed to match withcrypto
's from targets.Proposal:
crypto
singleton to@iroha2/crypto-core
crypto
, which is guaranteed to be the same between all the targets.@iroha2/crypto-core
. Make this layer rely on the raw crypto singleton.Outcomes:
@iroha2/crypto-*
The text was updated successfully, but these errors were encountered: