Open armaniferrante opened 5 years ago
Mostly done by https://github.com/oasislabs/oasis-client/pull/73.
The last thing we should do here is replace this file with an import: https://github.com/oasislabs/oasis-client/blob/master/packages/confidential/src/tweetnacl.ts
Currently, we have some utility modules that dispatch based based upon whether we're in a browser environment or not. We should be able to remove these by configuring Rollup to import the modules correctly.
For example, we we import
tweetnacl
like this with this file.Also our
EventEmitter
imports need fixing (e.g., see https://github.com/oasislabs/oasis.js/issues/25), as they are causing us to useany
types.