github.com/iotexproject/iotex-core@v1.14.1-rc1/db/trie/triepb/trie.proto (about)

     1  // Copyright (c) 2019 IoTeX Foundation
     2  // This source code is provided 'as is' and no warranties are given as to title or non-infringement, merchantability
     3  // or fitness for purpose and, to the extent permitted by law, all liability for your use of the code is disclaimed.
     4  // This source code is governed by Apache License 2.0 that can be found in the LICENSE file.
     5  
     6  // To compile the proto, run:
     7  //      protoc --go_out=plugins=grpc:. *.proto
     8  syntax = "proto3";
     9  package triepb;
    10  
    11  message branchNodePb {
    12      uint32 index = 1;
    13      bytes path = 2;
    14  }
    15  
    16  message branchPb {
    17      repeated branchNodePb branches = 1;
    18  }
    19  
    20  message leafPb {
    21      uint32 ext = 1;
    22      bytes path = 2;
    23      bytes value = 3;
    24  }
    25  
    26  message extendPb {
    27      bytes path = 1;
    28      bytes value = 2;
    29  }
    30  
    31  message nodePb {
    32      oneof node {
    33          branchPb branch = 2;
    34          leafPb leaf = 3;
    35          extendPb extend = 4;
    36      }
    37  }