Skip to main content

MID Binary Specification & Multihash Engine

A Mem ID (MID) (core/mid) is Membuss's core content identifier based on CIDv1 formatted with a mandatory mem prefix.


1. String Representation

mem + b + base32lower( <version> <codec> <multihash> )
  • mem: Static Membuss identifier prefix string.
  • b: Multibase prefix (RFC 4648 Base32 lower without padding).
  • <version>: 0x01 (CIDv1).
  • <codec>: Content codec (0x55 for raw, 0x72 for CodecMemFS).
  • <multihash>: Self-describing multihash digest envelope.

2. Multihash Algorithm Support Table

Algorithm NameMultihash CodeHex CodeOutput SizeDefault in Membuss
BLAKE3multihash.BLAKE30x1e32 BytesYES (Default)
SHA2-256multihash.SHA2_2560x1232 BytesSupported
SHA2-512multihash.SHA2_5120x1364 BytesSupported
KECCAK-256multihash.KECCAK_2560x1b32 BytesSupported
SHAKE-256multihash.SHAKE_2560x1d32 BytesSupported