From f28f9dcc98e5888192e442db4d5f5237810bf4a6 Mon Sep 17 00:00:00 2001 From: Zdravko Iliev <zdravko.iliev@vereign.com> Date: Mon, 4 Apr 2022 16:23:31 +0300 Subject: [PATCH] add dynamic scaling and coords --- src/types.ts | 5 +++++ vereign/protobuf/qrcode_data.proto | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/src/types.ts b/src/types.ts index f04edf3..d6c3980 100644 --- a/src/types.ts +++ b/src/types.ts @@ -206,10 +206,15 @@ export interface SealHeadData { ipfsIndexCid: string; } +export interface SealCoords { + [key: string]: { x: number; y: number }; +} export interface SealIndexObject { sealKey: string; sealTailCid: string; chain: string; transactionId: string; hashBatchId: string; + sealSize: string; + sealCoords: SealCoords; } diff --git a/vereign/protobuf/qrcode_data.proto b/vereign/protobuf/qrcode_data.proto index 3d47bb7..2d61b4b 100644 --- a/vereign/protobuf/qrcode_data.proto +++ b/vereign/protobuf/qrcode_data.proto @@ -126,6 +126,11 @@ message DocumentData_V1 { string ipfsIndexCid = 3; } +message Coords { + int32 x = 1; + int32 y = 2; +} + message SealIndexObject_V1 { bytes sealKey = 1; string sealTailCid = 2; @@ -133,4 +138,6 @@ message SealIndexObject_V1 { string block = 4; string transactionId = 5; string hashBatchId = 6; + string sealSize = 7; + map<string, Coords> sealCoords = 8; } -- GitLab