-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add STX support for Ledger accounts #212
Add STX support for Ledger accounts #212
Conversation
|
||
return { address, publicKey: publicKey.toString('hex') }; | ||
} | ||
|
||
/** | ||
* This function is used to sign a Stacks transaction with the ledger | ||
* @param transport - the transport object with connected ledger device | ||
* @param transaction - the transaction to sign | ||
* @param transactionBuffer - the transaction to sign |
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.
was there a strong reason to change this interface and move the serialize call out of this function?
I noticed your web-extension PR didn't update confirmLedgerTransaction/index.ts L251 with the new param
and confirmStxTransaction/index.ts now does an extra .seralize() before calling this function
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.
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.
right. basically because we have to pass around a serialized transaction between screens anyway, so this removes the multiple actions to serialize (for location.state) -> deserialize (for this function) -> serialize (within this function)
is that right?
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.
Yeah, that's right
Hey @teebszet, could you take a look once again please? |
|
🔘 PR Type
📜 Background
We would like to support STX account import, regular transactions and incoming txs signing as well.
We already have some code for STX support for Ledger accounts, but we should update and test it.
Issue Link: #[ENG-2499]
Context Link (if applicable):
🔄 Changes
Does this PR introduce a breaking change?
Changes:
importStacksAccountFromLedger
method logicsignLedgerStxTransaction
method logicStacksRecipient
typeImpact:
🖼 Screenshot / 📹 Video
✅ Review checklist
Please ensure the following are true before merging: