Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Question: Compressed Key vs Uncompressed Key #69

Open
friedger opened this issue Apr 29, 2020 · 0 comments
Open

Question: Compressed Key vs Uncompressed Key #69

friedger opened this issue Apr 29, 2020 · 0 comments
Assignees
Milestone

Comments

@friedger
Copy link
Contributor

In Blockstack.js the the compressed key is returned as the public key while in stacks-transactions-js the uncompressed key is returned.

This results in two different addresses derived from the same private key using (semantically in my mind) the same derivation path:

  • publicKeyToString(getPublicKey(createStacksPrivateKey(userData.appPrivateKey))) // via elliptic lib
  • getPublicKeyFromPrivate(userData.appPrivateKey) // from via bitcoin lib

Should there be a method to derive the compressed public key from the uncompressed private key?

@friedger friedger changed the title Question: Compressed Key vs uncompressedKey Question: Compressed Key vs Uncompressed Key Apr 29, 2020
@yknl yknl added this to the 2020 W21-W23 milestone May 19, 2020
@agraebe agraebe modified the milestones: 2020 W21-W23, 2020 W23-W25 Jun 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants