From 6d42511d447dea97703f8b7c7ae55945b689d3bc Mon Sep 17 00:00:00 2001
From: Zdravko Iliev <zdravko.iliev@vereign.com>
Date: Wed, 6 Jul 2022 17:13:13 +0300
Subject: [PATCH] reorder ipfs proto

---
 src/types.ts                       | 6 +++---
 vereign/protobuf/qrcode_data.proto | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/types.ts b/src/types.ts
index 74d8917..550c3a4 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -21,10 +21,10 @@ export interface IpfsContentData {
 }
 
 export interface IpfsDocumentContentData {
-  ipnsKeyId?: string;
-  cid?: string;
-  key: string;
   head: string;
+  key: string;
+  cid?: string;
+  ipnsKeyId?: string;
 }
 
 export interface IpfsAttachmentData {
diff --git a/vereign/protobuf/qrcode_data.proto b/vereign/protobuf/qrcode_data.proto
index 5b46180..d9812a7 100644
--- a/vereign/protobuf/qrcode_data.proto
+++ b/vereign/protobuf/qrcode_data.proto
@@ -23,10 +23,10 @@ message Recipients_V1 {
 }
 
 message IpfsContentData_V1 {
-    string cid = 1;
-    string key = 2;
-    string head = 3;
-    string ipnsKeyId = 4;
+  string head = 1;
+  string key = 2;
+  string cid = 3;
+  string ipnsKeyId = 4;
 }
 
 message IpfsAttachmentData_V1 {
-- 
GitLab