> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resq.software/llms.txt
> Use this file to discover all available pages before exploring further.

# ResQ.Blockchain.LocationAttestation

### [ResQ.Blockchain](./ResQ.Blockchain.md "ResQ.Blockchain")

## LocationAttestation Class

Represents a cryptographically signed location attestation for a drone.

```csharp theme={null}
public record LocationAttestation : System.IEquatable<ResQ.Blockchain.LocationAttestation>
```

Inheritance [System.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object "System.Object") → LocationAttestation

Implements [System.IEquatable\<](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 "System.IEquatable`1")[LocationAttestation](./ResQ.Blockchain.LocationAttestation.md "ResQ.Blockchain.LocationAttestation")[>](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 "System.IEquatable`1")

### Example

```csharp theme={null}
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.

| Constructors                                                                                                                                                                                                                                                                                                                     |                                                                         |
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------- |
| [LocationAttestation(string, double, double, double, DateTimeOffset, string)](./ResQ.Blockchain.LocationAttestation.LocationAttestation\(string,double,double,double,System.DateTimeOffset,string\).md "ResQ.Blockchain.LocationAttestation.LocationAttestation(string, double, double, double, System.DateTimeOffset, string)") | Represents a cryptographically signed location attestation for a drone. |

| Properties                                                                                                      |                                                    |
| :-------------------------------------------------------------------------------------------------------------- | :------------------------------------------------- |
| [Altitude](./ResQ.Blockchain.LocationAttestation.Altitude.md "ResQ.Blockchain.LocationAttestation.Altitude")    | Altitude in meters above sea level.                |
| [DroneId](./ResQ.Blockchain.LocationAttestation.DroneId.md "ResQ.Blockchain.LocationAttestation.DroneId")       | Unique identifier of the drone.                    |
| [Latitude](./ResQ.Blockchain.LocationAttestation.Latitude.md "ResQ.Blockchain.LocationAttestation.Latitude")    | Latitude in decimal degrees (-90 to 90).           |
| [Longitude](./ResQ.Blockchain.LocationAttestation.Longitude.md "ResQ.Blockchain.LocationAttestation.Longitude") | Longitude in decimal degrees (-180 to 180).        |
| [Signature](./ResQ.Blockchain.LocationAttestation.Signature.md "ResQ.Blockchain.LocationAttestation.Signature") | Cryptographic signature verifying the attestation. |
| [Timestamp](./ResQ.Blockchain.LocationAttestation.Timestamp.md "ResQ.Blockchain.LocationAttestation.Timestamp") | UTC timestamp of the attestation.                  |
