From 5365e5fbedf4b0ba87967424992a8a95ecc6682c Mon Sep 17 00:00:00 2001 From: gmega Date: Wed, 24 Jun 2026 14:54:49 -0300 Subject: [PATCH] use getRawBytes to avoid protobuf-serializing the key --- 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.