\CryptoManana\Core\Interfaces\ContainersSignedDataInterface

Interface SignedDataInterface - Interface specification for signed data object creation and verification.

Summary

Methods
Constants
createSignedData()
extractVerifiedData()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

createSignedData()

createSignedData(string  $plainData) : \CryptoManana\DataStructures\SignedData

Creates a signed data object for the given input data.

Parameters

string $plainData

The plain input string.

Throws

\Exception

Validation errors.

Returns

\CryptoManana\DataStructures\SignedData

The signed data object.

extractVerifiedData()

extractVerifiedData(\CryptoManana\DataStructures\SignedData  $signedData) : string

Verifies and extracts the plain data from a signed data object.

Parameters

\CryptoManana\DataStructures\SignedData $signedData

The signed data object.

Throws

\Exception

Validation errors.

Returns

string —

The verified plain information.