Skip to content
Meshline
SDK 1.1.0 · TypeView source on GitHub

Developer guide · API index

Members on this page

Meshline.Sdk

Meshline.Models.Protocol

DeviceAuthenticationRequest Class

Carries a device's signed response to a relay authentication challenge.

public sealed record DeviceAuthenticationRequest : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.DeviceAuthenticationRequest>

Inheritance System.Object → ProtocolModel → DeviceAuthenticationRequest

Implements System.IEquatable<DeviceAuthenticationRequest>

Properties

DeviceAuthenticationRequest.DeviceSignature Property

The device signature over the model's device signing input.

public System.Collections.Immutable.ImmutableArray<byte> DeviceSignature { get; init; }

Property Value

System.Collections.Immutable.ImmutableArray<System.Byte>

DeviceAuthenticationRequest.Nonce Property

The relay-issued challenge nonce being signed.

public string Nonce { get; init; }

Property Value

System.String

DeviceAuthenticationRequest.SignerCertificate Property

The device certificate supplied as evidence for the associated payload's signature.

public Meshline.Models.Protocol.DeviceCertificate SignerCertificate { get; init; }

Property Value

DeviceCertificate

DeviceAuthenticationRequest.Timestamp Property

The message or request timestamp, in Unix seconds.

public long Timestamp { get; init; }

Property Value

System.Int64

Methods

DeviceAuthenticationRequest.GetSigningInput(string, string, NetworkContext) Method

Builds the canonical, network-bound bytes used to sign or verify this document.

public byte[] GetSigningInput(string relayId, string origin, Meshline.Models.NetworkContext context);

Parameters

relayId System.String

The relay's canonical lowercase Neo script-hash identifier.

origin System.String

The relay endpoint origin bound into the authentication signature.

context NetworkContext

The network context bound into identifiers or signing input.

Returns

System.Byte[]
The canonical UTF-8 signing input bound to the network context, with the applicable signature fields omitted.

Exceptions

System.Text.Json.JsonException
The signing payload cannot be represented as canonical protocol JSON, contains conflicting extension fields, or already contains a root $context property.