Credential Store

A CredentialStore object needs to be passed when creating the controllers. The CredentialStore can either load keys from a file through the function loadFromFile or from a string through load.

$credentialStore = new CredentialStore();
$credentialStore->loadFromFile('/path/to/file');
$credentialStore->load('secret public');

Each line of the file/string must contain a secret key and a public key separated by an empty space, for example:

69b2048d-8bf8-4c1c-b49d-e6114897a9a5 dce53190-1f70-4206-ad28-0e1ab3683161

9d1d4fd9-a2c9-464a-88ed-202bdf63d189 6fa921af-cb16-4660-b439-51ee2ff4edcc

794f8665-0a34-4f6d-b0dc-b34c82a04494 9e2ff658-3da3-4234-b639-4ee3cd6ea18e