Added method signTimedMessage() and verifyTimedMessage() for verifying messages based on signed timestamps
This commit is contained in:
parent
3472728f3a
commit
0e190c085a
3 changed files with 147 additions and 0 deletions
21
src/Socialbox/Enums/Status/SignatureVerificationStatus.php
Normal file
21
src/Socialbox/Enums/Status/SignatureVerificationStatus.php
Normal 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';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue