hirosystems / stacks.js

JavaScript libraries for identity, auth, storage and transactions on the Stacks blockchain.
https://stacks.js.org
MIT License
944 stars 307 forks source link

Get pubkey from structured data #1650

Closed whoabuddy closed 3 months ago

whoabuddy commented 4 months ago

Description

When setting up the sign-message script for aibtcdev/agent-tools-ts, we ran into an issue where we could not pass the type StructuredDataSignature to either of the getPublicKeyFromSignature methods.

After experimenting with this it was working in our initial tests, so we added the updated code back with a test to confirm it.

Breaking change?

More like an unblocking change :wink:

Example

You can now pass either MessageSignature | StructuredDataSignature to the getPublicKeyFromSignature method, detailed example is in the test file.


Checklist

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stacksjs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2024 3:11am