Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 714 Bytes

File metadata and controls

26 lines (17 loc) · 714 Bytes

Security Best Practices

Security guidance for applications using the PocketPay SDK.

Key Management

  • Never hardcode secret keys in source code
  • Use environment variables or secure key stores
  • Rotate keys periodically
  • Use separate keys for development and production

Logging

See Logging Guidance for safe logging practices.

Transaction Safety

  • Always verify transaction envelopes before signing
  • Check destination addresses match expected values
  • Set appropriate time bounds on transactions

Error Handling

  • Do not expose internal error details to end users
  • Log errors safely following the logging guidance
  • Validate all user inputs before constructing transactions