If you try to use this library in a "type": "module" (ESM) codebase it will fail because the generated libraries in dist/esm folder aren't valid ESM modules.
This is becuase libsodium was being imported incorrectly, and we are using a package which is not a valid ESM module.
Context
If you try to use this library in a "type": "module" (ESM) codebase it will fail because the generated libraries in dist/esm folder aren't valid ESM modules.
This is becuase libsodium was being imported incorrectly, and we are using a package which is not a valid ESM module.
See
(https://github.com/input-output-hk/cardano-js-sdk/issues/1372)
Proposed Solution
Fix how libsodium is imported and update ip-address package (latest version is a valid ESM module)