Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(l2ps): return the stored ciphertext with getL2PSHistory rows
getL2PSHistory decrypts each stored payload for a reader who proved
ownership of a subnet address, but only surfaces the `message` string
from it. A member whose transactions carry a structured payload (a
signed channel envelope under `data[1]`) cannot read it back at all.

Return the row's `encrypted_payload` next to `execution_message`. That
is the same ciphertext the unauthenticated subnet listing already
serves, so nothing new is exposed; a member holding the subnet key
decrypts it locally and checks the decrypted hash against the row,
instead of trusting a plaintext handed back by the node. The node
itself decrypts nothing more than it did before.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KuxqrwyA8kuyT1ZJLUWZWo
  • Loading branch information
pallytin88 and claude committed Oct 9, 2026
commit 970c315df4005df20d91e6b8c31f3bad68c9f598
5 changes: 5 additions & 0 deletions src/libs/network/handlers/l2psHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ export const l2psHandlers: Record<string, NodeCallHandler> = {
timestamp: tx.timestamp?.toString() || "0",
l1_block_number: tx.l1_block_number,
execution_message: messages[index],
// The stored ciphertext, as the unauthenticated subnet
// listing already serves it. A member holding the subnet
// key decrypts it locally and verifies the hash, instead
// of trusting a plaintext this node would hand back.
encrypted_payload: tx.encrypted_payload ?? null,
})),
count: transactions.length,
hasMore,
Expand Down
Loading