diff --git a/src/types.ts b/src/types.ts index f04edf3b75829bd8ff81bfa0de32c1a06f549859..d6c39809661b5631857cc40bc08c7e6706963759 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 3d47bb740113a1a5fda4b933f744b7b87c944d1d..2d61b4b0e71bb9b3efd7bcca485d8be6169a4a6e 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; }