-
Couldn't load subscription status.
- Fork 64
Closed
Labels
enhancementiroha2package: clientRelated to Client package(-s)Related to Client package(-s)package: cryptoRelated to Crypto packagesRelated to Crypto packages
Description
Currently:
@iroha2/clientcontains acryptosingleton, which should be set by users withsetCryptofunction before using related client functions- Each crypto target library (
@iroha2/crypto-target-*) exports the samecryptowrap around an actual WASM, a JS layer. @iroha2/crypto-coreexports types which are guaranteed to match withcrypto's from targets.- This is backed by a complex Rollup + TypeScript configuration
Proposal:
- Move
cryptosingleton to@iroha2/crypto-core - Remove wraps generation for each target. Each target only re-exports raw WASM API as
crypto, which is guaranteed to be the same between all the targets. - Define the convenient JS layer around raw WASM API once in
@iroha2/crypto-core. Make this layer rely on the raw crypto singleton.
Outcomes:
- Simpler and clearer way of using
@iroha2/crypto-* - Simpler build configuration
Metadata
Metadata
Assignees
Labels
enhancementiroha2package: clientRelated to Client package(-s)Related to Client package(-s)package: cryptoRelated to Crypto packagesRelated to Crypto packages