Skip to content

Commit

Permalink
fix: update ew-did to fix invalid signature
Browse files Browse the repository at this point in the history
ICL-105
Fixed by standardizing format of publicKey
  • Loading branch information
jrhender committed Sep 29, 2021
1 parent 88ffc87 commit 867ecf2
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 74 deletions.
128 changes: 63 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -59,14 +59,14 @@
"@babel/runtime": "^7.12.5",
"@energyweb/iam-contracts": "^3.0.0",
"@ensdomains/ens": "^0.4.5",
"@ew-did-registry/claims": "0.5.2-alpha.90.0",
"@ew-did-registry/did": "0.5.2-alpha.90.0",
"@ew-did-registry/did-document": "0.5.2-alpha.90.0",
"@ew-did-registry/did-ethr-resolver": "0.5.2-alpha.90.0",
"@ew-did-registry/did-resolver-interface": "0.5.2-alpha.90.0",
"@ew-did-registry/jwt": "0.5.2-alpha.90.0",
"@ew-did-registry/keys": "0.5.2-alpha.90.0",
"@ew-did-registry/proxyidentity": "0.5.2-alpha.90.0",
"@ew-did-registry/claims": "0.5.2-alpha.101.0",
"@ew-did-registry/did": "0.5.2-alpha.101.0",
"@ew-did-registry/did-document": "0.5.2-alpha.101.0",
"@ew-did-registry/did-ethr-resolver": "0.5.2-alpha.101.0",
"@ew-did-registry/did-resolver-interface": "0.5.2-alpha.101.0",
"@ew-did-registry/jwt": "0.5.2-alpha.101.0",
"@ew-did-registry/keys": "0.5.2-alpha.101.0",
"@ew-did-registry/proxyidentity": "0.5.2-alpha.101.0",
"@gnosis.pm/safe-apps-sdk": "1.0.3",
"@metamask/detect-provider": "^1.2.0",
"@walletconnect/web3-provider": "1.0.0-rc.4",
Expand Down
2 changes: 1 addition & 1 deletion src/iam/iam-base.ts
Expand Up @@ -284,7 +284,7 @@ export class IAMBase {
uriOrInfo: this._provider.connection.url,
});
} else if (this._signer instanceof providers.JsonRpcSigner) {
this._didSigner = EwSigner.fromEthersProvider(this._signer.provider, this._publicKey);
this._didSigner = EwSigner.fromEthersSigner(this._signer, this._publicKey);
} else {
throw new Error(ERROR_MESSAGES.PROVIDER_NOT_INITIALIZED);
}
Expand Down

0 comments on commit 867ecf2

Please sign in to comment.