You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add TS script to read and process broadcastable messages from JSON in examples/ts #6891
Create a TypeScript script in the examples/ts folder that reads a JSON file containing an array of claims, each with a broadcastableMessage string. The script should:
Parse the JSON structure as provided.
Extract the broadcastableMessage fields from each claim.
Use deserializeBIP322BroadcastableMessage() to deserialize each message.
Pass the deserialized message to generateBIP322MessageListAndVerifyFromMessageBroadcastable().
Print or log the results.
Motivation
This will provide a clear usage example for handling BIP322 broadcastable messages with the relevant BitGo utilities. It will help developers understand how to process airdrop claim data and verify messages in a production-like scenario.
The script should be added to examples/ts/. Functions to use: deserializeBIP322BroadcastableMessage, generateBIP322MessageListAndVerifyFromMessageBroadcastable.
Activity