Added method verifyPeerSignature(PeerAddress|string $signingPeer, string $signatureUuid, string $signatureKey, string $signature, string $messageHash, int $signatureTime): SignatureVerificationStatus
This commit is contained in:
parent
0e190c085a
commit
7485733219
2 changed files with 47 additions and 7 deletions
|
@ -10,7 +10,17 @@
|
|||
case INVALID = 'INVALID';
|
||||
|
||||
/**
|
||||
* The provided signature was valid but the key associated with the signature has expired.
|
||||
* The provided signature was valid but the public key used to verify the signature was not the expected public key.
|
||||
*/
|
||||
case PUBLIC_KEY_MISMATCH = 'PUBLIC_KEY_MISMATCH';
|
||||
|
||||
/**
|
||||
* The provided signature was valid but the UUID used to verify the signature was not the expected UUID.
|
||||
*/
|
||||
case UUID_MISMATCH = 'UUID_MISMATCH';
|
||||
|
||||
/**
|
||||
* The provided signature was valid but the signing key has expired.
|
||||
*/
|
||||
case EXPIRED = 'EXPIRED';
|
||||
|
||||
|
@ -18,4 +28,9 @@
|
|||
* The provided signature was valid but unable to be verified against the peer's known public key.
|
||||
*/
|
||||
case UNVERIFIED = 'UNVERIFIED';
|
||||
|
||||
/**
|
||||
* The provided signature was valid and verified locally and against the peer's known public key successfully.
|
||||
*/
|
||||
case VERIFIED = 'VERIFIED';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue