Skip to main content

ResQ.Blockchain.LocationAttestation

LocationAttestation(string, double, double, double, DateTimeOffset, string) Constructor

Represents a cryptographically signed location attestation for a drone.
public LocationAttestation(string DroneId, double Latitude, double Longitude, double Altitude, System.DateTimeOffset Timestamp, string Signature);

Parameters

DroneId System.String Unique identifier of the drone. Latitude System.Double Latitude in decimal degrees (-90 to 90). Longitude System.Double Longitude in decimal degrees (-180 to 180). Altitude System.Double Altitude in meters above sea level. Timestamp System.DateTimeOffset UTC timestamp of the attestation. Signature System.String Cryptographic signature verifying the attestation.

Example

var attestation = new LocationAttestation(
    DroneId: "drn-001",
    Latitude: 37.7749,
    Longitude: -122.4194,
    Altitude: 100.5,
    Timestamp: DateTimeOffset.UtcNow,
    Signature: "0x..."
);

var isValid = await neoClient.VerifyLocationAttestationAsync(attestation);

Remarks

Location attestations provide verifiable proof of a drone’s position at a specific time. The signature allows verification that the location data was generated by the legitimate drone and has not been tampered with.