default
default: { addPrefix: (multicodecStrOrCode: "identity" | "cidv1" | "cidv2" | "cidv3" | "ip4" | "tcp" | "sha1" | "sha2-256" | "sha2-512" | "sha3-512" | "sha3-384" | "sha3-256" | "sha3-224" | "shake-128" | "shake-256" | "keccak-224" | "keccak-256" | "keccak-384" | "keccak-512" | "blake3" | "dccp" | "murmur3-128" | "murmur3-32" | "ip6" | "ip6zone" | "path" | "multicodec" | "multihash" | "multiaddr" | "multibase" | "dns" | "dns4" | "dns6" | "dnsaddr" | "protobuf" | "cbor" | "raw" | "dbl-sha2-256" | "rlp" | "bencode" | "dag-pb" | "dag-cbor" | "libp2p-key" | "git-raw" | "torrent-info" | "torrent-file" | "leofcoin-block" | "leofcoin-tx" | "leofcoin-pr" | "sctp" | "dag-jose" | "dag-cose" | "eth-block" | "eth-block-list" | "eth-tx-trie" | "eth-tx" | "eth-tx-receipt-trie" | "eth-tx-receipt" | "eth-state-trie" | "eth-account-snapshot" | "eth-storage-trie" | "eth-receipt-log-trie" | "eth-reciept-log" | "bitcoin-block" | "bitcoin-tx" | "bitcoin-witness-commitment" | "zcash-block" | "zcash-tx" | "caip-50" | "streamid" | "stellar-block" | "stellar-tx" | "md4" | "md5" | "bmt" | "decred-block" | "decred-tx" | "ipld-ns" | "ipfs-ns" | "swarm-ns" | "ipns-ns" | "zeronet" | "secp256k1-pub" | "bls12_381-g1-pub" | "bls12_381-g2-pub" | "x25519-pub" | "ed25519-pub" | "bls12_381-g1g2-pub" | "dash-block" | "dash-tx" | "swarm-manifest" | "swarm-feed" | "udp" | "p2p-webrtc-star" | "p2p-webrtc-direct" | "p2p-stardust" | "p2p-circuit" | "dag-json" | "udt" | "utp" | "unix" | "thread" | "p2p" | "ipfs" | "https" | "onion" | "onion3" | "garlic64" | "garlic32" | "tls" | "noise" | "quic" | "ws" | "wss" | "p2p-websocket-star" | "http" | "swhid-1-snp" | "json" | "messagepack" | "libp2p-peer-record" | "libp2p-relay-rsvp" | "car-index-sorted" | "sha2-256-trunc254-padded" | "ripemd-128" | "ripemd-160" | "ripemd-256" | "ripemd-320" | "x11" | "p256-pub" | "p384-pub" | "p521-pub" | "ed448-pub" | "x448-pub" | "ed25519-priv" | "secp256k1-priv" | "x25519-priv" | "kangarootwelve" | "sm3-256" | "blake2b-8" | "blake2b-16" | "blake2b-24" | "blake2b-32" | "blake2b-40" | "blake2b-48" | "blake2b-56" | "blake2b-64" | "blake2b-72" | "blake2b-80" | "blake2b-88" | "blake2b-96" | "blake2b-104" | "blake2b-112" | "blake2b-120" | "blake2b-128" | "blake2b-136" | "blake2b-144" | "blake2b-152" | "blake2b-160" | "blake2b-168" | "blake2b-176" | "blake2b-184" | "blake2b-192" | "blake2b-200" | "blake2b-208" | "blake2b-216" | "blake2b-224" | "blake2b-232" | "blake2b-240" | "blake2b-248" | "blake2b-256" | "blake2b-264" | "blake2b-272" | "blake2b-280" | "blake2b-288" | "blake2b-296" | "blake2b-304" | "blake2b-312" | "blake2b-320" | "blake2b-328" | "blake2b-336" | "blake2b-344" | "blake2b-352" | "blake2b-360" | "blake2b-368" | "blake2b-376" | "blake2b-384" | "blake2b-392" | "blake2b-400" | "blake2b-408" | "blake2b-416" | "blake2b-424" | "blake2b-432" | "blake2b-440" | "blake2b-448" | "blake2b-456" | "blake2b-464" | "blake2b-472" | "blake2b-480" | "blake2b-488" | "blake2b-496" | "blake2b-504" | "blake2b-512" | "blake2s-8" | "blake2s-16" | "blake2s-24" | "blake2s-32" | "blake2s-40" | "blake2s-48" | "blake2s-56" | "blake2s-64" | "blake2s-72" | "blake2s-80" | "blake2s-88" | "blake2s-96" | "blake2s-104" | "blake2s-112" | "blake2s-120" | "blake2s-128" | "blake2s-136" | "blake2s-144" | "blake2s-152" | "blake2s-160" | "blake2s-168" | "blake2s-176" | "blake2s-184" | "blake2s-192" | "blake2s-200" | "blake2s-208" | "blake2s-216" | "blake2s-224" | "blake2s-232" | "blake2s-240" | "blake2s-248" | "blake2s-256" | "skein256-8" | "skein256-16" | "skein256-24" | "skein256-32" | "skein256-40" | "skein256-48" | "skein256-56" | "skein256-64" | "skein256-72" | "skein256-80" | "skein256-88" | "skein256-96" | "skein256-104" | "skein256-112" | "skein256-120" | "skein256-128" | "skein256-136" | "skein256-144" | "skein256-152" | "skein256-160" | "skein256-168" | "skein256-176" | "skein256-184" | "skein256-192" | "skein256-200" | "skein256-208" | "skein256-216" | "skein256-224" | "skein256-232" | "skein256-240" | "skein256-248" | "skein256-256" | "skein512-8" | "skein512-16" | "skein512-24" | "skein512-32" | "skein512-40" | "skein512-48" | "skein512-56" | "skein512-64" | "skein512-72" | "skein512-80" | "skein512-88" | "skein512-96" | "skein512-104" | "skein512-112" | "skein512-120" | "skein512-128" | "skein512-136" | "skein512-144" | "skein512-152" | "skein512-160" | "skein512-168" | "skein512-176" | "skein512-184" | "skein512-192" | "skein512-200" | "skein512-208" | "skein512-216" | "skein512-224" | "skein512-232" | "skein512-240" | "skein512-248" | "skein512-256" | "skein512-264" | "skein512-272" | "skein512-280" | "skein512-288" | "skein512-296" | "skein512-304" | "skein512-312" | "skein512-320" | "skein512-328" | "skein512-336" | "skein512-344" | "skein512-352" | "skein512-360" | "skein512-368" | "skein512-376" | "skein512-384" | "skein512-392" | "skein512-400" | "skein512-408" | "skein512-416" | "skein512-424" | "skein512-432" | "skein512-440" | "skein512-448" | "skein512-456" | "skein512-464" | "skein512-472" | "skein512-480" | "skein512-488" | "skein512-496" | "skein512-504" | "skein512-512" | "skein1024-8" | "skein1024-16" | "skein1024-24" | "skein1024-32" | "skein1024-40" | "skein1024-48" | "skein1024-56" | "skein1024-64" | "skein1024-72" | "skein1024-80" | "skein1024-88" | "skein1024-96" | "skein1024-104" | "skein1024-112" | "skein1024-120" | "skein1024-128" | "skein1024-136" | "skein1024-144" | "skein1024-152" | "skein1024-160" | "skein1024-168" | "skein1024-176" | "skein1024-184" | "skein1024-192" | "skein1024-200" | "skein1024-208" | "skein1024-216" | "skein1024-224" | "skein1024-232" | "skein1024-240" | "skein1024-248" | "skein1024-256" | "skein1024-264" | "skein1024-272" | "skein1024-280" | "skein1024-288" | "skein1024-296" | "skein1024-304" | "skein1024-312" | "skein1024-320" | "skein1024-328" | "skein1024-336" | "skein1024-344" | "skein1024-352" | "skein1024-360" | "skein1024-368" | "skein1024-376" | "skein1024-384" | "skein1024-392" | "skein1024-400" | "skein1024-408" | "skein1024-416" | "skein1024-424" | "skein1024-432" | "skein1024-440" | "skein1024-448" | "skein1024-456" | "skein1024-464" | "skein1024-472" | "skein1024-480" | "skein1024-488" | "skein1024-496" | "skein1024-504" | "skein1024-512" | "skein1024-520" | "skein1024-528" | "skein1024-536" | "skein1024-544" | "skein1024-552" | "skein1024-560" | "skein1024-568" | "skein1024-576" | "skein1024-584" | "skein1024-592" | "skein1024-600" | "skein1024-608" | "skein1024-616" | "skein1024-624" | "skein1024-632" | "skein1024-640" | "skein1024-648" | "skein1024-656" | "skein1024-664" | "skein1024-672" | "skein1024-680" | "skein1024-688" | "skein1024-696" | "skein1024-704" | "skein1024-712" | "skein1024-720" | "skein1024-728" | "skein1024-736" | "skein1024-744" | "skein1024-752" | "skein1024-760" | "skein1024-768" | "skein1024-776" | "skein1024-784" | "skein1024-792" | "skein1024-800" | "skein1024-808" | "skein1024-816" | "skein1024-824" | "skein1024-832" | "skein1024-840" | "skein1024-848" | "skein1024-856" | "skein1024-864" | "skein1024-872" | "skein1024-880" | "skein1024-888" | "skein1024-896" | "skein1024-904" | "skein1024-912" | "skein1024-920" | "skein1024-928" | "skein1024-936" | "skein1024-944" | "skein1024-952" | "skein1024-960" | "skein1024-968" | "skein1024-976" | "skein1024-984" | "skein1024-992" | "skein1024-1000" | "skein1024-1008" | "skein1024-1016" | "skein1024-1024" | "poseidon-bls12_381-a2-fc1" | "poseidon-bls12_381-a2-fc1-sc" | "zeroxcert-imprint-256" | "fil-commitment-unsealed" | "fil-commitment-sealed" | "holochain-adr-v0" | "holochain-adr-v1" | "holochain-key-v0" | "holochain-key-v1" | "holochain-sig-v0" | "holochain-sig-v1" | "skynet-ns" | "arweave-ns" | Uint8Array, data: Uint8Array) => Uint8Array; codeToName: Record<CodecCode, CodecName>; getCode: (prefixedData: Uint8Array) => CodecCode; getCodeFromData: (prefixedData: Uint8Array) => CodecCode; getCodeFromName: (name: CodecName) => CodecCode; getCodeVarint: (name: CodecName) => Uint8Array; getCodec: (prefixedData: Uint8Array) => CodecName; getName: (codec: CodecCode) => CodecName; getNameFromCode: (codec: CodecCode) => CodecName; getNameFromData: (prefixedData: Uint8Array) => CodecName; getNumber: (name: CodecName) => CodecCode; getVarint: (code: CodecCode) => number[]; getVarintFromCode: (code: CodecCode) => Uint8Array; getVarintFromName: (name: CodecName) => Uint8Array; nameToCode: Readonly<Record<CodecName, CodecCode>>; nameToVarint: Record<CodecName, Uint8Array>; rmPrefix: (data: Uint8Array) => Uint8Array; ARWEAVE_NS: any; BENCODE: any; BITCOIN_BLOCK: any; BITCOIN_TX: any; BITCOIN_WITNESS_COMMITMENT: any; BLAKE2B_104: any; BLAKE2B_112: any; BLAKE2B_120: any; BLAKE2B_128: any; BLAKE2B_136: any; BLAKE2B_144: any; BLAKE2B_152: any; BLAKE2B_16: any; BLAKE2B_160: any; BLAKE2B_168: any; BLAKE2B_176: any; BLAKE2B_184: any; BLAKE2B_192: any; BLAKE2B_200: any; BLAKE2B_208: any; BLAKE2B_216: any; BLAKE2B_224: any; BLAKE2B_232: any; BLAKE2B_24: any; BLAKE2B_240: any; BLAKE2B_248: any; BLAKE2B_256: any; BLAKE2B_264: any; BLAKE2B_272: any; BLAKE2B_280: any; BLAKE2B_288: any; BLAKE2B_296: any; BLAKE2B_304: any; BLAKE2B_312: any; BLAKE2B_32: any; BLAKE2B_320: any; BLAKE2B_328: any; BLAKE2B_336: any; BLAKE2B_344: any; BLAKE2B_352: any; BLAKE2B_360: any; BLAKE2B_368: any; BLAKE2B_376: any; BLAKE2B_384: any; BLAKE2B_392: any; BLAKE2B_40: any; BLAKE2B_400: any; BLAKE2B_408: any; BLAKE2B_416: any; BLAKE2B_424: any; BLAKE2B_432: any; BLAKE2B_440: any; BLAKE2B_448: any; BLAKE2B_456: any; BLAKE2B_464: any; BLAKE2B_472: any; BLAKE2B_48: any; BLAKE2B_480: any; BLAKE2B_488: any; BLAKE2B_496: any; BLAKE2B_504: any; BLAKE2B_512: any; BLAKE2B_56: any; BLAKE2B_64: any; BLAKE2B_72: any; BLAKE2B_8: any; BLAKE2B_80: any; BLAKE2B_88: any; BLAKE2B_96: any; BLAKE2S_104: any; BLAKE2S_112: any; BLAKE2S_120: any; BLAKE2S_128: any; BLAKE2S_136: any; BLAKE2S_144: any; BLAKE2S_152: any; BLAKE2S_16: any; BLAKE2S_160: any; BLAKE2S_168: any; BLAKE2S_176: any; BLAKE2S_184: any; BLAKE2S_192: any; BLAKE2S_200: any; BLAKE2S_208: any; BLAKE2S_216: any; BLAKE2S_224: any; BLAKE2S_232: any; BLAKE2S_24: any; BLAKE2S_240: any; BLAKE2S_248: any; BLAKE2S_256: any; BLAKE2S_32: any; BLAKE2S_40: any; BLAKE2S_48: any; BLAKE2S_56: any; BLAKE2S_64: any; BLAKE2S_72: any; BLAKE2S_8: any; BLAKE2S_80: any; BLAKE2S_88: any; BLAKE2S_96: any; BLAKE3: any; BLS12_381_G1G2_PUB: any; BLS12_381_G1_PUB: any; BLS12_381_G2_PUB: any; BMT: any; CAIP_50: any; CAR_INDEX_SORTED: any; CBOR: any; CIDV1: any; CIDV2: any; CIDV3: any; DAG_CBOR: any; DAG_COSE: any; DAG_JOSE: any; DAG_JSON: any; DAG_PB: any; DASH_BLOCK: any; DASH_TX: any; DBL_SHA2_256: any; DCCP: any; DECRED_BLOCK: any; DECRED_TX: any; DNS: any; DNS4: any; DNS6: any; DNSADDR: any; ED25519_PRIV: any; ED25519_PUB: any; ED448_PUB: any; ETH_ACCOUNT_SNAPSHOT: any; ETH_BLOCK: any; ETH_BLOCK_LIST: any; ETH_RECEIPT_LOG_TRIE: any; ETH_RECIEPT_LOG: any; ETH_STATE_TRIE: any; ETH_STORAGE_TRIE: any; ETH_TX: any; ETH_TX_RECEIPT: any; ETH_TX_RECEIPT_TRIE: any; ETH_TX_TRIE: any; FIL_COMMITMENT_SEALED: any; FIL_COMMITMENT_UNSEALED: any; GARLIC32: any; GARLIC64: any; GIT_RAW: any; HOLOCHAIN_ADR_V0: any; HOLOCHAIN_ADR_V1: any; HOLOCHAIN_KEY_V0: any; HOLOCHAIN_KEY_V1: any; HOLOCHAIN_SIG_V0: any; HOLOCHAIN_SIG_V1: any; HTTP: any; HTTPS: any; IDENTITY: any; IP4: any; IP6: any; IP6ZONE: any; IPFS: any; IPFS_NS: any; IPLD_NS: any; IPNS_NS: any; JSON: any; KANGAROOTWELVE: any; KECCAK_224: any; KECCAK_256: any; KECCAK_384: any; KECCAK_512: any; LEOFCOIN_BLOCK: any; LEOFCOIN_PR: any; LEOFCOIN_TX: any; LIBP2P_KEY: any; LIBP2P_PEER_RECORD: any; LIBP2P_RELAY_RSVP: any; MD4: any; MD5: any; MESSAGEPACK: any; MULTIADDR: any; MULTIBASE: any; MULTICODEC: any; MULTIHASH: any; MURMUR3_128: any; MURMUR3_32: any; NOISE: any; ONION: any; ONION3: any; P256_PUB: any; P2P: any; P2P_CIRCUIT: any; P2P_STARDUST: any; P2P_WEBRTC_DIRECT: any; P2P_WEBRTC_STAR: any; P2P_WEBSOCKET_STAR: any; P384_PUB: any; P521_PUB: any; PATH: any; POSEIDON_BLS12_381_A2_FC1: any; POSEIDON_BLS12_381_A2_FC1_SC: any; PROTOBUF: any; QUIC: any; RAW: any; RIPEMD_128: any; RIPEMD_160: any; RIPEMD_256: any; RIPEMD_320: any; RLP: any; SCTP: any; SECP256K1_PRIV: any; SECP256K1_PUB: any; SHA1: any; SHA2_256: any; SHA2_256_TRUNC254_PADDED: any; SHA2_512: any; SHA3_224: any; SHA3_256: any; SHA3_384: any; SHA3_512: any; SHAKE_128: any; SHAKE_256: any; SKEIN1024_1000: any; SKEIN1024_1008: any; SKEIN1024_1016: any; SKEIN1024_1024: any; SKEIN1024_104: any; SKEIN1024_112: any; SKEIN1024_120: any; SKEIN1024_128: any; SKEIN1024_136: any; SKEIN1024_144: any; SKEIN1024_152: any; SKEIN1024_16: any; SKEIN1024_160: any; SKEIN1024_168: any; SKEIN1024_176: any; SKEIN1024_184: any; SKEIN1024_192: any; SKEIN1024_200: any; SKEIN1024_208: any; SKEIN1024_216: any; SKEIN1024_224: any; SKEIN1024_232: any; SKEIN1024_24: any; SKEIN1024_240: any; SKEIN1024_248: any; SKEIN1024_256: any; SKEIN1024_264: any; SKEIN1024_272: any; SKEIN1024_280: any; SKEIN1024_288: any; SKEIN1024_296: any; SKEIN1024_304: any; SKEIN1024_312: any; SKEIN1024_32: any; SKEIN1024_320: any; SKEIN1024_328: any; SKEIN1024_336: any; SKEIN1024_344: any; SKEIN1024_352: any; SKEIN1024_360: any; SKEIN1024_368: any; SKEIN1024_376: any; SKEIN1024_384: any; SKEIN1024_392: any; SKEIN1024_40: any; SKEIN1024_400: any; SKEIN1024_408: any; SKEIN1024_416: any; SKEIN1024_424: any; SKEIN1024_432: any; SKEIN1024_440: any; SKEIN1024_448: any; SKEIN1024_456: any; SKEIN1024_464: any; SKEIN1024_472: any; SKEIN1024_48: any; SKEIN1024_480: any; SKEIN1024_488: any; SKEIN1024_496: any; SKEIN1024_504: any; SKEIN1024_512: any; SKEIN1024_520: any; SKEIN1024_528: any; SKEIN1024_536: any; SKEIN1024_544: any; SKEIN1024_552: any; SKEIN1024_56: any; SKEIN1024_560: any; SKEIN1024_568: any; SKEIN1024_576: any; SKEIN1024_584: any; SKEIN1024_592: any; SKEIN1024_600: any; SKEIN1024_608: any; SKEIN1024_616: any; SKEIN1024_624: any; SKEIN1024_632: any; SKEIN1024_64: any; SKEIN1024_640: any; SKEIN1024_648: any; SKEIN1024_656: any; SKEIN1024_664: any; SKEIN1024_672: any; SKEIN1024_680: any; SKEIN1024_688: any; SKEIN1024_696: any; SKEIN1024_704: any; SKEIN1024_712: any; SKEIN1024_72: any; SKEIN1024_720: any; SKEIN1024_728: any; SKEIN1024_736: any; SKEIN1024_744: any; SKEIN1024_752: any; SKEIN1024_760: any; SKEIN1024_768: any; SKEIN1024_776: any; SKEIN1024_784: any; SKEIN1024_792: any; SKEIN1024_8: any; SKEIN1024_80: any; SKEIN1024_800: any; SKEIN1024_808: any; SKEIN1024_816: any; SKEIN1024_824: any; SKEIN1024_832: any; SKEIN1024_840: any; SKEIN1024_848: any; SKEIN1024_856: any; SKEIN1024_864: any; SKEIN1024_872: any; SKEIN1024_88: any; SKEIN1024_880: any; SKEIN1024_888: any; SKEIN1024_896: any; SKEIN1024_904: any; SKEIN1024_912: any; SKEIN1024_920: any; SKEIN1024_928: any; SKEIN1024_936: any; SKEIN1024_944: any; SKEIN1024_952: any; SKEIN1024_96: any; SKEIN1024_960: any; SKEIN1024_968: any; SKEIN1024_976: any; SKEIN1024_984: any; SKEIN1024_992: any; SKEIN256_104: any; SKEIN256_112: any; SKEIN256_120: any; SKEIN256_128: any; SKEIN256_136: any; SKEIN256_144: any; SKEIN256_152: any; SKEIN256_16: any; SKEIN256_160: any; SKEIN256_168: any; SKEIN256_176: any; SKEIN256_184: any; SKEIN256_192: any; SKEIN256_200: any; SKEIN256_208: any; SKEIN256_216: any; SKEIN256_224: any; SKEIN256_232: any; SKEIN256_24: any; SKEIN256_240: any; SKEIN256_248: any; SKEIN256_256: any; SKEIN256_32: any; SKEIN256_40: any; SKEIN256_48: any; SKEIN256_56: any; SKEIN256_64: any; SKEIN256_72: any; SKEIN256_8: any; SKEIN256_80: any; SKEIN256_88: any; SKEIN256_96: any; SKEIN512_104: any; SKEIN512_112: any; SKEIN512_120: any; SKEIN512_128: any; SKEIN512_136: any; SKEIN512_144: any; SKEIN512_152: any; SKEIN512_16: any; SKEIN512_160: any; SKEIN512_168: any; SKEIN512_176: any; SKEIN512_184: any; SKEIN512_192: any; SKEIN512_200: any; SKEIN512_208: any; SKEIN512_216: any; SKEIN512_224: any; SKEIN512_232: any; SKEIN512_24: any; SKEIN512_240: any; SKEIN512_248: any; SKEIN512_256: any; SKEIN512_264: any; SKEIN512_272: any; SKEIN512_280: any; SKEIN512_288: any; SKEIN512_296: any; SKEIN512_304: any; SKEIN512_312: any; SKEIN512_32: any; SKEIN512_320: any; SKEIN512_328: any; SKEIN512_336: any; SKEIN512_344: any; SKEIN512_352: any; SKEIN512_360: any; SKEIN512_368: any; SKEIN512_376: any; SKEIN512_384: any; SKEIN512_392: any; SKEIN512_40: any; SKEIN512_400: any; SKEIN512_408: any; SKEIN512_416: any; SKEIN512_424: any; SKEIN512_432: any; SKEIN512_440: any; SKEIN512_448: any; SKEIN512_456: any; SKEIN512_464: any; SKEIN512_472: any; SKEIN512_48: any; SKEIN512_480: any; SKEIN512_488: any; SKEIN512_496: any; SKEIN512_504: any; SKEIN512_512: any; SKEIN512_56: any; SKEIN512_64: any; SKEIN512_72: any; SKEIN512_8: any; SKEIN512_80: any; SKEIN512_88: any; SKEIN512_96: any; SKYNET_NS: any; SM3_256: any; STELLAR_BLOCK: any; STELLAR_TX: any; STREAMID: any; SWARM_FEED: any; SWARM_MANIFEST: any; SWARM_NS: any; SWHID_1_SNP: any; TCP: any; THREAD: any; TLS: any; TORRENT_FILE: any; TORRENT_INFO: any; UDP: any; UDT: any; UNIX: any; UTP: any; WS: any; WSS: any; X11: any; X25519_PRIV: any; X25519_PUB: any; X448_PUB: any; ZCASH_BLOCK: any; ZCASH_TX: any; ZERONET: any; ZEROXCERT_IMPRINT_256: any }
Type declaration
-
addPrefix: (multicodecStrOrCode: "identity" | "cidv1" | "cidv2" | "cidv3" | "ip4" | "tcp" | "sha1" | "sha2-256" | "sha2-512" | "sha3-512" | "sha3-384" | "sha3-256" | "sha3-224" | "shake-128" | "shake-256" | "keccak-224" | "keccak-256" | "keccak-384" | "keccak-512" | "blake3" | "dccp" | "murmur3-128" | "murmur3-32" | "ip6" | "ip6zone" | "path" | "multicodec" | "multihash" | "multiaddr" | "multibase" | "dns" | "dns4" | "dns6" | "dnsaddr" | "protobuf" | "cbor" | "raw" | "dbl-sha2-256" | "rlp" | "bencode" | "dag-pb" | "dag-cbor" | "libp2p-key" | "git-raw" | "torrent-info" | "torrent-file" | "leofcoin-block" | "leofcoin-tx" | "leofcoin-pr" | "sctp" | "dag-jose" | "dag-cose" | "eth-block" | "eth-block-list" | "eth-tx-trie" | "eth-tx" | "eth-tx-receipt-trie" | "eth-tx-receipt" | "eth-state-trie" | "eth-account-snapshot" | "eth-storage-trie" | "eth-receipt-log-trie" | "eth-reciept-log" | "bitcoin-block" | "bitcoin-tx" | "bitcoin-witness-commitment" | "zcash-block" | "zcash-tx" | "caip-50" | "streamid" | "stellar-block" | "stellar-tx" | "md4" | "md5" | "bmt" | "decred-block" | "decred-tx" | "ipld-ns" | "ipfs-ns" | "swarm-ns" | "ipns-ns" | "zeronet" | "secp256k1-pub" | "bls12_381-g1-pub" | "bls12_381-g2-pub" | "x25519-pub" | "ed25519-pub" | "bls12_381-g1g2-pub" | "dash-block" | "dash-tx" | "swarm-manifest" | "swarm-feed" | "udp" | "p2p-webrtc-star" | "p2p-webrtc-direct" | "p2p-stardust" | "p2p-circuit" | "dag-json" | "udt" | "utp" | "unix" | "thread" | "p2p" | "ipfs" | "https" | "onion" | "onion3" | "garlic64" | "garlic32" | "tls" | "noise" | "quic" | "ws" | "wss" | "p2p-websocket-star" | "http" | "swhid-1-snp" | "json" | "messagepack" | "libp2p-peer-record" | "libp2p-relay-rsvp" | "car-index-sorted" | "sha2-256-trunc254-padded" | "ripemd-128" | "ripemd-160" | "ripemd-256" | "ripemd-320" | "x11" | "p256-pub" | "p384-pub" | "p521-pub" | "ed448-pub" | "x448-pub" | "ed25519-priv" | "secp256k1-priv" | "x25519-priv" | "kangarootwelve" | "sm3-256" | "blake2b-8" | "blake2b-16" | "blake2b-24" | "blake2b-32" | "blake2b-40" | "blake2b-48" | "blake2b-56" | "blake2b-64" | "blake2b-72" | "blake2b-80" | "blake2b-88" | "blake2b-96" | "blake2b-104" | "blake2b-112" | "blake2b-120" | "blake2b-128" | "blake2b-136" | "blake2b-144" | "blake2b-152" | "blake2b-160" | "blake2b-168" | "blake2b-176" | "blake2b-184" | "blake2b-192" | "blake2b-200" | "blake2b-208" | "blake2b-216" | "blake2b-224" | "blake2b-232" | "blake2b-240" | "blake2b-248" | "blake2b-256" | "blake2b-264" | "blake2b-272" | "blake2b-280" | "blake2b-288" | "blake2b-296" | "blake2b-304" | "blake2b-312" | "blake2b-320" | "blake2b-328" | "blake2b-336" | "blake2b-344" | "blake2b-352" | "blake2b-360" | "blake2b-368" | "blake2b-376" | "blake2b-384" | "blake2b-392" | "blake2b-400" | "blake2b-408" | "blake2b-416" | "blake2b-424" | "blake2b-432" | "blake2b-440" | "blake2b-448" | "blake2b-456" | "blake2b-464" | "blake2b-472" | "blake2b-480" | "blake2b-488" | "blake2b-496" | "blake2b-504" | "blake2b-512" | "blake2s-8" | "blake2s-16" | "blake2s-24" | "blake2s-32" | "blake2s-40" | "blake2s-48" | "blake2s-56" | "blake2s-64" | "blake2s-72" | "blake2s-80" | "blake2s-88" | "blake2s-96" | "blake2s-104" | "blake2s-112" | "blake2s-120" | "blake2s-128" | "blake2s-136" | "blake2s-144" | "blake2s-152" | "blake2s-160" | "blake2s-168" | "blake2s-176" | "blake2s-184" | "blake2s-192" | "blake2s-200" | "blake2s-208" | "blake2s-216" | "blake2s-224" | "blake2s-232" | "blake2s-240" | "blake2s-248" | "blake2s-256" | "skein256-8" | "skein256-16" | "skein256-24" | "skein256-32" | "skein256-40" | "skein256-48" | "skein256-56" | "skein256-64" | "skein256-72" | "skein256-80" | "skein256-88" | "skein256-96" | "skein256-104" | "skein256-112" | "skein256-120" | "skein256-128" | "skein256-136" | "skein256-144" | "skein256-152" | "skein256-160" | "skein256-168" | "skein256-176" | "skein256-184" | "skein256-192" | "skein256-200" | "skein256-208" | "skein256-216" | "skein256-224" | "skein256-232" | "skein256-240" | "skein256-248" | "skein256-256" | "skein512-8" | "skein512-16" | "skein512-24" | "skein512-32" | "skein512-40" | "skein512-48" | "skein512-56" | "skein512-64" | "skein512-72" | "skein512-80" | "skein512-88" | "skein512-96" | "skein512-104" | "skein512-112" | "skein512-120" | "skein512-128" | "skein512-136" | "skein512-144" | "skein512-152" | "skein512-160" | "skein512-168" | "skein512-176" | "skein512-184" | "skein512-192" | "skein512-200" | "skein512-208" | "skein512-216" | "skein512-224" | "skein512-232" | "skein512-240" | "skein512-248" | "skein512-256" | "skein512-264" | "skein512-272" | "skein512-280" | "skein512-288" | "skein512-296" | "skein512-304" | "skein512-312" | "skein512-320" | "skein512-328" | "skein512-336" | "skein512-344" | "skein512-352" | "skein512-360" | "skein512-368" | "skein512-376" | "skein512-384" | "skein512-392" | "skein512-400" | "skein512-408" | "skein512-416" | "skein512-424" | "skein512-432" | "skein512-440" | "skein512-448" | "skein512-456" | "skein512-464" | "skein512-472" | "skein512-480" | "skein512-488" | "skein512-496" | "skein512-504" | "skein512-512" | "skein1024-8" | "skein1024-16" | "skein1024-24" | "skein1024-32" | "skein1024-40" | "skein1024-48" | "skein1024-56" | "skein1024-64" | "skein1024-72" | "skein1024-80" | "skein1024-88" | "skein1024-96" | "skein1024-104" | "skein1024-112" | "skein1024-120" | "skein1024-128" | "skein1024-136" | "skein1024-144" | "skein1024-152" | "skein1024-160" | "skein1024-168" | "skein1024-176" | "skein1024-184" | "skein1024-192" | "skein1024-200" | "skein1024-208" | "skein1024-216" | "skein1024-224" | "skein1024-232" | "skein1024-240" | "skein1024-248" | "skein1024-256" | "skein1024-264" | "skein1024-272" | "skein1024-280" | "skein1024-288" | "skein1024-296" | "skein1024-304" | "skein1024-312" | "skein1024-320" | "skein1024-328" | "skein1024-336" | "skein1024-344" | "skein1024-352" | "skein1024-360" | "skein1024-368" | "skein1024-376" | "skein1024-384" | "skein1024-392" | "skein1024-400" | "skein1024-408" | "skein1024-416" | "skein1024-424" | "skein1024-432" | "skein1024-440" | "skein1024-448" | "skein1024-456" | "skein1024-464" | "skein1024-472" | "skein1024-480" | "skein1024-488" | "skein1024-496" | "skein1024-504" | "skein1024-512" | "skein1024-520" | "skein1024-528" | "skein1024-536" | "skein1024-544" | "skein1024-552" | "skein1024-560" | "skein1024-568" | "skein1024-576" | "skein1024-584" | "skein1024-592" | "skein1024-600" | "skein1024-608" | "skein1024-616" | "skein1024-624" | "skein1024-632" | "skein1024-640" | "skein1024-648" | "skein1024-656" | "skein1024-664" | "skein1024-672" | "skein1024-680" | "skein1024-688" | "skein1024-696" | "skein1024-704" | "skein1024-712" | "skein1024-720" | "skein1024-728" | "skein1024-736" | "skein1024-744" | "skein1024-752" | "skein1024-760" | "skein1024-768" | "skein1024-776" | "skein1024-784" | "skein1024-792" | "skein1024-800" | "skein1024-808" | "skein1024-816" | "skein1024-824" | "skein1024-832" | "skein1024-840" | "skein1024-848" | "skein1024-856" | "skein1024-864" | "skein1024-872" | "skein1024-880" | "skein1024-888" | "skein1024-896" | "skein1024-904" | "skein1024-912" | "skein1024-920" | "skein1024-928" | "skein1024-936" | "skein1024-944" | "skein1024-952" | "skein1024-960" | "skein1024-968" | "skein1024-976" | "skein1024-984" | "skein1024-992" | "skein1024-1000" | "skein1024-1008" | "skein1024-1016" | "skein1024-1024" | "poseidon-bls12_381-a2-fc1" | "poseidon-bls12_381-a2-fc1-sc" | "zeroxcert-imprint-256" | "fil-commitment-unsealed" | "fil-commitment-sealed" | "holochain-adr-v0" | "holochain-adr-v1" | "holochain-key-v0" | "holochain-key-v1" | "holochain-sig-v0" | "holochain-sig-v1" | "skynet-ns" | "arweave-ns" | Uint8Array, data: Uint8Array) => Uint8Array
-
- (multicodecStrOrCode: "identity" | "cidv1" | "cidv2" | "cidv3" | "ip4" | "tcp" | "sha1" | "sha2-256" | "sha2-512" | "sha3-512" | "sha3-384" | "sha3-256" | "sha3-224" | "shake-128" | "shake-256" | "keccak-224" | "keccak-256" | "keccak-384" | "keccak-512" | "blake3" | "dccp" | "murmur3-128" | "murmur3-32" | "ip6" | "ip6zone" | "path" | "multicodec" | "multihash" | "multiaddr" | "multibase" | "dns" | "dns4" | "dns6" | "dnsaddr" | "protobuf" | "cbor" | "raw" | "dbl-sha2-256" | "rlp" | "bencode" | "dag-pb" | "dag-cbor" | "libp2p-key" | "git-raw" | "torrent-info" | "torrent-file" | "leofcoin-block" | "leofcoin-tx" | "leofcoin-pr" | "sctp" | "dag-jose" | "dag-cose" | "eth-block" | "eth-block-list" | "eth-tx-trie" | "eth-tx" | "eth-tx-receipt-trie" | "eth-tx-receipt" | "eth-state-trie" | "eth-account-snapshot" | "eth-storage-trie" | "eth-receipt-log-trie" | "eth-reciept-log" | "bitcoin-block" | "bitcoin-tx" | "bitcoin-witness-commitment" | "zcash-block" | "zcash-tx" | "caip-50" | "streamid" | "stellar-block" | "stellar-tx" | "md4" | "md5" | "bmt" | "decred-block" | "decred-tx" | "ipld-ns" | "ipfs-ns" | "swarm-ns" | "ipns-ns" | "zeronet" | "secp256k1-pub" | "bls12_381-g1-pub" | "bls12_381-g2-pub" | "x25519-pub" | "ed25519-pub" | "bls12_381-g1g2-pub" | "dash-block" | "dash-tx" | "swarm-manifest" | "swarm-feed" | "udp" | "p2p-webrtc-star" | "p2p-webrtc-direct" | "p2p-stardust" | "p2p-circuit" | "dag-json" | "udt" | "utp" | "unix" | "thread" | "p2p" | "ipfs" | "https" | "onion" | "onion3" | "garlic64" | "garlic32" | "tls" | "noise" | "quic" | "ws" | "wss" | "p2p-websocket-star" | "http" | "swhid-1-snp" | "json" | "messagepack" | "libp2p-peer-record" | "libp2p-relay-rsvp" | "car-index-sorted" | "sha2-256-trunc254-padded" | "ripemd-128" | "ripemd-160" | "ripemd-256" | "ripemd-320" | "x11" | "p256-pub" | "p384-pub" | "p521-pub" | "ed448-pub" | "x448-pub" | "ed25519-priv" | "secp256k1-priv" | "x25519-priv" | "kangarootwelve" | "sm3-256" | "blake2b-8" | "blake2b-16" | "blake2b-24" | "blake2b-32" | "blake2b-40" | "blake2b-48" | "blake2b-56" | "blake2b-64" | "blake2b-72" | "blake2b-80" | "blake2b-88" | "blake2b-96" | "blake2b-104" | "blake2b-112" | "blake2b-120" | "blake2b-128" | "blake2b-136" | "blake2b-144" | "blake2b-152" | "blake2b-160" | "blake2b-168" | "blake2b-176" | "blake2b-184" | "blake2b-192" | "blake2b-200" | "blake2b-208" | "blake2b-216" | "blake2b-224" | "blake2b-232" | "blake2b-240" | "blake2b-248" | "blake2b-256" | "blake2b-264" | "blake2b-272" | "blake2b-280" | "blake2b-288" | "blake2b-296" | "blake2b-304" | "blake2b-312" | "blake2b-320" | "blake2b-328" | "blake2b-336" | "blake2b-344" | "blake2b-352" | "blake2b-360" | "blake2b-368" | "blake2b-376" | "blake2b-384" | "blake2b-392" | "blake2b-400" | "blake2b-408" | "blake2b-416" | "blake2b-424" | "blake2b-432" | "blake2b-440" | "blake2b-448" | "blake2b-456" | "blake2b-464" | "blake2b-472" | "blake2b-480" | "blake2b-488" | "blake2b-496" | "blake2b-504" | "blake2b-512" | "blake2s-8" | "blake2s-16" | "blake2s-24" | "blake2s-32" | "blake2s-40" | "blake2s-48" | "blake2s-56" | "blake2s-64" | "blake2s-72" | "blake2s-80" | "blake2s-88" | "blake2s-96" | "blake2s-104" | "blake2s-112" | "blake2s-120" | "blake2s-128" | "blake2s-136" | "blake2s-144" | "blake2s-152" | "blake2s-160" | "blake2s-168" | "blake2s-176" | "blake2s-184" | "blake2s-192" | "blake2s-200" | "blake2s-208" | "blake2s-216" | "blake2s-224" | "blake2s-232" | "blake2s-240" | "blake2s-248" | "blake2s-256" | "skein256-8" | "skein256-16" | "skein256-24" | "skein256-32" | "skein256-40" | "skein256-48" | "skein256-56" | "skein256-64" | "skein256-72" | "skein256-80" | "skein256-88" | "skein256-96" | "skein256-104" | "skein256-112" | "skein256-120" | "skein256-128" | "skein256-136" | "skein256-144" | "skein256-152" | "skein256-160" | "skein256-168" | "skein256-176" | "skein256-184" | "skein256-192" | "skein256-200" | "skein256-208" | "skein256-216" | "skein256-224" | "skein256-232" | "skein256-240" | "skein256-248" | "skein256-256" | "skein512-8" | "skein512-16" | "skein512-24" | "skein512-32" | "skein512-40" | "skein512-48" | "skein512-56" | "skein512-64" | "skein512-72" | "skein512-80" | "skein512-88" | "skein512-96" | "skein512-104" | "skein512-112" | "skein512-120" | "skein512-128" | "skein512-136" | "skein512-144" | "skein512-152" | "skein512-160" | "skein512-168" | "skein512-176" | "skein512-184" | "skein512-192" | "skein512-200" | "skein512-208" | "skein512-216" | "skein512-224" | "skein512-232" | "skein512-240" | "skein512-248" | "skein512-256" | "skein512-264" | "skein512-272" | "skein512-280" | "skein512-288" | "skein512-296" | "skein512-304" | "skein512-312" | "skein512-320" | "skein512-328" | "skein512-336" | "skein512-344" | "skein512-352" | "skein512-360" | "skein512-368" | "skein512-376" | "skein512-384" | "skein512-392" | "skein512-400" | "skein512-408" | "skein512-416" | "skein512-424" | "skein512-432" | "skein512-440" | "skein512-448" | "skein512-456" | "skein512-464" | "skein512-472" | "skein512-480" | "skein512-488" | "skein512-496" | "skein512-504" | "skein512-512" | "skein1024-8" | "skein1024-16" | "skein1024-24" | "skein1024-32" | "skein1024-40" | "skein1024-48" | "skein1024-56" | "skein1024-64" | "skein1024-72" | "skein1024-80" | "skein1024-88" | "skein1024-96" | "skein1024-104" | "skein1024-112" | "skein1024-120" | "skein1024-128" | "skein1024-136" | "skein1024-144" | "skein1024-152" | "skein1024-160" | "skein1024-168" | "skein1024-176" | "skein1024-184" | "skein1024-192" | "skein1024-200" | "skein1024-208" | "skein1024-216" | "skein1024-224" | "skein1024-232" | "skein1024-240" | "skein1024-248" | "skein1024-256" | "skein1024-264" | "skein1024-272" | "skein1024-280" | "skein1024-288" | "skein1024-296" | "skein1024-304" | "skein1024-312" | "skein1024-320" | "skein1024-328" | "skein1024-336" | "skein1024-344" | "skein1024-352" | "skein1024-360" | "skein1024-368" | "skein1024-376" | "skein1024-384" | "skein1024-392" | "skein1024-400" | "skein1024-408" | "skein1024-416" | "skein1024-424" | "skein1024-432" | "skein1024-440" | "skein1024-448" | "skein1024-456" | "skein1024-464" | "skein1024-472" | "skein1024-480" | "skein1024-488" | "skein1024-496" | "skein1024-504" | "skein1024-512" | "skein1024-520" | "skein1024-528" | "skein1024-536" | "skein1024-544" | "skein1024-552" | "skein1024-560" | "skein1024-568" | "skein1024-576" | "skein1024-584" | "skein1024-592" | "skein1024-600" | "skein1024-608" | "skein1024-616" | "skein1024-624" | "skein1024-632" | "skein1024-640" | "skein1024-648" | "skein1024-656" | "skein1024-664" | "skein1024-672" | "skein1024-680" | "skein1024-688" | "skein1024-696" | "skein1024-704" | "skein1024-712" | "skein1024-720" | "skein1024-728" | "skein1024-736" | "skein1024-744" | "skein1024-752" | "skein1024-760" | "skein1024-768" | "skein1024-776" | "skein1024-784" | "skein1024-792" | "skein1024-800" | "skein1024-808" | "skein1024-816" | "skein1024-824" | "skein1024-832" | "skein1024-840" | "skein1024-848" | "skein1024-856" | "skein1024-864" | "skein1024-872" | "skein1024-880" | "skein1024-888" | "skein1024-896" | "skein1024-904" | "skein1024-912" | "skein1024-920" | "skein1024-928" | "skein1024-936" | "skein1024-944" | "skein1024-952" | "skein1024-960" | "skein1024-968" | "skein1024-976" | "skein1024-984" | "skein1024-992" | "skein1024-1000" | "skein1024-1008" | "skein1024-1016" | "skein1024-1024" | "poseidon-bls12_381-a2-fc1" | "poseidon-bls12_381-a2-fc1-sc" | "zeroxcert-imprint-256" | "fil-commitment-unsealed" | "fil-commitment-sealed" | "holochain-adr-v0" | "holochain-adr-v1" | "holochain-key-v0" | "holochain-key-v1" | "holochain-sig-v0" | "holochain-sig-v1" | "skynet-ns" | "arweave-ns" | Uint8Array, data: Uint8Array): Uint8Array
-
Parameters
-
multicodecStrOrCode: "identity" | "cidv1" | "cidv2" | "cidv3" | "ip4" | "tcp" | "sha1" | "sha2-256" | "sha2-512" | "sha3-512" | "sha3-384" | "sha3-256" | "sha3-224" | "shake-128" | "shake-256" | "keccak-224" | "keccak-256" | "keccak-384" | "keccak-512" | "blake3" | "dccp" | "murmur3-128" | "murmur3-32" | "ip6" | "ip6zone" | "path" | "multicodec" | "multihash" | "multiaddr" | "multibase" | "dns" | "dns4" | "dns6" | "dnsaddr" | "protobuf" | "cbor" | "raw" | "dbl-sha2-256" | "rlp" | "bencode" | "dag-pb" | "dag-cbor" | "libp2p-key" | "git-raw" | "torrent-info" | "torrent-file" | "leofcoin-block" | "leofcoin-tx" | "leofcoin-pr" | "sctp" | "dag-jose" | "dag-cose" | "eth-block" | "eth-block-list" | "eth-tx-trie" | "eth-tx" | "eth-tx-receipt-trie" | "eth-tx-receipt" | "eth-state-trie" | "eth-account-snapshot" | "eth-storage-trie" | "eth-receipt-log-trie" | "eth-reciept-log" | "bitcoin-block" | "bitcoin-tx" | "bitcoin-witness-commitment" | "zcash-block" | "zcash-tx" | "caip-50" | "streamid" | "stellar-block" | "stellar-tx" | "md4" | "md5" | "bmt" | "decred-block" | "decred-tx" | "ipld-ns" | "ipfs-ns" | "swarm-ns" | "ipns-ns" | "zeronet" | "secp256k1-pub" | "bls12_381-g1-pub" | "bls12_381-g2-pub" | "x25519-pub" | "ed25519-pub" | "bls12_381-g1g2-pub" | "dash-block" | "dash-tx" | "swarm-manifest" | "swarm-feed" | "udp" | "p2p-webrtc-star" | "p2p-webrtc-direct" | "p2p-stardust" | "p2p-circuit" | "dag-json" | "udt" | "utp" | "unix" | "thread" | "p2p" | "ipfs" | "https" | "onion" | "onion3" | "garlic64" | "garlic32" | "tls" | "noise" | "quic" | "ws" | "wss" | "p2p-websocket-star" | "http" | "swhid-1-snp" | "json" | "messagepack" | "libp2p-peer-record" | "libp2p-relay-rsvp" | "car-index-sorted" | "sha2-256-trunc254-padded" | "ripemd-128" | "ripemd-160" | "ripemd-256" | "ripemd-320" | "x11" | "p256-pub" | "p384-pub" | "p521-pub" | "ed448-pub" | "x448-pub" | "ed25519-priv" | "secp256k1-priv" | "x25519-priv" | "kangarootwelve" | "sm3-256" | "blake2b-8" | "blake2b-16" | "blake2b-24" | "blake2b-32" | "blake2b-40" | "blake2b-48" | "blake2b-56" | "blake2b-64" | "blake2b-72" | "blake2b-80" | "blake2b-88" | "blake2b-96" | "blake2b-104" | "blake2b-112" | "blake2b-120" | "blake2b-128" | "blake2b-136" | "blake2b-144" | "blake2b-152" | "blake2b-160" | "blake2b-168" | "blake2b-176" | "blake2b-184" | "blake2b-192" | "blake2b-200" | "blake2b-208" | "blake2b-216" | "blake2b-224" | "blake2b-232" | "blake2b-240" | "blake2b-248" | "blake2b-256" | "blake2b-264" | "blake2b-272" | "blake2b-280" | "blake2b-288" | "blake2b-296" | "blake2b-304" | "blake2b-312" | "blake2b-320" | "blake2b-328" | "blake2b-336" | "blake2b-344" | "blake2b-352" | "blake2b-360" | "blake2b-368" | "blake2b-376" | "blake2b-384" | "blake2b-392" | "blake2b-400" | "blake2b-408" | "blake2b-416" | "blake2b-424" | "blake2b-432" | "blake2b-440" | "blake2b-448" | "blake2b-456" | "blake2b-464" | "blake2b-472" | "blake2b-480" | "blake2b-488" | "blake2b-496" | "blake2b-504" | "blake2b-512" | "blake2s-8" | "blake2s-16" | "blake2s-24" | "blake2s-32" | "blake2s-40" | "blake2s-48" | "blake2s-56" | "blake2s-64" | "blake2s-72" | "blake2s-80" | "blake2s-88" | "blake2s-96" | "blake2s-104" | "blake2s-112" | "blake2s-120" | "blake2s-128" | "blake2s-136" | "blake2s-144" | "blake2s-152" | "blake2s-160" | "blake2s-168" | "blake2s-176" | "blake2s-184" | "blake2s-192" | "blake2s-200" | "blake2s-208" | "blake2s-216" | "blake2s-224" | "blake2s-232" | "blake2s-240" | "blake2s-248" | "blake2s-256" | "skein256-8" | "skein256-16" | "skein256-24" | "skein256-32" | "skein256-40" | "skein256-48" | "skein256-56" | "skein256-64" | "skein256-72" | "skein256-80" | "skein256-88" | "skein256-96" | "skein256-104" | "skein256-112" | "skein256-120" | "skein256-128" | "skein256-136" | "skein256-144" | "skein256-152" | "skein256-160" | "skein256-168" | "skein256-176" | "skein256-184" | "skein256-192" | "skein256-200" | "skein256-208" | "skein256-216" | "skein256-224" | "skein256-232" | "skein256-240" | "skein256-248" | "skein256-256" | "skein512-8" | "skein512-16" | "skein512-24" | "skein512-32" | "skein512-40" | "skein512-48" | "skein512-56" | "skein512-64" | "skein512-72" | "skein512-80" | "skein512-88" | "skein512-96" | "skein512-104" | "skein512-112" | "skein512-120" | "skein512-128" | "skein512-136" | "skein512-144" | "skein512-152" | "skein512-160" | "skein512-168" | "skein512-176" | "skein512-184" | "skein512-192" | "skein512-200" | "skein512-208" | "skein512-216" | "skein512-224" | "skein512-232" | "skein512-240" | "skein512-248" | "skein512-256" | "skein512-264" | "skein512-272" | "skein512-280" | "skein512-288" | "skein512-296" | "skein512-304" | "skein512-312" | "skein512-320" | "skein512-328" | "skein512-336" | "skein512-344" | "skein512-352" | "skein512-360" | "skein512-368" | "skein512-376" | "skein512-384" | "skein512-392" | "skein512-400" | "skein512-408" | "skein512-416" | "skein512-424" | "skein512-432" | "skein512-440" | "skein512-448" | "skein512-456" | "skein512-464" | "skein512-472" | "skein512-480" | "skein512-488" | "skein512-496" | "skein512-504" | "skein512-512" | "skein1024-8" | "skein1024-16" | "skein1024-24" | "skein1024-32" | "skein1024-40" | "skein1024-48" | "skein1024-56" | "skein1024-64" | "skein1024-72" | "skein1024-80" | "skein1024-88" | "skein1024-96" | "skein1024-104" | "skein1024-112" | "skein1024-120" | "skein1024-128" | "skein1024-136" | "skein1024-144" | "skein1024-152" | "skein1024-160" | "skein1024-168" | "skein1024-176" | "skein1024-184" | "skein1024-192" | "skein1024-200" | "skein1024-208" | "skein1024-216" | "skein1024-224" | "skein1024-232" | "skein1024-240" | "skein1024-248" | "skein1024-256" | "skein1024-264" | "skein1024-272" | "skein1024-280" | "skein1024-288" | "skein1024-296" | "skein1024-304" | "skein1024-312" | "skein1024-320" | "skein1024-328" | "skein1024-336" | "skein1024-344" | "skein1024-352" | "skein1024-360" | "skein1024-368" | "skein1024-376" | "skein1024-384" | "skein1024-392" | "skein1024-400" | "skein1024-408" | "skein1024-416" | "skein1024-424" | "skein1024-432" | "skein1024-440" | "skein1024-448" | "skein1024-456" | "skein1024-464" | "skein1024-472" | "skein1024-480" | "skein1024-488" | "skein1024-496" | "skein1024-504" | "skein1024-512" | "skein1024-520" | "skein1024-528" | "skein1024-536" | "skein1024-544" | "skein1024-552" | "skein1024-560" | "skein1024-568" | "skein1024-576" | "skein1024-584" | "skein1024-592" | "skein1024-600" | "skein1024-608" | "skein1024-616" | "skein1024-624" | "skein1024-632" | "skein1024-640" | "skein1024-648" | "skein1024-656" | "skein1024-664" | "skein1024-672" | "skein1024-680" | "skein1024-688" | "skein1024-696" | "skein1024-704" | "skein1024-712" | "skein1024-720" | "skein1024-728" | "skein1024-736" | "skein1024-744" | "skein1024-752" | "skein1024-760" | "skein1024-768" | "skein1024-776" | "skein1024-784" | "skein1024-792" | "skein1024-800" | "skein1024-808" | "skein1024-816" | "skein1024-824" | "skein1024-832" | "skein1024-840" | "skein1024-848" | "skein1024-856" | "skein1024-864" | "skein1024-872" | "skein1024-880" | "skein1024-888" | "skein1024-896" | "skein1024-904" | "skein1024-912" | "skein1024-920" | "skein1024-928" | "skein1024-936" | "skein1024-944" | "skein1024-952" | "skein1024-960" | "skein1024-968" | "skein1024-976" | "skein1024-984" | "skein1024-992" | "skein1024-1000" | "skein1024-1008" | "skein1024-1016" | "skein1024-1024" | "poseidon-bls12_381-a2-fc1" | "poseidon-bls12_381-a2-fc1-sc" | "zeroxcert-imprint-256" | "fil-commitment-unsealed" | "fil-commitment-sealed" | "holochain-adr-v0" | "holochain-adr-v1" | "holochain-key-v0" | "holochain-key-v1" | "holochain-sig-v0" | "holochain-sig-v1" | "skynet-ns" | "arweave-ns" | Uint8Array
-
data: Uint8Array
Returns Uint8Array
-
codeToName: Record<CodecCode, CodecName>
-
getCode: (prefixedData: Uint8Array) => CodecCode
-
- (prefixedData: Uint8Array): CodecCode
-
Parameters
Returns CodecCode
-
getCodeFromData: (prefixedData: Uint8Array) => CodecCode
-
- (prefixedData: Uint8Array): CodecCode
-
Parameters
Returns CodecCode
-
getCodeFromName: (name: CodecName) => CodecCode
-
- (name: CodecName): CodecCode
-
Parameters
Returns CodecCode
-
getCodeVarint: (name: CodecName) => Uint8Array
-
- (name: CodecName): Uint8Array
-
Parameters
Returns Uint8Array
-
getCodec: (prefixedData: Uint8Array) => CodecName
-
- (prefixedData: Uint8Array): CodecName
-
Parameters
Returns CodecName
-
getName: (codec: CodecCode) => CodecName
-
- (codec: CodecCode): CodecName
-
Parameters
Returns CodecName
-
getNameFromCode: (codec: CodecCode) => CodecName
-
- (codec: CodecCode): CodecName
-
Parameters
Returns CodecName
-
getNameFromData: (prefixedData: Uint8Array) => CodecName
-
- (prefixedData: Uint8Array): CodecName
-
Parameters
Returns CodecName
-
getNumber: (name: CodecName) => CodecCode
-
- (name: CodecName): CodecCode
-
Parameters
Returns CodecCode
-
getVarint: (code: CodecCode) => number[]
-
- (code: CodecCode): number[]
-
Parameters
Returns number[]
-
getVarintFromCode: (code: CodecCode) => Uint8Array
-
- (code: CodecCode): Uint8Array
-
Parameters
Returns Uint8Array
-
getVarintFromName: (name: CodecName) => Uint8Array
-
- (name: CodecName): Uint8Array
-
Parameters
Returns Uint8Array
-
nameToCode: Readonly<Record<CodecName, CodecCode>>
-
nameToVarint: Record<CodecName, Uint8Array>
-
rmPrefix: (data: Uint8Array) => Uint8Array
-
- (data: Uint8Array): Uint8Array
-
Parameters
Returns Uint8Array
Implementation of the multicodec specification.
const multicodec = require('multicodec')
const prefixedProtobuf = multicodec.addPrefix('protobuf', protobufBuffer) // prefixedProtobuf 0x50...