@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.mjs CHANGED
@@ -30087,6 +30087,17 @@ var Circom = class {
30087
30087
  this.chainId = getDefaultParams(network).chainId;
30088
30088
  }
30089
30089
  async signMessage(signer, address, message) {
30090
+ if (typeof window !== "undefined" && window.keplr) {
30091
+ const sig = await window.keplr.signArbitrary(
30092
+ this.chainId,
30093
+ address,
30094
+ message
30095
+ );
30096
+ return {
30097
+ signature: sig.signature,
30098
+ pubkey: sig.pub_key.value
30099
+ };
30100
+ }
30090
30101
  const accounts = await signer.getAccounts();
30091
30102
  const account = accounts.find((acc) => acc.address === address);
30092
30103
  if (!account) {