From 7de551edf9745ac1104ec63b7523cf7a2115ef13 Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Fri, 24 Apr 2026 14:05:37 +0200 Subject: [PATCH] use encryption as a parameter in createReliableChannel --- standards/application/reliable-channel-api.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/standards/application/reliable-channel-api.md b/standards/application/reliable-channel-api.md index baa374f..fb49446 100644 --- a/standards/application/reliable-channel-api.md +++ b/standards/application/reliable-channel-api.md @@ -163,7 +163,7 @@ Chunks MUST NOT be sent at a rate that would violate the RLN message rate limit ### Encryption -The `encryption` field in `ReliableChannelConfig` is intentionally optional. +The `encryption` parameter in `createReliableChannel` is intentionally optional. The Reliable Channel API is agnostic to encryption mechanisms. When an `IEncryption` implementation is provided, it MUST be applied as described in [Outgoing message processing](#outgoing-message-processing) and [Incoming message processing](#incoming-message-processing). @@ -189,7 +189,7 @@ types: IEncryption: type: object description: "Interface for a pluggable encryption mechanism. - When provided, see ReliableChannelConfig, the API consumer MUST implement both encrypt and decrypt operations. + When provided as a parameter to `createReliableChannel`, the API consumer MUST implement both encrypt and decrypt operations. Implementations MAY use different signatures than those described below, as long as each operation accepts a byte array and returns a byte array." fields: encrypt: @@ -256,10 +256,6 @@ types: type: RateLimitConfig default: DefaultRateLimitConfig description: "Configuration for rate limit management." - encryption: - type: optional - default: none - description: "Optional pluggable encryption implementation. If none, messages are sent unencrypted." SdsConfig: type: object @@ -348,6 +344,10 @@ functions: - name: senderId type: string description: "An identifier for this sender. SHOULD be unique and persisted between sessions." + - name: encryption + type: optional + default: none + description: "Optional pluggable encryption implementation. If none, messages are sent unencrypted." returns: type: result