\CryptoManana\Core\Interfaces\MessageEncryptionObjectSigningInterface

Interface ObjectSigningInterface - Interface for object signing/verifying.

Summary

Methods
Constants
signObject()
verifyObjectSignature()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

signObject()

signObject(object|\stdClass  $object) : string

Generates a signature of the given object.

Parameters

object|\stdClass $object

The object for signing.

Throws

\Exception

Validation errors.

Returns

string —

The signature data.

verifyObjectSignature()

verifyObjectSignature(string  $signatureData, object|\stdClass  $object) : boolean

Verifies that the signature is correct for the given object.

Parameters

string $signatureData

The signature input string.

object|\stdClass $object

The object used for signing.

Throws

\Exception

Validation errors.

Returns

boolean —

The verification result.