o1js-rsa
Version:
This repository exposes the API from the [o1js RSA example](https://github.com/o1-labs/o1js/tree/main/src/examples/crypto/rsa), making it importable and enabling RSA65537 signature verification on the Mina blockchain across various projects that utilize [
22 lines (21 loc) • 547 B
JavaScript
module.exports = (request, options) => {
return options.defaultResolver(request, {
...options,
packageFilter: (pkg) => {
// When importing o1js, we specify the Node ESM import as Jest by default imports the web version
if (pkg.name === 'o1js') {
return {
...pkg,
main: pkg.exports.node.import,
};
}
if (pkg.name === 'node-fetch') {
return { ...pkg, main: pkg.main };
}
return {
...pkg,
main: pkg.module || pkg.main,
};
},
});
};