The Server SDK is currently experimental and not ready for production use.
Signing Messages
Message signing is a crucial feature for authentication, proof of ownership, and creating verifiable statements. This guide covers how to sign messages using the Phantom Server SDK.Overview
The SDK provides a simple interface for signing messages:Basic Message Signing
Simple Example
Network-Specific Signing
Different networks use different signing algorithms:Examples
Timestamped Messages
Sign messages with timestamps for audit trails:Best Practices
- Always include unique data in messages to prevent replay attacks (nonce, timestamp)
- Store message-signature pairs for audit and verification purposes
- Use structured messages (JSON) for complex data that needs signing
- Verify signatures server-side before processing any authenticated actions