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
[x] Unit tested updated code paths
[x] Tagging @janniks based on our discussion in Discord
Description
When setting up the
sign-message
script for aibtcdev/agent-tools-ts, we ran into an issue where we could not pass the typeStructuredDataSignature
to either of thegetPublicKeyFromSignature
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