Skip to main content

ResQ.Core.NeoClient

NeoClient.VerifyLocationAttestationAsync(string, Location, DateTimeOffset, CancellationToken) Method

Verifies a location attestation on the blockchain.
public System.Threading.Tasks.Task<bool> VerifyLocationAttestationAsync(string droneId, ResQ.Core.Location location, System.DateTimeOffset timestamp, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));

Parameters

droneId System.String The drone identifier. location Location The location to verify. timestamp System.DateTimeOffset The timestamp of the attestation. ct System.Threading.CancellationToken Cancellation token.

Returns

System.Threading.Tasks.Task<System.Boolean>
True if the attestation is valid.