toResult
Converts this instance to a Result object wrapping the success value or failure exception, depending on the instance state.
If this instance represents a success state, the encapsulated value is returned as a successful Result. If this instance represents a failure state, an AttestationValueException containing failure details is returned as a failed Result.
Return
a Result that is either successful with the encapsulated value or failed with an AttestationValueException.