Skip to content
Snippets Groups Projects
Commit f28f9dcc authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

add dynamic scaling and coords

parent 47ad8c8d
No related branches found
No related tags found
1 merge request!85Resolve "[Document Sealing] Add document proto buffers"
...@@ -206,10 +206,15 @@ export interface SealHeadData { ...@@ -206,10 +206,15 @@ export interface SealHeadData {
ipfsIndexCid: string; ipfsIndexCid: string;
} }
export interface SealCoords {
[key: string]: { x: number; y: number };
}
export interface SealIndexObject { export interface SealIndexObject {
sealKey: string; sealKey: string;
sealTailCid: string; sealTailCid: string;
chain: string; chain: string;
transactionId: string; transactionId: string;
hashBatchId: string; hashBatchId: string;
sealSize: string;
sealCoords: SealCoords;
} }
...@@ -126,6 +126,11 @@ message DocumentData_V1 { ...@@ -126,6 +126,11 @@ message DocumentData_V1 {
string ipfsIndexCid = 3; string ipfsIndexCid = 3;
} }
message Coords {
int32 x = 1;
int32 y = 2;
}
message SealIndexObject_V1 { message SealIndexObject_V1 {
bytes sealKey = 1; bytes sealKey = 1;
string sealTailCid = 2; string sealTailCid = 2;
...@@ -133,4 +138,6 @@ message SealIndexObject_V1 { ...@@ -133,4 +138,6 @@ message SealIndexObject_V1 {
string block = 4; string block = 4;
string transactionId = 5; string transactionId = 5;
string hashBatchId = 6; string hashBatchId = 6;
string sealSize = 7;
map<string, Coords> sealCoords = 8;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment