micro-stacks icon indicating copy to clipboard operation
micro-stacks copied to clipboard

getPublicKeyFromSignature should allow compressed=true to be passed.

Open mijoco-btc opened this issue 1 year ago • 3 comments

Using: "micro-stacks": "^1.1.4", "@noble/secp256k1": "^1.7.1"

Comparing getPublicKeyFromSignature from "micro-stacks/connect" to recoverPublicKey from '@noble/secp256k1'

The latter allows the flag compressed=true to be passed whereas the former hard codes it to false.

The recoverPublicKey recovers the correct pubkey / stxAddress from a signature signed with getOpenSignMessage from '@micro-stacks/svelte whereas incorrect pubkey returned from getPublicKeyFromSignature .

mijoco-btc avatar Mar 13 '23 15:03 mijoco-btc