Security guidance for applications using the PocketPay SDK.
- Never hardcode secret keys in source code
- Use environment variables or secure key stores
- Rotate keys periodically
- Use separate keys for development and production
See Logging Guidance for safe logging practices.
- Always verify transaction envelopes before signing
- Check destination addresses match expected values
- Set appropriate time bounds on transactions
- Do not expose internal error details to end users
- Log errors safely following the logging guidance
- Validate all user inputs before constructing transactions