
PSC Challenge
ICP-Brasil digital signatures with OAuth 2.0 and post-quantum cryptography
Back-end that simulates a Trust Service Provider (PSC) for digital signatures under the ICP-Brasil standard (DOC-ICP-17.01): the requesting application never touches the user's private key. It started as a technical challenge, from a code skeleton that I evolved into a working, standard-compliant system.
- OAuth 2.0 (Authorization Code + PKCE) with explicit per-operation user consent and single- and multi-signature scopes.
- RAW signatures with RSA and post-quantum ML-DSA (Dilithium) via BouncyCastle, with X.509 certificates.
- Decoupled security layer: interceptors validate Bearer tokens without mixing security and business rules.
- Layered REST APIs, JPA/Hibernate, PostgreSQL, Jakarta Validation and transactional boundaries around consent and token issuance.
