-
Notifications
You must be signed in to change notification settings - Fork 308
feat(satp-hermes): improve satp gateway configuration object #4079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(satp-hermes): improve satp gateway configuration object #4079
Conversation
0a9c875 to
0a2d2c7
Compare
0a2d2c7 to
ac39cb7
Compare
7756dd9 to
3a05cb9
Compare
RafaelAPB
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM, left comments directed at minor issues to be addressed
...satp-hermes/src/main/typescript/cross-chain-mechanisms/oracle/implementations/oracle-besu.ts
Outdated
Show resolved
Hide resolved
...-satp-hermes/src/main/typescript/cross-chain-mechanisms/oracle/implementations/oracle-evm.ts
Outdated
Show resolved
Hide resolved
...config-validating-functions/bridges-config-validating-functions/validate-ethereum-options.ts
Show resolved
Hide resolved
...es/src/main/typescript/services/validation/config-validating-functions/validate-cc-config.ts
Show resolved
Hide resolved
33e1a95 to
b1dcbca
Compare
5060b5c to
553bf7c
Compare
553bf7c to
93b6371
Compare
LordKubaya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add to the description that you added support for different type of keys.
| "connectorUrl": "https://besu-connector.example.com:4000", | ||
| "web3SigningCredential": { | ||
| "ethAccount": "${ETH_ACCOUNT}", | ||
| "bridgeOwnerAddress": "${ETH_ACCOUNT}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this right? bridgeOwnerAddress in the type web3SigningCredential?
What is the reason for changing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue relative to this PR requests the ethAccount parameter to have a clearer name. I've changed it now to "bridgeOwnerAccount", which may be clearer, and more technically correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the web3SigningCredential is about the EVM-based systems. This can be used in other systems that are not bridges.
| }, | ||
| signingCredential: { | ||
| ethAccount: "0x736dC9B8258Ec5ab2419DDdffA9e1fa5C201D0b4", // Ethereum account address | ||
| bridgeOwnerAddress: "0x736dC9B8258Ec5ab2419DDdffA9e1fa5C201D0b4", // Ethereum account address of the owner of the bridge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a key to sign things that are not related to the ETH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've addressed it, and given a name that is more technically correct, as I commented above.
| }, | ||
| signingCredential: { | ||
| ethAccount: "0x09D16c22216BC873e53c8D93A38420f48A81dF1B", // Ethereum account address | ||
| bridgeOwnerAddress: "0x09D16c22216BC873e53c8D93A38420f48A81dF1B", // Ethereum account address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Explanation above.
| }, | ||
| signingCredential: { | ||
| ethAccount: "0x8230f81920ed354445d201222470ad6f92459D3f", | ||
| bridgeOwnerAddress: "0x8230f81920ed354445d201222470ad6f92459D3f", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Explanation above.
4afe45b to
7065667
Compare
Signed-off-by: Tomas Silva <[email protected]>
cb95c00 to
5759318
Compare
feat(satp-hermes): improve satp gateway configuration object
Implements the required improvements to the satp gateway object.
Added support for gateways, in their own credentials for identification, and along with their public key, to share the cryptographic algorithm they used to generate their own key pair.
CLOSES #4013
Pull Request Requirements
upstream/mainbranch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.-sflag when usinggit commitcommand. You may refer to this link for more information.Character Limit
A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.