| Total Complexity | 1 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | """Util functions used in the project""" |
||
| 2 | |||
| 3 | from multiformats import multicodec |
||
| 4 | |||
| 5 | def raw_cid_value(cid): |
||
| 6 | """Return raw representation of the CID as seen in multiformats_cid in bytes""" |
||
| 7 | return b''.join( |
||
| 8 | [cid.version.to_bytes(1, byteorder='big'), multicodec.wrap(cid.codec, cid.digest)], |
||
| 9 | ) |
||
| 10 |