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

GroupSecretBox Class

Contains a group secret encrypted to a member's encryption key using HPKE.

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

Inheritance System.Object → ProtocolModel → GroupSecretBox

Implements System.IEquatable<GroupSecretBox>

Properties

GroupSecretBox.Alg Property

The HPKE suite identifier X25519-HKDF-SHA256-AES256GCM.

public string Alg { get; init; }

Property Value

System.String

GroupSecretBox.Enc Property

The 32-byte HPKE encapsulated X25519 public key.

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

Property Value

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

GroupSecretBox.SealedSecret Property

The group secret encrypted with HPKE for the target member.

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

Property Value

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

Methods

GroupSecretBox.Validate(NetworkContext) Method

Validates the HPKE suite, encapsulated key, and encrypted group-secret size.

public override Meshline.Validation.ProtocolViolation? Validate(Meshline.Models.NetworkContext? context=null);

Parameters

context NetworkContext

The optional network context passed to nested validation when needed; field-only validation may ignore it.

Returns

ProtocolViolation
The first detected protocol violation, or null if the implemented checks pass.