syntax = "proto2";

package ipfs.boxo.ipld.merkledag.pb;

option go_package = "github.com/ipfs/boxo/ipld/merkledag/pb";

// An IPFS MerkleDAG Link
message PBLink {
  // multihash of the target object
  optional bytes Hash = 1;
  // utf string name. should be unique per object
  optional string Name = 2;
  // cumulative size of target object
  optional uint64 Tsize = 3;
}

// An IPFS MerkleDAG Node
message PBNode {
  // opaque user data
  optional bytes Data = 1;
  // refs to other objects
  repeated PBLink Links = 2;
}
