@dorafactory/maci-sdk 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -30111,6 +30111,17 @@ var Circom = class {
30111
30111
  this.chainId = getDefaultParams(network).chainId;
30112
30112
  }
30113
30113
  async signMessage(signer, address, message) {
30114
+ if (typeof window !== "undefined" && window.keplr) {
30115
+ const sig = await window.keplr.signArbitrary(
30116
+ this.chainId,
30117
+ address,
30118
+ message
30119
+ );
30120
+ return {
30121
+ signature: sig.signature,
30122
+ pubkey: sig.pub_key.value
30123
+ };
30124
+ }
30114
30125
  const accounts = await signer.getAccounts();
30115
30126
  const account = accounts.find((acc) => acc.address === address);
30116
30127
  if (!account) {