-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Context
The oracle signs reveal transactions with a dedicated keypair. This key must be stored securely (env or secrets manager) and loaded at runtime without logging.
Goal
- Implement KeyService that provides the oracle keypair: load from env (e.g. ORACLE_SECRET_KEY) or from a secrets manager (e.g. AWS Secrets Manager, HSM) for production.
- Expose getKeypair() or getPublicKey()/sign() for use by VrfService and TxSubmitterService.
- Never log or expose the secret; validate at startup that key is present and valid.
Contributor guide
- Directory:
oracle/ - Add
src/keys/key.service.ts. Parse secret key from env; construct Keypair (Stellar SDK). For production, add an adapter for secrets manager and use that when configured. - Inject KeyService into VrfService and TxSubmitterService.
- Document env var and optional production setup in README.
References
- ARCHITECTURE.md — Key security; keys module.
Reactions are currently unavailable