getMulticodecPrefix
Returns the 2-byte multicodec prefix for algorithm.
Supports the algorithms used by did:key and did:peer. Prefixes are the varint encodings from the multicodec table: ed25519-pub (0xed), x25519-pub (0xec), secp256k1-pub (0xe7), p256-pub (0x1200), p384-pub (0x1201), p521-pub (0x1202).
Throws
if the algorithm has no known multicodec prefix.