Added method signTimedMessage() and verifyTimedMessage() for verifying messages based on signed timestamps

This commit is contained in:
netkas 2025-02-03 13:59:11 -05:00
parent 3472728f3a
commit 0e190c085a
3 changed files with 147 additions and 0 deletions

View file

@ -0,0 +1,21 @@
<?php
namespace Socialbox\Enums\Status;
enum SignatureVerificationStatus : string
{
/**
* The provided signature does not match the expected signature.
*/
case INVALID = 'INVALID';
/**
* The provided signature was valid but the key associated with the signature has expired.
*/
case EXPIRED = 'EXPIRED';
/**
* The provided signature was valid but unable to be verified against the peer's known public key.
*/
case UNVERIFIED = 'UNVERIFIED';
}