<?php

return [

    /*
    |--------------------------------------------------------------------------
    | NIN Encryption Key
    |--------------------------------------------------------------------------
    |
    | Used to decrypt NIN data sent from the frontend.
    | The frontend encrypts NIN using AES-GCM with this shared secret.
    | Must be a 256-bit key (64 hex characters).
    |
    */

    'encryption_key' => env('NIN_ENCRYPTION_KEY'),

    /*
    |--------------------------------------------------------------------------
    | NIN RSA Private Key
    |--------------------------------------------------------------------------
    |
    | Base64-encoded RSA-2048 private key used to decrypt NIN data sent from
    | the frontend. The matching public key is exposed via GET /api/nin/public-key
    | so the frontend can encrypt without sharing a secret.
    |
    | Generate with: php artisan nin:generate-keypair
    |
    */

    'private_key' => env('NIN_PRIVATE_KEY'),

    /*
    |--------------------------------------------------------------------------
    | Dojah NIN Verification
    |--------------------------------------------------------------------------
    |
    | DOJAH_ENV controls which environment is used:
    |   sandbox → https://sandbox.dojah.io  (use sandbox App ID + Secret)
    |   live    → https://api.dojah.io       (use live App ID + Secret)
    |
    | Credentials are obtained from the Dojah dashboard under
    | Developers → Configuration → My Apps.
    |
    */

    'dojah_env'    => env('DOJAH_ENV', 'sandbox'),
    'dojah_app_id' => env('DOJAH_APP_ID'),
    'dojah_secret' => env('DOJAH_SECRET'),
    'timeout'      => env('NIN_API_TIMEOUT', 30),

];
