From 9de974e88b7fe250f35ff6397b6166bfb60f28e3 Mon Sep 17 00:00:00 2001 From: sneak Date: Tue, 26 Oct 2021 02:19:06 -0700 Subject: [PATCH] add more notes to protobuf --- proto/mf.proto | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/proto/mf.proto b/proto/mf.proto index aedc477..d18b46c 100644 --- a/proto/mf.proto +++ b/proto/mf.proto @@ -9,8 +9,11 @@ message MFFile { } Version version = 1; bytes innerMessage = 2; + + // these are used solely to detect corruption/truncation + // and not for cryptographic integrity. uint64 size = 3; - bytes crc32 = 4; + bytes sha256 = 4; // think we might use gosignify instead of gpg: // github.com/frankbraun/gosignify @@ -25,7 +28,10 @@ message MFFile { message MFFilePath { string path = 1; - // FIXME checksum/hash here + 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; } message MFFileInner {