Skip to main content

ResQ.Blockchain.MockNeoClient

MockNeoClient.VerifyLocationAttestationAsync(LocationAttestation, CancellationToken) Method

Verifies a location attestation in mock mode.

Parameters

attestation LocationAttestation The location attestation to verify. cancellationToken System.Threading.CancellationToken Cancellation token for the operation. Implements VerifyLocationAttestationAsync(LocationAttestation, CancellationToken)

Returns

System.Threading.Tasks.Task<System.Boolean>
True if the attestation has a non-empty signature; false otherwise.

Example

Remarks

In mock mode, verification simply checks that a signature is present. No actual cryptographic verification is performed. This allows testing of both valid and invalid attestation scenarios by providing or omitting the signature field.