From 72916fec4e927fc5e153fed05b9cd9e6566e31ac Mon Sep 17 00:00:00 2001
From: Zdravko Iliev <zdravko.iliev@vereign.com>
Date: Mon, 19 Feb 2024 18:04:05 +0200
Subject: [PATCH] fix: compressed version as base64

Signed-off-by: Zdravko Iliev <zdravko.iliev@vereign.com>
---
 apps/agent/README.md                  | 2 +-
 libs/askar/src/askar/agent.service.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/apps/agent/README.md b/apps/agent/README.md
index 63a0c611..4ac3348f 100644
--- a/apps/agent/README.md
+++ b/apps/agent/README.md
@@ -1,4 +1,4 @@
-# OCM ENGINE - AGENT 
+# OCM ENGINE - AGENT
 
 Agent service is a wrapper around @ocm-engine/askar library. 
 
diff --git a/libs/askar/src/askar/agent.service.ts b/libs/askar/src/askar/agent.service.ts
index 030c22c9..32ad9666 100644
--- a/libs/askar/src/askar/agent.service.ts
+++ b/libs/askar/src/askar/agent.service.ts
@@ -1012,7 +1012,7 @@ export class AgentService {
       "compressed data is",
       Buffer.from(compressedData).length / (1024 * 1024),
     );
-    const compressedMessage = Buffer.from(compressedData).toString("hex");
+    const compressedMessage = Buffer.from(compressedData).toString("base64");
     console.log(
       "compressed as hex is ",
       Buffer.from(compressedMessage).length / (1024 * 1024),
-- 
GitLab