micro-stacks
micro-stacks copied to clipboard
getPublicKeyFromSignature should allow compressed=true to be passed.
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 .