File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 7
7
#define LIBP2P_HASH_TYPE_HPP
8
8
9
9
namespace libp2p ::multi {
10
- // / TODO(Harrm) FIL-14: Hash types are a part of multicodec table, it would be good to
11
- // / move them there to avoid duplication and allow for extraction of
10
+ // / TODO(Harrm) FIL-14: Hash types are a part of multicodec table, it would be
11
+ // / good to move them there to avoid duplication and allow for extraction of
12
12
// / human-friendly name of a type from its code
13
13
// / @see MulticodecType
14
14
// / https://github.com/multiformats/js-multihash/blob/master/src/constants.js
@@ -19,7 +19,9 @@ namespace libp2p::multi {
19
19
sha512 = 0x13 ,
20
20
blake2b_256 = 0xb220 ,
21
21
blake2s128 = 0xb250 ,
22
- blake2s256 = 0xb260
22
+ blake2s256 = 0xb260 ,
23
+ sha2_256_trunc254_padded = 0x1012 ,
24
+ poseidon_bls12_381_a1_fc1 = 0xb401 ,
23
25
};
24
26
} // namespace libp2p::multi
25
27
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ namespace libp2p::multi {
33
33
RAW = 0x55 ,
34
34
DAG_PB = 0x70 ,
35
35
DAG_CBOR = 0x71 ,
36
+ FILECOIN_COMMITMENT_UNSEALED = 0xf101 ,
37
+ FILECOIN_COMMITMENT_SEALED = 0xf102 ,
36
38
};
37
39
38
40
static std::string getName (Code code) {
@@ -59,6 +61,10 @@ namespace libp2p::multi {
59
61
return " dag-pb" ;
60
62
case Code::DAG_CBOR:
61
63
return " dag-cbor" ;
64
+ case Code::FILECOIN_COMMITMENT_UNSEALED:
65
+ return " fil-commitment-unsealed" ;
66
+ case Code::FILECOIN_COMMITMENT_SEALED:
67
+ return " fil-commitment-sealed" ;
62
68
}
63
69
return " unknown" ;
64
70
}
You can’t perform that action at this time.
0 commit comments