From 149970df9522abc38fd6224fb8158bd6862240a4 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Wed, 3 Nov 2021 10:21:27 +0000 Subject: [PATCH] allow for multiple checksums per filepath --- proto/mf.proto | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/proto/mf.proto b/proto/mf.proto index d18b46c..41e57fc 100644 --- a/proto/mf.proto +++ b/proto/mf.proto @@ -28,10 +28,12 @@ message MFFile { message MFFilePath { string path = 1; - string ipfsHash = 2; // this is the DAG version that you can `ipfs get` - // more info: https://ethereum.stackexchange.com/questions/44506/ipfs-hash-algorithm/53233 - bytes multiHash = 3; //this must be sha256 for now - optional string mimeType = 4; + optional repeated MFFileChecksum = 2; + optional string mimeType = 3; +} + +message MFFileChecksum { + bytes multiHash = 1; } message MFFileInner {