From c6e6fa30be69ca52a0cf981f9179198a2c7aaa35 Mon Sep 17 00:00:00 2001 From: Giuliano Mega Date: Wed, 24 Jun 2026 15:07:32 -0300 Subject: [PATCH] fix: byte serialization of libp2p pubkey on debug endpoint (#1472) --- storage/rest/json.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/rest/json.nim b/storage/rest/json.nim index e35aa688..d3c10594 100644 --- a/storage/rest/json.nim +++ b/storage/rest/json.nim @@ -107,7 +107,7 @@ proc init*(_: type DebugInfo, node: StorageNodeRef): DebugInfo = let peerInfo = node.switch.peerInfo peerId = peerInfo.peerId - libp2pPubKeyBytes = peerInfo.publicKey.getBytes() + libp2pPubKeyBytes = peerInfo.publicKey.getRawBytes() # Cause there's no canonical way to get your own key from MixProtocol # that I'm aware of.