Skip to content
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

Trezor wallet Catalyst voting registration support #2089

Merged
merged 1 commit into from
May 12, 2021

Conversation

yushih
Copy link
Collaborator

@yushih yushih commented May 12, 2021

[ch8805]
Only the API level work. UI will be updated later.

Summary of changes:

VotingStore.js:

  1. When the "PIN confirmation" step is submitted, if it is Trezor wallet, just call createTransaction action and skip the next step (asking for spending password).

  2. _createTransaction: For hardware wallets, do not call generateRegistration to generate the tx metadata, because the metadata is generated by the wallet. However, we do need to pass the public voting key down (instead of the generated metadata).

api/ada/transactions/shelley/HaskellShelleyTxSignRequest.js and api/ada/index.js

createVotingRegTx: Pass the public voting key and nonce down instead of the generated metadata.

api/ada/transactions/shelley/trezorTx.js

If it is a catalyst voting registration tx, construct the auxiliaryData of the signing request using the public voting key and nonce passed down.

@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #8805: Make Ledger wallet Catalyst registration work at API level.

Base automatically changed from yushi/catalyst-check-delegation to develop May 12, 2021 11:09
@vsubhuman vsubhuman self-requested a review May 12, 2021 11:12
@vsubhuman vsubhuman added this to the 4.5.0 milestone May 12, 2021
@yushih yushih force-pushed the yushi/catalyst-trezor branch from bdc0b8a to 30d86c5 Compare May 12, 2021 15:02
@yushih yushih force-pushed the yushi/catalyst-trezor branch from 30d86c5 to 2d65bd0 Compare May 12, 2021 15:08
@vsubhuman vsubhuman merged commit 3049a25 into develop May 12, 2021
@vsubhuman vsubhuman deleted the yushi/catalyst-trezor branch May 12, 2021 19:26
@vsubhuman vsubhuman mentioned this pull request May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants