Skip to content

Commit 945e1e0

Browse files
authored
Fix EDV Uint8Array serialization and support mnemonic-based wallet initialization (#462)
* Fixing JSON-RPC serialization issues where Uint8Array gets converted to plain objects * improve documentation and validation * tests for edv servce and cloud wallet module * fixing lint issues * fixing integration tests * fix jwt-decode resolution in webview-server * fix jwt-decode v3/v4 compatibility in webview-server * upgrade @docknetwork/wallet-sdk packages to 1.7.6 * fixing rate limiting issues in aloud wallet integration test * fixing react native example tests * retry config for integration tests + fixing bad import in wallet backup test * skip bbs-plus-revocation test temporarily
1 parent b63da98 commit 945e1e0

12 files changed

Lines changed: 13775 additions & 29634 deletions

File tree

.github/workflows/react-native-example-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
working-directory: examples/react-native-example
2828

2929
- name: Run tests
30-
run: npm test -- --passWithNoTests
30+
run: npm test -- --passWithNoTests --forceExit
3131
working-directory: examples/react-native-example
3232
env:
3333
CI: true

examples/webview-server/craco.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ module.exports = {
4444
},
4545
});
4646

47+
// Handle node: protocol imports (e.g. node:crypto) by stripping the prefix
48+
webpackConfig.plugins.push(
49+
new (require("webpack").NormalModuleReplacementPlugin)(
50+
/^node:/,
51+
(resource) => {
52+
resource.request = resource.request.replace(/^node:/, "");
53+
}
54+
)
55+
);
56+
57+
// Replace Node.js-only @sd-jwt/crypto-nodejs with browser-compatible shim
58+
webpackConfig.resolve.alias["@sd-jwt/crypto-nodejs"] = path.resolve(__dirname, "src/sd-jwt-crypto-shim.js");
59+
4760
// Configure output to put all files in the same directory
4861
webpackConfig.output.filename = '[name].[contenthash:8].js';
4962
webpackConfig.output.chunkFilename = '[name].[contenthash:8].chunk.js';

0 commit comments

Comments
 (0)