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

Recover pubkey #36

Closed
radicleart opened this issue Mar 8, 2023 · 2 comments
Closed

Recover pubkey #36

radicleart opened this issue Mar 8, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@radicleart
Copy link
Collaborator

Peg out request transmits a signature of data in the transaction.

  • the amount
  • the scriptPubKey of output 1

In order to be able to filter in the UI for peg outs initiated by the current user we need;

  1. assume the user signed through the bridge ui (to be able to rebuild the message)
  2. assume they signed using sip-018 or some other known signing mechanism with their stacks privkey.

From this we should be able to recover the users stacks pubkey and therefore display their transaction history.

@radicleart radicleart self-assigned this Mar 8, 2023
@radicleart radicleart added the enhancement New feature or request label Mar 8, 2023
@radicleart radicleart added this to the Phase III milestone Mar 8, 2023
@igorsyl
Copy link
Contributor

igorsyl commented Mar 9, 2023

@xoloki can support on crypto

@radicleart
Copy link
Collaborator Author

Raised issue 173 on micro-stacks repo.

Using @noble/secp256k1 lib directly (bypassing micro-stacks) allows correct stacks address to be recovered.

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Stacks sBTC Project Mar 13, 2023
@radicleart radicleart reopened this Mar 16, 2023
@github-project-automation github-project-automation bot moved this from ✅ Done to 📖 WIP - Reopened in Stacks sBTC Project Mar 16, 2023
radicleart added a commit to stacks-network/sbtc-bridge-api that referenced this issue Mar 17, 2023
* Feature: issue 38 - Op drop support
- Includes fix for issue 36 - recover pubkey.
- Includes some ui fixes and improvemnts

* OpDrop Support and recovering public key from the script sig on unwrap.
See stacks-network/sbtc-bridge-web#38
and stacks-network/sbtc-bridge-web#36
radicleart added a commit that referenced this issue Mar 17, 2023
* Feature: issue 38 - Op drop support
- Includes fix for issue 36 - recover pubkey.
- Includes some ui fixes and improvemnts

* OpDrop Support and recovering public key from the script sig on unwrap.
See #38
and #36
@github-project-automation github-project-automation bot moved this from 📖 WIP - Reopened to ✅ Done in Stacks sBTC Project Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants