Skip to main content

ResQ.Blockchain

LocationAttestation Class

Represents a cryptographically signed location attestation for a drone.
public record LocationAttestation : System.IEquatable<ResQ.Blockchain.LocationAttestation>
Inheritance System.Object → LocationAttestation Implements System.IEquatable<LocationAttestation>

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.
Constructors
LocationAttestation(string, double, double, double, DateTimeOffset, string)Represents a cryptographically signed location attestation for a drone.
Properties
AltitudeAltitude in meters above sea level.
DroneIdUnique identifier of the drone.
LatitudeLatitude in decimal degrees (-90 to 90).
LongitudeLongitude in decimal degrees (-180 to 180).
SignatureCryptographic signature verifying the attestation.
TimestampUTC timestamp of the attestation.