Skip to content

feat: allow external signer to sign for multiple wallet ids - #1988

Merged
DariusParvin merged 1 commit into
masterfrom
BG-42962-read-prv-from-walletid
Feb 10, 2022
Merged

feat: allow external signer to sign for multiple wallet ids#1988
DariusParvin merged 1 commit into
masterfrom
BG-42962-read-prv-from-walletid

Conversation

@DariusParvin

@DariusParvin DariusParvin commented Feb 10, 2022

Copy link
Copy Markdown
Contributor

Previously the external signer would produce signatures using the single private key provided in the json file (specified by the config arg signerFileSystemPath). Now, it'll find the appropriate private key corresponding to the walletId for the transaction being signed and use that private key.

Note: Only the last commit corresponds to this PR. The previous commits are from #1944 waiting to be merged

@codecov

codecov Bot commented Feb 10, 2022

Copy link
Copy Markdown

Codecov Report

Merging #1988 (718426a) into master (df5447c) will increase coverage by 87.43%.
The diff coverage is 85.71%.

❗ Current head 718426a differs from pull request most recent head 735dcd9. Consider uploading reports for the commit 735dcd9 to get more accurate results

@@             Coverage Diff             @@
##           master    #1988       +/-   ##
===========================================
+ Coverage        0   87.43%   +87.43%     
===========================================
  Files           0      177      +177     
  Lines           0     9449     +9449     
  Branches        0     1357     +1357     
===========================================
+ Hits            0     8262     +8262     
- Misses          0      783      +783     
- Partials        0      404      +404     
Flag Coverage Δ
unit 87.43% <85.71%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
modules/express/src/errors.ts 83.33% <66.66%> (ø)
modules/express/src/clientRoutes.ts 31.96% <75.00%> (ø)
modules/express/src/expressApp.ts 89.84% <100.00%> (ø)
modules/account-lib/src/coin/celo/types.ts 93.27% <0.00%> (ø)
modules/account-lib/src/coin/near/keyPair.ts 100.00% <0.00%> (ø)
modules/account-lib/src/coin/hbar/keyPair.ts 100.00% <0.00%> (ø)
...t-lib/src/coin/near/walletInitializationBuilder.ts 63.63% <0.00%> (ø)
modules/account-lib/src/coin/xrp/utils.ts 60.00% <0.00%> (ø)
modules/account-lib/src/coin/algo/errors.ts 69.23% <0.00%> (ø)
modules/account-lib/src/coin/celo/resources.ts 100.00% <0.00%> (ø)
... and 170 more

have the external signer read the private key from the wallet id. This
allows the external signer to produce signatures for multiple wallets.

Ticket: BG-42962
@DariusParvin
DariusParvin force-pushed the BG-42962-read-prv-from-walletid branch from 501de39 to 735dcd9 Compare February 10, 2022 22:32

@tylerlevine tylerlevine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@DariusParvin
DariusParvin marked this pull request as ready for review February 10, 2022 22:36
@DariusParvin
DariusParvin merged commit 5e6ad81 into master Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants