Members on this page
Meshline.Sdk
Meshline.Models.Protocol
AccountAuthenticationRequest Class
Carries an account's response to a relay authentication challenge.
public sealed record AccountAuthenticationRequest : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.AccountAuthenticationRequest>
Inheritance System.Object → ProtocolModel → AccountAuthenticationRequest
Implements System.IEquatable<AccountAuthenticationRequest>
Properties
AccountAuthenticationRequest.AccountPublicKey Property
The public key used to verify the account's signature and identifier.
public System.Collections.Immutable.ImmutableArray<byte> AccountPublicKey { get; init; }
Property Value
System.Collections.Immutable.ImmutableArray<System.Byte>
AccountAuthenticationRequest.AccountSignature Property
The account signature over the model's account signing input.
public System.Collections.Immutable.ImmutableArray<byte> AccountSignature { get; init; }
Property Value
System.Collections.Immutable.ImmutableArray<System.Byte>
AccountAuthenticationRequest.Nonce Property
The relay-issued challenge nonce being signed.
public string Nonce { get; init; }
Property Value
Methods
AccountAuthenticationRequest.GetSigningInput(string, string, string, NetworkContext) Method
Builds the canonical, network-bound bytes used to sign or verify this document.
public byte[] GetSigningInput(string accountId, string relayId, string origin, Meshline.Models.NetworkContext context);
Parameters
accountId System.String
The account's CAIP-10 identifier.
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.