@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/index.mjs CHANGED
@@ -4283,6 +4283,17 @@ var Circom = class {
4283
4283
  this.chainId = getDefaultParams(network).chainId;
4284
4284
  }
4285
4285
  async signMessage(signer, address, message) {
4286
+ if (typeof window !== "undefined" && window.keplr) {
4287
+ const sig = await window.keplr.signArbitrary(
4288
+ this.chainId,
4289
+ address,
4290
+ message
4291
+ );
4292
+ return {
4293
+ signature: sig.signature,
4294
+ pubkey: sig.pub_key.value
4295
+ };
4296
+ }
4286
4297
  const accounts = await signer.getAccounts();
4287
4298
  const account = accounts.find((acc) => acc.address === address);
4288
4299
  if (!account) {