HTTP Authentication
Creating the HTTP Authentication service
use Jasny\HttpSignature\HttpSignature;
$secretKey = 'wJ4WH8dD88fSkNdFQRjaAhjFUZzZhV5yiDLDwNUnp6bYwRXrvWV8MJhQ9HL9uqMDG1n7XpTGZx7PafqaayQV8Rp';
$factory = new LTO\AccountFactory('T'); // 'T' for testnet, 'L' for mainnet
$ourAccount = $factory->create($secretKey);
$service = new HttpSignature(
['ed25519', 'ed25519-sha256'],
new SignCallback($ourAccount),
new VerifyCallback($accountFactory)
);Server middleware
Client middleware
Last updated