From aec9e491a6aeaff23aa1159cdb603fcc6aa5eb84 Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 01:41:23 +0200 Subject: [PATCH 01/11] Prepare 1.1.0 - Multihash --- README.md | 18 +- pom.xml | 2 +- .../com/apicatalog/multicodec/CodecDef.java | 19 +- .../com/apicatalog/multicodec/CodecTag.java | 18 +- .../apicatalog/multicodec/CvsImporter.java | 22 +- .../apicatalog/multicodec/codec/CidCodec.java | 10 +- .../multicodec/codec/HashCodec.java | 24 +- .../apicatalog/multicodec/codec/KeyCodec.java | 92 +-- .../multicodec/codec/MultiaddrCodec.java | 92 +-- .../multicodec/codec/MulticodecRegistry.java | 3 +- .../multicodec/codec/MultiformatCodec.java | 22 +- .../codec/MultihashCodec.java} | 757 +++++++++--------- .../multicodec/codec/NamespaceCodec.java | 30 +- .../multicodec/codec/SerializationCodec.java | 28 +- .../multicodec/codec/TransportCodec.java | 10 +- .../multicodec/codec/VarsigCodec.java | 24 +- .../multihash/MultihashDecoder.java | 68 -- .../codec/MulticodecDecoderTest.java | 3 +- .../apicatalog/multihash/MultihashTest.java | 12 +- 19 files changed, 586 insertions(+), 668 deletions(-) rename src/main/java/com/apicatalog/{multihash/MultihashRegistry.java => multicodec/codec/MultihashCodec.java} (74%) delete mode 100644 src/main/java/com/apicatalog/multihash/MultihashDecoder.java diff --git a/README.md b/README.md index c7cca46..aa8b203 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ A Java implementation of [Multicodec](https://github.com/multiformats/multicodec * no lookups for a codec when encoding * direct `static` access to codecs * confirugable set of codecs to support when decoding - * Multihash support [2.0.0-SNAPSHOT] + * Multihash support * `Unsigned VarInt` support * no 3rd party dependencies @@ -70,31 +70,31 @@ byte[] encoded = codec.encode(input); ```java /* get multihash decoder initialized with all multihash codecs */ -var decoder = MultihashDecoder.getInstance(); +var decoder = MulticodecDecoder.getInstance(Tag.Multihash); /* decode; digest size is checked and removed */ byte[] decoded = decoder.decode(encoded); /* or check if supported */ -Multihash multihash = decoder.get(encoded).orElseThrow(() -> new IllegalArgumentException("Unsupported multihash.")); +var codec = decoder.get(encoded).orElseThrow(() -> new IllegalArgumentException("Unsupported multihash.")); byte[] decoded = codec.decode(encoded); /* or directly */ -byte[] decoded = MultihashRegistry.SHA2_384.decode(encoded); +byte[] decoded = MultihashCodec.SHA2_384.decode(encoded); /* /* check if byte array is encoded with multihash codec */ -if (MultihashRegistry.SHA2_384.isEncoded(encoded)) { +if (MultihashCodec.SHA2_384.isEncoded(encoded)) { ... } /* get registry initialized with all multihash codecs */ -var registry = MultihashRegistry.getInstance(); +var registry = MulticodecRegistry.getInstance(Tag.Multihash); /* encode an input as multihash */ -var multihash = registry.get(code).orElseThrow(() -> new IllegalArgumentException("Unsupported multihash.")); -byte[] encoded = multihash.encode(input); +var codec = registry.get(code).orElseThrow(() -> new IllegalArgumentException("Unsupported multihash.")); +byte[] encoded = codec.encode(input); ``` @@ -107,7 +107,7 @@ byte[] encoded = multihash.encode(input); com.apicatalog copper-multicodec - 1.0.1 + 1.1.0 ``` diff --git a/pom.xml b/pom.xml index a1de66f..a8628bd 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.apicatalog copper-multicodec - 2.0.0-SNAPSHOT + 1.1.0 jar https://github.com/filip26/copper-multicodec diff --git a/src/gen/java/com/apicatalog/multicodec/CodecDef.java b/src/gen/java/com/apicatalog/multicodec/CodecDef.java index 2286be3..225d776 100644 --- a/src/gen/java/com/apicatalog/multicodec/CodecDef.java +++ b/src/gen/java/com/apicatalog/multicodec/CodecDef.java @@ -26,7 +26,7 @@ public static final CodecDef from(String[] columns) { return def; } - public final void writeCode(PrintWriter writer) { + public final void writeCode(PrintWriter writer, Class clazz) { writer.print(" "); writer.print("/** "); writer.print(tag); @@ -43,13 +43,20 @@ public final void writeCode(PrintWriter writer) { writer.println(" */"); writer.print(" "); - writer.print("public static final Multicodec "); + writer.print("public static final "); + writer.print(clazz.getSimpleName()); + writer.print(" "); writer.print(getJavaName()); - writer.print(" = Multicodec.of(\""); + writer.print(" = "); + writer.print(clazz.getSimpleName()); + writer.print(".of(\""); writer.print(name); - writer.print("\", Tag."); - writer.print(tag.name()); - writer.print(", "); + writer.print("\", "); + if (Multicodec.class.equals(clazz)) { + writer.print(" Tag."); + writer.print(tag.name()); + writer.print(", "); + } writer.print(String.format("0x%x",code)); writer.println(");"); } diff --git a/src/gen/java/com/apicatalog/multicodec/CodecTag.java b/src/gen/java/com/apicatalog/multicodec/CodecTag.java index 77ffb6a..2e88803 100644 --- a/src/gen/java/com/apicatalog/multicodec/CodecTag.java +++ b/src/gen/java/com/apicatalog/multicodec/CodecTag.java @@ -11,8 +11,8 @@ import java.util.stream.Stream; public class CodecTag { - - public static void generate(String tag, String className) throws IOException { + + public static void generate(final String tag, final String className, final Class clazz) throws IOException { try (final Stream stream = Files.lines(Paths.get("table.csv")) .map(line -> line.trim().split(","))) { @@ -25,8 +25,12 @@ public static void generate(String tag, String className) throws IOException { writer.println("import java.util.TreeMap;"); writer.println("import java.util.Map;"); writer.println(); - writer.println("import com.apicatalog.multicodec.Multicodec;"); - writer.println("import com.apicatalog.multicodec.Multicodec.Tag;"); + writer.print("import "); + writer.print(clazz.getCanonicalName()); + writer.println(";"); + if (Multicodec.class.equals(clazz)) { + writer.println("import com.apicatalog.multicodec.Multicodec.Tag;"); + } writer.println(); writer.print("/** Multicodec Registry - generated: "); writer.print(new Date().toString()); @@ -44,11 +48,13 @@ public static void generate(String tag, String className) throws IOException { .collect(Collectors.toList()); defs.forEach(def -> { - def.writeCode(writer); + def.writeCode(writer, clazz); writer.println(); }); - writer.println(" protected static final Map ALL = new TreeMap<>();"); + writer.print(" protected static final Map ALL = new TreeMap<>();"); writer.println(); writer.println(" static {"); diff --git a/src/gen/java/com/apicatalog/multicodec/CvsImporter.java b/src/gen/java/com/apicatalog/multicodec/CvsImporter.java index 84fd885..5b01b36 100644 --- a/src/gen/java/com/apicatalog/multicodec/CvsImporter.java +++ b/src/gen/java/com/apicatalog/multicodec/CvsImporter.java @@ -2,18 +2,20 @@ import java.io.IOException; +import com.apicatalog.multihash.Multihash; + public class CvsImporter { public static void main(final String[] args) throws IOException { - CodecTag.generate("key", "KeyCodec"); - CodecTag.generate("multihash", "MultihashCodec"); - CodecTag.generate("multiaddr", "MultiaddrCodec"); - CodecTag.generate("hash", "HashCodec"); - CodecTag.generate("cid", "CidCodec"); - CodecTag.generate("namespace", "NamespaceCodec"); - CodecTag.generate("multiformat", "MultiformatCodec"); - CodecTag.generate("serialization", "SerializationCodec"); - CodecTag.generate("transport", "TransportCodec"); - CodecTag.generate("varsig", "VarsigCodec"); + CodecTag.generate("key", "KeyCodec", Multicodec.class); + CodecTag.generate("multihash", "MultihashCodec", Multihash.class); + CodecTag.generate("multiaddr", "MultiaddrCodec", Multicodec.class); + CodecTag.generate("hash", "HashCodec", Multicodec.class); + CodecTag.generate("cid", "CidCodec", Multicodec.class); + CodecTag.generate("namespace", "NamespaceCodec", Multicodec.class); + CodecTag.generate("multiformat", "MultiformatCodec", Multicodec.class); + CodecTag.generate("serialization", "SerializationCodec", Multicodec.class); + CodecTag.generate("transport", "TransportCodec", Multicodec.class); + CodecTag.generate("varsig", "VarsigCodec", Multicodec.class); } } diff --git a/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java b/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java index c6cd418..11dd6de 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java @@ -6,19 +6,19 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ public class CidCodec { /** Cid: cidv1, CIDv1, status = permanent, code = 0x1 */ - public static final Multicodec CIDV1 = Multicodec.of("cidv1", Tag.Cid, 0x1); + public static final Multicodec CIDV1 = Multicodec.of("cidv1", Tag.Cid, 0x1); /** Cid: cidv2, CIDv2, status = draft, code = 0x2 */ - public static final Multicodec CIDV2 = Multicodec.of("cidv2", Tag.Cid, 0x2); + public static final Multicodec CIDV2 = Multicodec.of("cidv2", Tag.Cid, 0x2); /** Cid: cidv3, CIDv3, status = draft, code = 0x3 */ - public static final Multicodec CIDV3 = Multicodec.of("cidv3", Tag.Cid, 0x3); + public static final Multicodec CIDV3 = Multicodec.of("cidv3", Tag.Cid, 0x3); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { ALL.put(CIDV1.code(), CIDV1); diff --git a/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java b/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java index 5fd504e..3815249 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java @@ -6,40 +6,40 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ public class HashCodec { /** Hash: crc32, CRC-32 non-cryptographic hash algorithm (IEEE 802.3), status = draft, code = 0x132 */ - public static final Multicodec CRC32 = Multicodec.of("crc32", Tag.Hash, 0x132); + public static final Multicodec CRC32 = Multicodec.of("crc32", Tag.Hash, 0x132); /** Hash: crc64-ecma, CRC-64 non-cryptographic hash algorithm (ECMA-182 - Annex B), status = draft, code = 0x164 */ - public static final Multicodec CRC64_ECMA = Multicodec.of("crc64-ecma", Tag.Hash, 0x164); + public static final Multicodec CRC64_ECMA = Multicodec.of("crc64-ecma", Tag.Hash, 0x164); /** Hash: murmur3-32, status = draft, code = 0x23 */ - public static final Multicodec MURMUR3_32 = Multicodec.of("murmur3-32", Tag.Hash, 0x23); + public static final Multicodec MURMUR3_32 = Multicodec.of("murmur3-32", Tag.Hash, 0x23); /** Hash: murmur3-x64-128, status = draft, code = 0x1022 */ - public static final Multicodec MURMUR3_X64_128 = Multicodec.of("murmur3-x64-128", Tag.Hash, 0x1022); + public static final Multicodec MURMUR3_X64_128 = Multicodec.of("murmur3-x64-128", Tag.Hash, 0x1022); /** Hash: murmur3-x64-64, The first 64-bits of a murmur3-x64-128 - used for UnixFS directory sharding., status = permanent, code = 0x22 */ - public static final Multicodec MURMUR3_X64_64 = Multicodec.of("murmur3-x64-64", Tag.Hash, 0x22); + public static final Multicodec MURMUR3_X64_64 = Multicodec.of("murmur3-x64-64", Tag.Hash, 0x22); /** Hash: sha256a, The sum of multiple sha2-256 hashes; as specified by Ceramic CIP-124., status = draft, code = 0x7012 */ - public static final Multicodec SHA256A = Multicodec.of("sha256a", Tag.Hash, 0x7012); + public static final Multicodec SHA256A = Multicodec.of("sha256a", Tag.Hash, 0x7012); /** Hash: xxh-32, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e1 */ - public static final Multicodec XXH_32 = Multicodec.of("xxh-32", Tag.Hash, 0xb3e1); + public static final Multicodec XXH_32 = Multicodec.of("xxh-32", Tag.Hash, 0xb3e1); /** Hash: xxh-64, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e2 */ - public static final Multicodec XXH_64 = Multicodec.of("xxh-64", Tag.Hash, 0xb3e2); + public static final Multicodec XXH_64 = Multicodec.of("xxh-64", Tag.Hash, 0xb3e2); /** Hash: xxh3-128, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e4 */ - public static final Multicodec XXH3_128 = Multicodec.of("xxh3-128", Tag.Hash, 0xb3e4); + public static final Multicodec XXH3_128 = Multicodec.of("xxh3-128", Tag.Hash, 0xb3e4); /** Hash: xxh3-64, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e3 */ - public static final Multicodec XXH3_64 = Multicodec.of("xxh3-64", Tag.Hash, 0xb3e3); + public static final Multicodec XXH3_64 = Multicodec.of("xxh3-64", Tag.Hash, 0xb3e3); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { ALL.put(CRC32.code(), CRC32); diff --git a/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java b/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java index 964a59b..7e95c42 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java @@ -6,142 +6,142 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ public class KeyCodec { /** Key: aes-128, 128-bit AES symmetric key, status = draft, code = 0xa0 */ - public static final Multicodec AES_128_KEY = Multicodec.of("aes-128", Tag.Key, 0xa0); + public static final Multicodec AES_128_KEY = Multicodec.of("aes-128", Tag.Key, 0xa0); /** Key: aes-192, 192-bit AES symmetric key, status = draft, code = 0xa1 */ - public static final Multicodec AES_192_KEY = Multicodec.of("aes-192", Tag.Key, 0xa1); + public static final Multicodec AES_192_KEY = Multicodec.of("aes-192", Tag.Key, 0xa1); /** Key: aes-256, 256-bit AES symmetric key, status = draft, code = 0xa2 */ - public static final Multicodec AES_256_KEY = Multicodec.of("aes-256", Tag.Key, 0xa2); + public static final Multicodec AES_256_KEY = Multicodec.of("aes-256", Tag.Key, 0xa2); /** Key: bls12_381-g1-priv, BLS12-381 G1 private key, status = draft, code = 0x1309 */ - public static final Multicodec BLS12_381_G1_PRIVATE_KEY = Multicodec.of("bls12_381-g1-priv", Tag.Key, 0x1309); + public static final Multicodec BLS12_381_G1_PRIVATE_KEY = Multicodec.of("bls12_381-g1-priv", Tag.Key, 0x1309); /** Key: bls12_381-g1-priv-share, BLS12-381 G1 private key share, status = draft, code = 0x130e */ - public static final Multicodec BLS12_381_G1_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g1-priv-share", Tag.Key, 0x130e); + public static final Multicodec BLS12_381_G1_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g1-priv-share", Tag.Key, 0x130e); /** Key: bls12_381-g1-pub, BLS12-381 public key in the G1 field, status = draft, code = 0xea */ - public static final Multicodec BLS12_381_G1_PUBLIC_KEY = Multicodec.of("bls12_381-g1-pub", Tag.Key, 0xea); + public static final Multicodec BLS12_381_G1_PUBLIC_KEY = Multicodec.of("bls12_381-g1-pub", Tag.Key, 0xea); /** Key: bls12_381-g1-pub-share, BLS12-381 G1 public key share, status = draft, code = 0x130c */ - public static final Multicodec BLS12_381_G1_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g1-pub-share", Tag.Key, 0x130c); + public static final Multicodec BLS12_381_G1_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g1-pub-share", Tag.Key, 0x130c); /** Key: bls12_381-g1g2-priv, BLS12-381 G1 and G2 private key, status = draft, code = 0x130b */ - public static final Multicodec BLS12_381_G1G2_PRIVATE_KEY = Multicodec.of("bls12_381-g1g2-priv", Tag.Key, 0x130b); + public static final Multicodec BLS12_381_G1G2_PRIVATE_KEY = Multicodec.of("bls12_381-g1g2-priv", Tag.Key, 0x130b); /** Key: bls12_381-g1g2-pub, BLS12-381 concatenated public keys in both the G1 and G2 fields, status = draft, code = 0xee */ - public static final Multicodec BLS12_381_G1G2_PUBLIC_KEY = Multicodec.of("bls12_381-g1g2-pub", Tag.Key, 0xee); + public static final Multicodec BLS12_381_G1G2_PUBLIC_KEY = Multicodec.of("bls12_381-g1g2-pub", Tag.Key, 0xee); /** Key: bls12_381-g2-priv, BLS12-381 G2 private key, status = draft, code = 0x130a */ - public static final Multicodec BLS12_381_G2_PRIVATE_KEY = Multicodec.of("bls12_381-g2-priv", Tag.Key, 0x130a); + public static final Multicodec BLS12_381_G2_PRIVATE_KEY = Multicodec.of("bls12_381-g2-priv", Tag.Key, 0x130a); /** Key: bls12_381-g2-priv-share, BLS12-381 G2 private key share, status = draft, code = 0x130f */ - public static final Multicodec BLS12_381_G2_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g2-priv-share", Tag.Key, 0x130f); + public static final Multicodec BLS12_381_G2_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g2-priv-share", Tag.Key, 0x130f); /** Key: bls12_381-g2-pub, BLS12-381 public key in the G2 field, status = draft, code = 0xeb */ - public static final Multicodec BLS12_381_G2_PUBLIC_KEY = Multicodec.of("bls12_381-g2-pub", Tag.Key, 0xeb); + public static final Multicodec BLS12_381_G2_PUBLIC_KEY = Multicodec.of("bls12_381-g2-pub", Tag.Key, 0xeb); /** Key: bls12_381-g2-pub-share, BLS12-381 G2 public key share, status = draft, code = 0x130d */ - public static final Multicodec BLS12_381_G2_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g2-pub-share", Tag.Key, 0x130d); + public static final Multicodec BLS12_381_G2_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g2-pub-share", Tag.Key, 0x130d); /** Key: chacha-128, 128-bit ChaCha symmetric key, status = draft, code = 0xa3 */ - public static final Multicodec CHACHA_128_KEY = Multicodec.of("chacha-128", Tag.Key, 0xa3); + public static final Multicodec CHACHA_128_KEY = Multicodec.of("chacha-128", Tag.Key, 0xa3); /** Key: chacha-256, 256-bit ChaCha symmetric key, status = draft, code = 0xa4 */ - public static final Multicodec CHACHA_256_KEY = Multicodec.of("chacha-256", Tag.Key, 0xa4); + public static final Multicodec CHACHA_256_KEY = Multicodec.of("chacha-256", Tag.Key, 0xa4); /** Key: ed25519-priv, Ed25519 private key, status = draft, code = 0x1300 */ - public static final Multicodec ED25519_PRIVATE_KEY = Multicodec.of("ed25519-priv", Tag.Key, 0x1300); + public static final Multicodec ED25519_PRIVATE_KEY = Multicodec.of("ed25519-priv", Tag.Key, 0x1300); /** Key: ed25519-pub, Ed25519 public key, status = draft, code = 0xed */ - public static final Multicodec ED25519_PUBLIC_KEY = Multicodec.of("ed25519-pub", Tag.Key, 0xed); + public static final Multicodec ED25519_PUBLIC_KEY = Multicodec.of("ed25519-pub", Tag.Key, 0xed); /** Key: ed448-pub, Ed448 public Key, status = draft, code = 0x1203 */ - public static final Multicodec ED448_PUBLIC_KEY = Multicodec.of("ed448-pub", Tag.Key, 0x1203); + public static final Multicodec ED448_PUBLIC_KEY = Multicodec.of("ed448-pub", Tag.Key, 0x1203); /** Key: jwk_jcs-pub, JSON object containing only the required members of a JWK (RFC 7518 and RFC 7517) representing the public key. Serialisation based on JCS (RFC 8785), status = draft, code = 0xeb51 */ - public static final Multicodec JWK_JCS_PUBLIC_KEY = Multicodec.of("jwk_jcs-pub", Tag.Key, 0xeb51); + public static final Multicodec JWK_JCS_PUBLIC_KEY = Multicodec.of("jwk_jcs-pub", Tag.Key, 0xeb51); /** Key: lamport-sha3-256-priv, Lamport private key based on SHA3-256, status = draft, code = 0x1a26 */ - public static final Multicodec LAMPORT_SHA3_256_PRIVATE_KEY = Multicodec.of("lamport-sha3-256-priv", Tag.Key, 0x1a26); + public static final Multicodec LAMPORT_SHA3_256_PRIVATE_KEY = Multicodec.of("lamport-sha3-256-priv", Tag.Key, 0x1a26); /** Key: lamport-sha3-256-priv-share, Lamport private key share based on SHA3-256 and split with Shamir gf256, status = draft, code = 0x1a36 */ - public static final Multicodec LAMPORT_SHA3_256_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-256-priv-share", Tag.Key, 0x1a36); + public static final Multicodec LAMPORT_SHA3_256_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-256-priv-share", Tag.Key, 0x1a36); /** Key: lamport-sha3-256-pub, Lamport public key based on SHA3-256, status = draft, code = 0x1a16 */ - public static final Multicodec LAMPORT_SHA3_256_PUBLIC_KEY = Multicodec.of("lamport-sha3-256-pub", Tag.Key, 0x1a16); + public static final Multicodec LAMPORT_SHA3_256_PUBLIC_KEY = Multicodec.of("lamport-sha3-256-pub", Tag.Key, 0x1a16); /** Key: lamport-sha3-384-priv, Lamport private key based on SHA3-384, status = draft, code = 0x1a25 */ - public static final Multicodec LAMPORT_SHA3_384_PRIVATE_KEY = Multicodec.of("lamport-sha3-384-priv", Tag.Key, 0x1a25); + public static final Multicodec LAMPORT_SHA3_384_PRIVATE_KEY = Multicodec.of("lamport-sha3-384-priv", Tag.Key, 0x1a25); /** Key: lamport-sha3-384-priv-share, Lamport private key share based on SHA3-384 and split with Shamir gf256, status = draft, code = 0x1a35 */ - public static final Multicodec LAMPORT_SHA3_384_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-384-priv-share", Tag.Key, 0x1a35); + public static final Multicodec LAMPORT_SHA3_384_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-384-priv-share", Tag.Key, 0x1a35); /** Key: lamport-sha3-384-pub, Lamport public key based on SHA3-384, status = draft, code = 0x1a15 */ - public static final Multicodec LAMPORT_SHA3_384_PUBLIC_KEY = Multicodec.of("lamport-sha3-384-pub", Tag.Key, 0x1a15); + public static final Multicodec LAMPORT_SHA3_384_PUBLIC_KEY = Multicodec.of("lamport-sha3-384-pub", Tag.Key, 0x1a15); /** Key: lamport-sha3-512-priv, Lamport private key based on SHA3-512, status = draft, code = 0x1a24 */ - public static final Multicodec LAMPORT_SHA3_512_PRIVATE_KEY = Multicodec.of("lamport-sha3-512-priv", Tag.Key, 0x1a24); + public static final Multicodec LAMPORT_SHA3_512_PRIVATE_KEY = Multicodec.of("lamport-sha3-512-priv", Tag.Key, 0x1a24); /** Key: lamport-sha3-512-priv-share, Lamport private key share based on SHA3-512 and split with Shamir gf256, status = draft, code = 0x1a34 */ - public static final Multicodec LAMPORT_SHA3_512_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-512-priv-share", Tag.Key, 0x1a34); + public static final Multicodec LAMPORT_SHA3_512_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-512-priv-share", Tag.Key, 0x1a34); /** Key: lamport-sha3-512-pub, Lamport public key based on SHA3-512, status = draft, code = 0x1a14 */ - public static final Multicodec LAMPORT_SHA3_512_PUBLIC_KEY = Multicodec.of("lamport-sha3-512-pub", Tag.Key, 0x1a14); + public static final Multicodec LAMPORT_SHA3_512_PUBLIC_KEY = Multicodec.of("lamport-sha3-512-pub", Tag.Key, 0x1a14); /** Key: p256-priv, P-256 private key, status = draft, code = 0x1306 */ - public static final Multicodec P256_PRIVATE_KEY = Multicodec.of("p256-priv", Tag.Key, 0x1306); + public static final Multicodec P256_PRIVATE_KEY = Multicodec.of("p256-priv", Tag.Key, 0x1306); /** Key: p256-pub, P-256 public Key (compressed), status = draft, code = 0x1200 */ - public static final Multicodec P256_PUBLIC_KEY = Multicodec.of("p256-pub", Tag.Key, 0x1200); + public static final Multicodec P256_PUBLIC_KEY = Multicodec.of("p256-pub", Tag.Key, 0x1200); /** Key: p384-priv, P-384 private key, status = draft, code = 0x1307 */ - public static final Multicodec P384_PRIVATE_KEY = Multicodec.of("p384-priv", Tag.Key, 0x1307); + public static final Multicodec P384_PRIVATE_KEY = Multicodec.of("p384-priv", Tag.Key, 0x1307); /** Key: p384-pub, P-384 public Key (compressed), status = draft, code = 0x1201 */ - public static final Multicodec P384_PUBLIC_KEY = Multicodec.of("p384-pub", Tag.Key, 0x1201); + public static final Multicodec P384_PUBLIC_KEY = Multicodec.of("p384-pub", Tag.Key, 0x1201); /** Key: p521-priv, P-521 private key, status = draft, code = 0x1308 */ - public static final Multicodec P521_PRIVATE_KEY = Multicodec.of("p521-priv", Tag.Key, 0x1308); + public static final Multicodec P521_PRIVATE_KEY = Multicodec.of("p521-priv", Tag.Key, 0x1308); /** Key: p521-pub, P-521 public Key (compressed), status = draft, code = 0x1202 */ - public static final Multicodec P521_PUBLIC_KEY = Multicodec.of("p521-pub", Tag.Key, 0x1202); + public static final Multicodec P521_PUBLIC_KEY = Multicodec.of("p521-pub", Tag.Key, 0x1202); /** Key: rsa-priv, RSA private key, status = draft, code = 0x1305 */ - public static final Multicodec RSA_PRIVATE_KEY = Multicodec.of("rsa-priv", Tag.Key, 0x1305); + public static final Multicodec RSA_PRIVATE_KEY = Multicodec.of("rsa-priv", Tag.Key, 0x1305); /** Key: rsa-pub, RSA public key. DER-encoded ASN.1 type RSAPublicKey according to IETF RFC 8017 (PKCS #1), status = draft, code = 0x1205 */ - public static final Multicodec RSA_PUBLIC_KEY = Multicodec.of("rsa-pub", Tag.Key, 0x1205); + public static final Multicodec RSA_PUBLIC_KEY = Multicodec.of("rsa-pub", Tag.Key, 0x1205); /** Key: secp256k1-priv, Secp256k1 private key, status = draft, code = 0x1301 */ - public static final Multicodec SECP256K1_PRIVATE_KEY = Multicodec.of("secp256k1-priv", Tag.Key, 0x1301); + public static final Multicodec SECP256K1_PRIVATE_KEY = Multicodec.of("secp256k1-priv", Tag.Key, 0x1301); /** Key: secp256k1-pub, Secp256k1 public key (compressed), status = draft, code = 0xe7 */ - public static final Multicodec SECP256K1_PUBLIC_KEY = Multicodec.of("secp256k1-pub", Tag.Key, 0xe7); + public static final Multicodec SECP256K1_PUBLIC_KEY = Multicodec.of("secp256k1-pub", Tag.Key, 0xe7); /** Key: sm2-pub, SM2 public key (compressed), status = draft, code = 0x1206 */ - public static final Multicodec SM2_PUBLIC_KEY = Multicodec.of("sm2-pub", Tag.Key, 0x1206); + public static final Multicodec SM2_PUBLIC_KEY = Multicodec.of("sm2-pub", Tag.Key, 0x1206); /** Key: sr25519-priv, Sr25519 private key, status = draft, code = 0x1303 */ - public static final Multicodec SR25519_PRIVATE_KEY = Multicodec.of("sr25519-priv", Tag.Key, 0x1303); + public static final Multicodec SR25519_PRIVATE_KEY = Multicodec.of("sr25519-priv", Tag.Key, 0x1303); /** Key: sr25519-pub, Sr25519 public key, status = draft, code = 0xef */ - public static final Multicodec SR25519_PUBLIC_KEY = Multicodec.of("sr25519-pub", Tag.Key, 0xef); + public static final Multicodec SR25519_PUBLIC_KEY = Multicodec.of("sr25519-pub", Tag.Key, 0xef); /** Key: x25519-priv, Curve25519 private key, status = draft, code = 0x1302 */ - public static final Multicodec X25519_PRIVATE_KEY = Multicodec.of("x25519-priv", Tag.Key, 0x1302); + public static final Multicodec X25519_PRIVATE_KEY = Multicodec.of("x25519-priv", Tag.Key, 0x1302); /** Key: x25519-pub, Curve25519 public key, status = draft, code = 0xec */ - public static final Multicodec X25519_PUBLIC_KEY = Multicodec.of("x25519-pub", Tag.Key, 0xec); + public static final Multicodec X25519_PUBLIC_KEY = Multicodec.of("x25519-pub", Tag.Key, 0xec); /** Key: x448-pub, X448 public Key, status = draft, code = 0x1204 */ - public static final Multicodec X448_PUBLIC_KEY = Multicodec.of("x448-pub", Tag.Key, 0x1204); + public static final Multicodec X448_PUBLIC_KEY = Multicodec.of("x448-pub", Tag.Key, 0x1204); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { ALL.put(AES_128_KEY.code(), AES_128_KEY); diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java index d9fc76b..a4cda1b 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java @@ -6,142 +6,142 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ public class MultiaddrCodec { /** Multiaddr: certhash, TLS certificate's fingerprint as a multihash, status = draft, code = 0x1d2 */ - public static final Multicodec CERTHASH = Multicodec.of("certhash", Tag.Multiaddr, 0x1d2); + public static final Multicodec CERTHASH = Multicodec.of("certhash", Tag.Multiaddr, 0x1d2); /** Multiaddr: dccp, status = draft, code = 0x21 */ - public static final Multicodec DCCP = Multicodec.of("dccp", Tag.Multiaddr, 0x21); + public static final Multicodec DCCP = Multicodec.of("dccp", Tag.Multiaddr, 0x21); /** Multiaddr: dns, status = permanent, code = 0x35 */ - public static final Multicodec DNS = Multicodec.of("dns", Tag.Multiaddr, 0x35); + public static final Multicodec DNS = Multicodec.of("dns", Tag.Multiaddr, 0x35); /** Multiaddr: dns4, status = permanent, code = 0x36 */ - public static final Multicodec DNS4 = Multicodec.of("dns4", Tag.Multiaddr, 0x36); + public static final Multicodec DNS4 = Multicodec.of("dns4", Tag.Multiaddr, 0x36); /** Multiaddr: dns6, status = permanent, code = 0x37 */ - public static final Multicodec DNS6 = Multicodec.of("dns6", Tag.Multiaddr, 0x37); + public static final Multicodec DNS6 = Multicodec.of("dns6", Tag.Multiaddr, 0x37); /** Multiaddr: dnsaddr, status = permanent, code = 0x38 */ - public static final Multicodec DNSADDR = Multicodec.of("dnsaddr", Tag.Multiaddr, 0x38); + public static final Multicodec DNSADDR = Multicodec.of("dnsaddr", Tag.Multiaddr, 0x38); /** Multiaddr: garlic32, I2P base32 (hashed public key or encoded public key/checksum+optional secret), status = draft, code = 0x1bf */ - public static final Multicodec GARLIC32 = Multicodec.of("garlic32", Tag.Multiaddr, 0x1bf); + public static final Multicodec GARLIC32 = Multicodec.of("garlic32", Tag.Multiaddr, 0x1bf); /** Multiaddr: garlic64, I2P base64 (raw public key), status = draft, code = 0x1be */ - public static final Multicodec GARLIC64 = Multicodec.of("garlic64", Tag.Multiaddr, 0x1be); + public static final Multicodec GARLIC64 = Multicodec.of("garlic64", Tag.Multiaddr, 0x1be); /** Multiaddr: http, status = draft, code = 0x1e0 */ - public static final Multicodec HTTP = Multicodec.of("http", Tag.Multiaddr, 0x1e0); + public static final Multicodec HTTP = Multicodec.of("http", Tag.Multiaddr, 0x1e0); /** Multiaddr: http-path, Percent-encoded path to an HTTP resource, status = draft, code = 0x1e1 */ - public static final Multicodec HTTP_PATH = Multicodec.of("http-path", Tag.Multiaddr, 0x1e1); + public static final Multicodec HTTP_PATH = Multicodec.of("http-path", Tag.Multiaddr, 0x1e1); /** Multiaddr: https, status = draft, code = 0x1bb */ - public static final Multicodec HTTPS = Multicodec.of("https", Tag.Multiaddr, 0x1bb); + public static final Multicodec HTTPS = Multicodec.of("https", Tag.Multiaddr, 0x1bb); /** Multiaddr: ip4, status = permanent, code = 0x4 */ - public static final Multicodec IP4 = Multicodec.of("ip4", Tag.Multiaddr, 0x4); + public static final Multicodec IP4 = Multicodec.of("ip4", Tag.Multiaddr, 0x4); /** Multiaddr: ip6, status = permanent, code = 0x29 */ - public static final Multicodec IP6 = Multicodec.of("ip6", Tag.Multiaddr, 0x29); + public static final Multicodec IP6 = Multicodec.of("ip6", Tag.Multiaddr, 0x29); /** Multiaddr: ip6zone, status = draft, code = 0x2a */ - public static final Multicodec IP6ZONE = Multicodec.of("ip6zone", Tag.Multiaddr, 0x2a); + public static final Multicodec IP6ZONE = Multicodec.of("ip6zone", Tag.Multiaddr, 0x2a); /** Multiaddr: ipcidr, CIDR mask for IP addresses, status = draft, code = 0x2b */ - public static final Multicodec IPCIDR = Multicodec.of("ipcidr", Tag.Multiaddr, 0x2b); + public static final Multicodec IPCIDR = Multicodec.of("ipcidr", Tag.Multiaddr, 0x2b); /** Multiaddr: noise, status = draft, code = 0x1c6 */ - public static final Multicodec NOISE = Multicodec.of("noise", Tag.Multiaddr, 0x1c6); + public static final Multicodec NOISE = Multicodec.of("noise", Tag.Multiaddr, 0x1c6); /** Multiaddr: onion, status = draft, code = 0x1bc */ - public static final Multicodec ONION = Multicodec.of("onion", Tag.Multiaddr, 0x1bc); + public static final Multicodec ONION = Multicodec.of("onion", Tag.Multiaddr, 0x1bc); /** Multiaddr: onion3, status = draft, code = 0x1bd */ - public static final Multicodec ONION3 = Multicodec.of("onion3", Tag.Multiaddr, 0x1bd); + public static final Multicodec ONION3 = Multicodec.of("onion3", Tag.Multiaddr, 0x1bd); /** Multiaddr: p2p, libp2p, status = permanent, code = 0x1a5 */ - public static final Multicodec P2P = Multicodec.of("p2p", Tag.Multiaddr, 0x1a5); + public static final Multicodec P2P = Multicodec.of("p2p", Tag.Multiaddr, 0x1a5); /** Multiaddr: p2p-circuit, status = permanent, code = 0x122 */ - public static final Multicodec P2P_CIRCUIT = Multicodec.of("p2p-circuit", Tag.Multiaddr, 0x122); + public static final Multicodec P2P_CIRCUIT = Multicodec.of("p2p-circuit", Tag.Multiaddr, 0x122); /** Multiaddr: p2p-stardust, status = deprecated, code = 0x115 */ - public static final Multicodec P2P_STARDUST = Multicodec.of("p2p-stardust", Tag.Multiaddr, 0x115); + public static final Multicodec P2P_STARDUST = Multicodec.of("p2p-stardust", Tag.Multiaddr, 0x115); /** Multiaddr: p2p-webrtc-direct, Use webrtc or webrtc-direct instead, status = deprecated, code = 0x114 */ - public static final Multicodec P2P_WEBRTC_DIRECT = Multicodec.of("p2p-webrtc-direct", Tag.Multiaddr, 0x114); + public static final Multicodec P2P_WEBRTC_DIRECT = Multicodec.of("p2p-webrtc-direct", Tag.Multiaddr, 0x114); /** Multiaddr: p2p-webrtc-star, Use webrtc or webrtc-direct instead, status = deprecated, code = 0x113 */ - public static final Multicodec P2P_WEBRTC_STAR = Multicodec.of("p2p-webrtc-star", Tag.Multiaddr, 0x113); + public static final Multicodec P2P_WEBRTC_STAR = Multicodec.of("p2p-webrtc-star", Tag.Multiaddr, 0x113); /** Multiaddr: p2p-websocket-star, status = permanent, code = 0x1df */ - public static final Multicodec P2P_WEBSOCKET_STAR = Multicodec.of("p2p-websocket-star", Tag.Multiaddr, 0x1df); + public static final Multicodec P2P_WEBSOCKET_STAR = Multicodec.of("p2p-websocket-star", Tag.Multiaddr, 0x1df); /** Multiaddr: plaintextv2, status = draft, code = 0x706c61 */ - public static final Multicodec PLAINTEXTV2 = Multicodec.of("plaintextv2", Tag.Multiaddr, 0x706c61); + public static final Multicodec PLAINTEXTV2 = Multicodec.of("plaintextv2", Tag.Multiaddr, 0x706c61); /** Multiaddr: quic, status = permanent, code = 0x1cc */ - public static final Multicodec QUIC = Multicodec.of("quic", Tag.Multiaddr, 0x1cc); + public static final Multicodec QUIC = Multicodec.of("quic", Tag.Multiaddr, 0x1cc); /** Multiaddr: quic-v1, status = permanent, code = 0x1cd */ - public static final Multicodec QUIC_V1 = Multicodec.of("quic-v1", Tag.Multiaddr, 0x1cd); + public static final Multicodec QUIC_V1 = Multicodec.of("quic-v1", Tag.Multiaddr, 0x1cd); /** Multiaddr: scion, SCION Internet architecture, status = draft, code = 0xd02000 */ - public static final Multicodec SCION = Multicodec.of("scion", Tag.Multiaddr, 0xd02000); + public static final Multicodec SCION = Multicodec.of("scion", Tag.Multiaddr, 0xd02000); /** Multiaddr: sctp, status = draft, code = 0x84 */ - public static final Multicodec SCTP = Multicodec.of("sctp", Tag.Multiaddr, 0x84); + public static final Multicodec SCTP = Multicodec.of("sctp", Tag.Multiaddr, 0x84); /** Multiaddr: shs, Secure Scuttlebutt - Secret Handshake Stream, status = draft, code = 0x1c8 */ - public static final Multicodec SHS = Multicodec.of("shs", Tag.Multiaddr, 0x1c8); + public static final Multicodec SHS = Multicodec.of("shs", Tag.Multiaddr, 0x1c8); /** Multiaddr: silverpine, Experimental QUIC over yggdrasil and ironwood routing protocol, status = draft, code = 0x3f42 */ - public static final Multicodec SILVERPINE = Multicodec.of("silverpine", Tag.Multiaddr, 0x3f42); + public static final Multicodec SILVERPINE = Multicodec.of("silverpine", Tag.Multiaddr, 0x3f42); /** Multiaddr: sni, Server Name Indication RFC 6066 ยง 3, status = draft, code = 0x1c1 */ - public static final Multicodec SNI = Multicodec.of("sni", Tag.Multiaddr, 0x1c1); + public static final Multicodec SNI = Multicodec.of("sni", Tag.Multiaddr, 0x1c1); /** Multiaddr: tcp, status = permanent, code = 0x6 */ - public static final Multicodec TCP = Multicodec.of("tcp", Tag.Multiaddr, 0x6); + public static final Multicodec TCP = Multicodec.of("tcp", Tag.Multiaddr, 0x6); /** Multiaddr: thread, Textile Thread, status = draft, code = 0x196 */ - public static final Multicodec THREAD = Multicodec.of("thread", Tag.Multiaddr, 0x196); + public static final Multicodec THREAD = Multicodec.of("thread", Tag.Multiaddr, 0x196); /** Multiaddr: tls, status = draft, code = 0x1c0 */ - public static final Multicodec TLS = Multicodec.of("tls", Tag.Multiaddr, 0x1c0); + public static final Multicodec TLS = Multicodec.of("tls", Tag.Multiaddr, 0x1c0); /** Multiaddr: udp, status = draft, code = 0x111 */ - public static final Multicodec UDP = Multicodec.of("udp", Tag.Multiaddr, 0x111); + public static final Multicodec UDP = Multicodec.of("udp", Tag.Multiaddr, 0x111); /** Multiaddr: udt, status = draft, code = 0x12d */ - public static final Multicodec UDT = Multicodec.of("udt", Tag.Multiaddr, 0x12d); + public static final Multicodec UDT = Multicodec.of("udt", Tag.Multiaddr, 0x12d); /** Multiaddr: unix, status = permanent, code = 0x190 */ - public static final Multicodec UNIX = Multicodec.of("unix", Tag.Multiaddr, 0x190); + public static final Multicodec UNIX = Multicodec.of("unix", Tag.Multiaddr, 0x190); /** Multiaddr: utp, status = draft, code = 0x12e */ - public static final Multicodec UTP = Multicodec.of("utp", Tag.Multiaddr, 0x12e); + public static final Multicodec UTP = Multicodec.of("utp", Tag.Multiaddr, 0x12e); /** Multiaddr: webrtc, webrtc transport where connection establishment is according to w3c spec, status = draft, code = 0x119 */ - public static final Multicodec WEBRTC = Multicodec.of("webrtc", Tag.Multiaddr, 0x119); + public static final Multicodec WEBRTC = Multicodec.of("webrtc", Tag.Multiaddr, 0x119); /** Multiaddr: webrtc-direct, ICE-lite webrtc transport with SDP munging during connection establishment and without use of a STUN server, status = draft, code = 0x118 */ - public static final Multicodec WEBRTC_DIRECT = Multicodec.of("webrtc-direct", Tag.Multiaddr, 0x118); + public static final Multicodec WEBRTC_DIRECT = Multicodec.of("webrtc-direct", Tag.Multiaddr, 0x118); /** Multiaddr: webtransport, status = draft, code = 0x1d1 */ - public static final Multicodec WEBTRANSPORT = Multicodec.of("webtransport", Tag.Multiaddr, 0x1d1); + public static final Multicodec WEBTRANSPORT = Multicodec.of("webtransport", Tag.Multiaddr, 0x1d1); /** Multiaddr: ws, status = permanent, code = 0x1dd */ - public static final Multicodec WS = Multicodec.of("ws", Tag.Multiaddr, 0x1dd); + public static final Multicodec WS = Multicodec.of("ws", Tag.Multiaddr, 0x1dd); /** Multiaddr: wss, status = permanent, code = 0x1de */ - public static final Multicodec WSS = Multicodec.of("wss", Tag.Multiaddr, 0x1de); + public static final Multicodec WSS = Multicodec.of("wss", Tag.Multiaddr, 0x1de); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { ALL.put(CERTHASH.code(), CERTHASH); diff --git a/src/main/java/com/apicatalog/multicodec/codec/MulticodecRegistry.java b/src/main/java/com/apicatalog/multicodec/codec/MulticodecRegistry.java index 9e7b0db..b09ed60 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MulticodecRegistry.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MulticodecRegistry.java @@ -9,13 +9,12 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -import com.apicatalog.multihash.MultihashRegistry; public final class MulticodecRegistry { private static final Map ALL = Stream.of( KeyCodec.ALL, - MultihashRegistry.registered(), + MultihashCodec.ALL, MultiaddrCodec.ALL, HashCodec.ALL, CidCodec.ALL, diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java index 95d77ca..38daac6 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java @@ -6,37 +6,37 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ public class MultiformatCodec { /** Multiformat: caip-50, CAIP-50 multi-chain account id, status = draft, code = 0xca */ - public static final Multicodec CAIP_50 = Multicodec.of("caip-50", Tag.Multiformat, 0xca); + public static final Multicodec CAIP_50 = Multicodec.of("caip-50", Tag.Multiformat, 0xca); /** Multiformat: multiaddr, status = draft, code = 0x32 */ - public static final Multicodec MULTIADDR = Multicodec.of("multiaddr", Tag.Multiformat, 0x32); + public static final Multicodec MULTIADDR = Multicodec.of("multiaddr", Tag.Multiformat, 0x32); /** Multiformat: multibase, status = draft, code = 0x33 */ - public static final Multicodec MULTIBASE = Multicodec.of("multibase", Tag.Multiformat, 0x33); + public static final Multicodec MULTIBASE = Multicodec.of("multibase", Tag.Multiformat, 0x33); /** Multiformat: multicodec, status = draft, code = 0x30 */ - public static final Multicodec MULTICODEC = Multicodec.of("multicodec", Tag.Multiformat, 0x30); + public static final Multicodec MULTICODEC = Multicodec.of("multicodec", Tag.Multiformat, 0x30); /** Multiformat: multidid, Compact encoding for Decentralized Identifers, status = draft, code = 0xd1d */ - public static final Multicodec MULTIDID = Multicodec.of("multidid", Tag.Multiformat, 0xd1d); + public static final Multicodec MULTIDID = Multicodec.of("multidid", Tag.Multiformat, 0xd1d); /** Multiformat: multihash, status = draft, code = 0x31 */ - public static final Multicodec MULTIHASH = Multicodec.of("multihash", Tag.Multiformat, 0x31); + public static final Multicodec MULTIHASH = Multicodec.of("multihash", Tag.Multiformat, 0x31); /** Multiformat: multikey, Encryption key multiformat, status = draft, code = 0x123a */ - public static final Multicodec MULTIKEY = Multicodec.of("multikey", Tag.Multiformat, 0x123a); + public static final Multicodec MULTIKEY = Multicodec.of("multikey", Tag.Multiformat, 0x123a); /** Multiformat: multisig, Digital signature multiformat, status = draft, code = 0x1239 */ - public static final Multicodec MULTISIG = Multicodec.of("multisig", Tag.Multiformat, 0x1239); + public static final Multicodec MULTISIG = Multicodec.of("multisig", Tag.Multiformat, 0x1239); /** Multiformat: varsig, Variable signature (varsig) multiformat, status = draft, code = 0x34 */ - public static final Multicodec VARSIG = Multicodec.of("varsig", Tag.Multiformat, 0x34); + public static final Multicodec VARSIG = Multicodec.of("varsig", Tag.Multiformat, 0x34); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { ALL.put(CAIP_50.code(), CAIP_50); diff --git a/src/main/java/com/apicatalog/multihash/MultihashRegistry.java b/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java similarity index 74% rename from src/main/java/com/apicatalog/multihash/MultihashRegistry.java rename to src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java index 48678ac..1c909fa 100644 --- a/src/main/java/com/apicatalog/multihash/MultihashRegistry.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java @@ -1,14 +1,12 @@ -package com.apicatalog.multihash; +package com.apicatalog.multicodec.codec; -import java.util.Arrays; -import java.util.Map; -import java.util.Optional; import java.util.TreeMap; -import java.util.function.Function; -import java.util.stream.Collectors; +import java.util.Map; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ -public class MultihashRegistry { +import com.apicatalog.multihash.Multihash; + +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +public class MultihashCodec { /** Multihash: bcrypt-pbkdf, Bcrypt-PBKDF key derivation function, status = draft, code = 0xd00d */ public static final Multihash BCRYPT_PBKDF = Multihash.of("bcrypt-pbkdf", 0xd00d); @@ -1075,394 +1073,365 @@ public class MultihashRegistry { /** Multihash: x11, status = draft, code = 0x1100 */ public static final Multihash X11 = Multihash.of("x11", 0x1100); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { - ALL.put(BCRYPT_PBKDF.code(), BCRYPT_PBKDF); - ALL.put(BLAKE2B_104.code(), BLAKE2B_104); - ALL.put(BLAKE2B_112.code(), BLAKE2B_112); - ALL.put(BLAKE2B_120.code(), BLAKE2B_120); - ALL.put(BLAKE2B_128.code(), BLAKE2B_128); - ALL.put(BLAKE2B_136.code(), BLAKE2B_136); - ALL.put(BLAKE2B_144.code(), BLAKE2B_144); - ALL.put(BLAKE2B_152.code(), BLAKE2B_152); - ALL.put(BLAKE2B_16.code(), BLAKE2B_16); - ALL.put(BLAKE2B_160.code(), BLAKE2B_160); - ALL.put(BLAKE2B_168.code(), BLAKE2B_168); - ALL.put(BLAKE2B_176.code(), BLAKE2B_176); - ALL.put(BLAKE2B_184.code(), BLAKE2B_184); - ALL.put(BLAKE2B_192.code(), BLAKE2B_192); - ALL.put(BLAKE2B_200.code(), BLAKE2B_200); - ALL.put(BLAKE2B_208.code(), BLAKE2B_208); - ALL.put(BLAKE2B_216.code(), BLAKE2B_216); - ALL.put(BLAKE2B_224.code(), BLAKE2B_224); - ALL.put(BLAKE2B_232.code(), BLAKE2B_232); - ALL.put(BLAKE2B_24.code(), BLAKE2B_24); - ALL.put(BLAKE2B_240.code(), BLAKE2B_240); - ALL.put(BLAKE2B_248.code(), BLAKE2B_248); - ALL.put(BLAKE2B_256.code(), BLAKE2B_256); - ALL.put(BLAKE2B_264.code(), BLAKE2B_264); - ALL.put(BLAKE2B_272.code(), BLAKE2B_272); - ALL.put(BLAKE2B_280.code(), BLAKE2B_280); - ALL.put(BLAKE2B_288.code(), BLAKE2B_288); - ALL.put(BLAKE2B_296.code(), BLAKE2B_296); - ALL.put(BLAKE2B_304.code(), BLAKE2B_304); - ALL.put(BLAKE2B_312.code(), BLAKE2B_312); - ALL.put(BLAKE2B_32.code(), BLAKE2B_32); - ALL.put(BLAKE2B_320.code(), BLAKE2B_320); - ALL.put(BLAKE2B_328.code(), BLAKE2B_328); - ALL.put(BLAKE2B_336.code(), BLAKE2B_336); - ALL.put(BLAKE2B_344.code(), BLAKE2B_344); - ALL.put(BLAKE2B_352.code(), BLAKE2B_352); - ALL.put(BLAKE2B_360.code(), BLAKE2B_360); - ALL.put(BLAKE2B_368.code(), BLAKE2B_368); - ALL.put(BLAKE2B_376.code(), BLAKE2B_376); - ALL.put(BLAKE2B_384.code(), BLAKE2B_384); - ALL.put(BLAKE2B_392.code(), BLAKE2B_392); - ALL.put(BLAKE2B_40.code(), BLAKE2B_40); - ALL.put(BLAKE2B_400.code(), BLAKE2B_400); - ALL.put(BLAKE2B_408.code(), BLAKE2B_408); - ALL.put(BLAKE2B_416.code(), BLAKE2B_416); - ALL.put(BLAKE2B_424.code(), BLAKE2B_424); - ALL.put(BLAKE2B_432.code(), BLAKE2B_432); - ALL.put(BLAKE2B_440.code(), BLAKE2B_440); - ALL.put(BLAKE2B_448.code(), BLAKE2B_448); - ALL.put(BLAKE2B_456.code(), BLAKE2B_456); - ALL.put(BLAKE2B_464.code(), BLAKE2B_464); - ALL.put(BLAKE2B_472.code(), BLAKE2B_472); - ALL.put(BLAKE2B_48.code(), BLAKE2B_48); - ALL.put(BLAKE2B_480.code(), BLAKE2B_480); - ALL.put(BLAKE2B_488.code(), BLAKE2B_488); - ALL.put(BLAKE2B_496.code(), BLAKE2B_496); - ALL.put(BLAKE2B_504.code(), BLAKE2B_504); - ALL.put(BLAKE2B_512.code(), BLAKE2B_512); - ALL.put(BLAKE2B_56.code(), BLAKE2B_56); - ALL.put(BLAKE2B_64.code(), BLAKE2B_64); - ALL.put(BLAKE2B_72.code(), BLAKE2B_72); - ALL.put(BLAKE2B_8.code(), BLAKE2B_8); - ALL.put(BLAKE2B_80.code(), BLAKE2B_80); - ALL.put(BLAKE2B_88.code(), BLAKE2B_88); - ALL.put(BLAKE2B_96.code(), BLAKE2B_96); - ALL.put(BLAKE2S_104.code(), BLAKE2S_104); - ALL.put(BLAKE2S_112.code(), BLAKE2S_112); - ALL.put(BLAKE2S_120.code(), BLAKE2S_120); - ALL.put(BLAKE2S_128.code(), BLAKE2S_128); - ALL.put(BLAKE2S_136.code(), BLAKE2S_136); - ALL.put(BLAKE2S_144.code(), BLAKE2S_144); - ALL.put(BLAKE2S_152.code(), BLAKE2S_152); - ALL.put(BLAKE2S_16.code(), BLAKE2S_16); - ALL.put(BLAKE2S_160.code(), BLAKE2S_160); - ALL.put(BLAKE2S_168.code(), BLAKE2S_168); - ALL.put(BLAKE2S_176.code(), BLAKE2S_176); - ALL.put(BLAKE2S_184.code(), BLAKE2S_184); - ALL.put(BLAKE2S_192.code(), BLAKE2S_192); - ALL.put(BLAKE2S_200.code(), BLAKE2S_200); - ALL.put(BLAKE2S_208.code(), BLAKE2S_208); - ALL.put(BLAKE2S_216.code(), BLAKE2S_216); - ALL.put(BLAKE2S_224.code(), BLAKE2S_224); - ALL.put(BLAKE2S_232.code(), BLAKE2S_232); - ALL.put(BLAKE2S_24.code(), BLAKE2S_24); - ALL.put(BLAKE2S_240.code(), BLAKE2S_240); - ALL.put(BLAKE2S_248.code(), BLAKE2S_248); - ALL.put(BLAKE2S_256.code(), BLAKE2S_256); - ALL.put(BLAKE2S_32.code(), BLAKE2S_32); - ALL.put(BLAKE2S_40.code(), BLAKE2S_40); - ALL.put(BLAKE2S_48.code(), BLAKE2S_48); - ALL.put(BLAKE2S_56.code(), BLAKE2S_56); - ALL.put(BLAKE2S_64.code(), BLAKE2S_64); - ALL.put(BLAKE2S_72.code(), BLAKE2S_72); - ALL.put(BLAKE2S_8.code(), BLAKE2S_8); - ALL.put(BLAKE2S_80.code(), BLAKE2S_80); - ALL.put(BLAKE2S_88.code(), BLAKE2S_88); - ALL.put(BLAKE2S_96.code(), BLAKE2S_96); - ALL.put(BLAKE3.code(), BLAKE3); - ALL.put(DBL_SHA2_256.code(), DBL_SHA2_256); - ALL.put(IDENTITY.code(), IDENTITY); - ALL.put(KANGAROOTWELVE.code(), KANGAROOTWELVE); - ALL.put(KECCAK_224.code(), KECCAK_224); - ALL.put(KECCAK_256.code(), KECCAK_256); - ALL.put(KECCAK_384.code(), KECCAK_384); - ALL.put(KECCAK_512.code(), KECCAK_512); - ALL.put(MD4.code(), MD4); - ALL.put(MD5.code(), MD5); - ALL.put(POSEIDON_BLS12_381_A2_FC1.code(), POSEIDON_BLS12_381_A2_FC1); - ALL.put(POSEIDON_BLS12_381_A2_FC1_SC.code(), POSEIDON_BLS12_381_A2_FC1_SC); - ALL.put(RIPEMD_128.code(), RIPEMD_128); - ALL.put(RIPEMD_160.code(), RIPEMD_160); - ALL.put(RIPEMD_256.code(), RIPEMD_256); - ALL.put(RIPEMD_320.code(), RIPEMD_320); - ALL.put(SHA1.code(), SHA1); - ALL.put(SHA2_224.code(), SHA2_224); - ALL.put(SHA2_256.code(), SHA2_256); - ALL.put(SHA2_256_CHUNKED.code(), SHA2_256_CHUNKED); - ALL.put(SHA2_256_TRUNC254_PADDED.code(), SHA2_256_TRUNC254_PADDED); - ALL.put(SHA2_384.code(), SHA2_384); - ALL.put(SHA2_512.code(), SHA2_512); - ALL.put(SHA2_512_224.code(), SHA2_512_224); - ALL.put(SHA2_512_256.code(), SHA2_512_256); - ALL.put(SHA3_224.code(), SHA3_224); - ALL.put(SHA3_256.code(), SHA3_256); - ALL.put(SHA3_384.code(), SHA3_384); - ALL.put(SHA3_512.code(), SHA3_512); - ALL.put(SHAKE_128.code(), SHAKE_128); - ALL.put(SHAKE_256.code(), SHAKE_256); - ALL.put(SKEIN1024_1000.code(), SKEIN1024_1000); - ALL.put(SKEIN1024_1008.code(), SKEIN1024_1008); - ALL.put(SKEIN1024_1016.code(), SKEIN1024_1016); - ALL.put(SKEIN1024_1024.code(), SKEIN1024_1024); - ALL.put(SKEIN1024_104.code(), SKEIN1024_104); - ALL.put(SKEIN1024_112.code(), SKEIN1024_112); - ALL.put(SKEIN1024_120.code(), SKEIN1024_120); - ALL.put(SKEIN1024_128.code(), SKEIN1024_128); - ALL.put(SKEIN1024_136.code(), SKEIN1024_136); - ALL.put(SKEIN1024_144.code(), SKEIN1024_144); - ALL.put(SKEIN1024_152.code(), SKEIN1024_152); - ALL.put(SKEIN1024_16.code(), SKEIN1024_16); - ALL.put(SKEIN1024_160.code(), SKEIN1024_160); - ALL.put(SKEIN1024_168.code(), SKEIN1024_168); - ALL.put(SKEIN1024_176.code(), SKEIN1024_176); - ALL.put(SKEIN1024_184.code(), SKEIN1024_184); - ALL.put(SKEIN1024_192.code(), SKEIN1024_192); - ALL.put(SKEIN1024_200.code(), SKEIN1024_200); - ALL.put(SKEIN1024_208.code(), SKEIN1024_208); - ALL.put(SKEIN1024_216.code(), SKEIN1024_216); - ALL.put(SKEIN1024_224.code(), SKEIN1024_224); - ALL.put(SKEIN1024_232.code(), SKEIN1024_232); - ALL.put(SKEIN1024_24.code(), SKEIN1024_24); - ALL.put(SKEIN1024_240.code(), SKEIN1024_240); - ALL.put(SKEIN1024_248.code(), SKEIN1024_248); - ALL.put(SKEIN1024_256.code(), SKEIN1024_256); - ALL.put(SKEIN1024_264.code(), SKEIN1024_264); - ALL.put(SKEIN1024_272.code(), SKEIN1024_272); - ALL.put(SKEIN1024_280.code(), SKEIN1024_280); - ALL.put(SKEIN1024_288.code(), SKEIN1024_288); - ALL.put(SKEIN1024_296.code(), SKEIN1024_296); - ALL.put(SKEIN1024_304.code(), SKEIN1024_304); - ALL.put(SKEIN1024_312.code(), SKEIN1024_312); - ALL.put(SKEIN1024_32.code(), SKEIN1024_32); - ALL.put(SKEIN1024_320.code(), SKEIN1024_320); - ALL.put(SKEIN1024_328.code(), SKEIN1024_328); - ALL.put(SKEIN1024_336.code(), SKEIN1024_336); - ALL.put(SKEIN1024_344.code(), SKEIN1024_344); - ALL.put(SKEIN1024_352.code(), SKEIN1024_352); - ALL.put(SKEIN1024_360.code(), SKEIN1024_360); - ALL.put(SKEIN1024_368.code(), SKEIN1024_368); - ALL.put(SKEIN1024_376.code(), SKEIN1024_376); - ALL.put(SKEIN1024_384.code(), SKEIN1024_384); - ALL.put(SKEIN1024_392.code(), SKEIN1024_392); - ALL.put(SKEIN1024_40.code(), SKEIN1024_40); - ALL.put(SKEIN1024_400.code(), SKEIN1024_400); - ALL.put(SKEIN1024_408.code(), SKEIN1024_408); - ALL.put(SKEIN1024_416.code(), SKEIN1024_416); - ALL.put(SKEIN1024_424.code(), SKEIN1024_424); - ALL.put(SKEIN1024_432.code(), SKEIN1024_432); - ALL.put(SKEIN1024_440.code(), SKEIN1024_440); - ALL.put(SKEIN1024_448.code(), SKEIN1024_448); - ALL.put(SKEIN1024_456.code(), SKEIN1024_456); - ALL.put(SKEIN1024_464.code(), SKEIN1024_464); - ALL.put(SKEIN1024_472.code(), SKEIN1024_472); - ALL.put(SKEIN1024_48.code(), SKEIN1024_48); - ALL.put(SKEIN1024_480.code(), SKEIN1024_480); - ALL.put(SKEIN1024_488.code(), SKEIN1024_488); - ALL.put(SKEIN1024_496.code(), SKEIN1024_496); - ALL.put(SKEIN1024_504.code(), SKEIN1024_504); - ALL.put(SKEIN1024_512.code(), SKEIN1024_512); - ALL.put(SKEIN1024_520.code(), SKEIN1024_520); - ALL.put(SKEIN1024_528.code(), SKEIN1024_528); - ALL.put(SKEIN1024_536.code(), SKEIN1024_536); - ALL.put(SKEIN1024_544.code(), SKEIN1024_544); - ALL.put(SKEIN1024_552.code(), SKEIN1024_552); - ALL.put(SKEIN1024_56.code(), SKEIN1024_56); - ALL.put(SKEIN1024_560.code(), SKEIN1024_560); - ALL.put(SKEIN1024_568.code(), SKEIN1024_568); - ALL.put(SKEIN1024_576.code(), SKEIN1024_576); - ALL.put(SKEIN1024_584.code(), SKEIN1024_584); - ALL.put(SKEIN1024_592.code(), SKEIN1024_592); - ALL.put(SKEIN1024_600.code(), SKEIN1024_600); - ALL.put(SKEIN1024_608.code(), SKEIN1024_608); - ALL.put(SKEIN1024_616.code(), SKEIN1024_616); - ALL.put(SKEIN1024_624.code(), SKEIN1024_624); - ALL.put(SKEIN1024_632.code(), SKEIN1024_632); - ALL.put(SKEIN1024_64.code(), SKEIN1024_64); - ALL.put(SKEIN1024_640.code(), SKEIN1024_640); - ALL.put(SKEIN1024_648.code(), SKEIN1024_648); - ALL.put(SKEIN1024_656.code(), SKEIN1024_656); - ALL.put(SKEIN1024_664.code(), SKEIN1024_664); - ALL.put(SKEIN1024_672.code(), SKEIN1024_672); - ALL.put(SKEIN1024_680.code(), SKEIN1024_680); - ALL.put(SKEIN1024_688.code(), SKEIN1024_688); - ALL.put(SKEIN1024_696.code(), SKEIN1024_696); - ALL.put(SKEIN1024_704.code(), SKEIN1024_704); - ALL.put(SKEIN1024_712.code(), SKEIN1024_712); - ALL.put(SKEIN1024_72.code(), SKEIN1024_72); - ALL.put(SKEIN1024_720.code(), SKEIN1024_720); - ALL.put(SKEIN1024_728.code(), SKEIN1024_728); - ALL.put(SKEIN1024_736.code(), SKEIN1024_736); - ALL.put(SKEIN1024_744.code(), SKEIN1024_744); - ALL.put(SKEIN1024_752.code(), SKEIN1024_752); - ALL.put(SKEIN1024_760.code(), SKEIN1024_760); - ALL.put(SKEIN1024_768.code(), SKEIN1024_768); - ALL.put(SKEIN1024_776.code(), SKEIN1024_776); - ALL.put(SKEIN1024_784.code(), SKEIN1024_784); - ALL.put(SKEIN1024_792.code(), SKEIN1024_792); - ALL.put(SKEIN1024_8.code(), SKEIN1024_8); - ALL.put(SKEIN1024_80.code(), SKEIN1024_80); - ALL.put(SKEIN1024_800.code(), SKEIN1024_800); - ALL.put(SKEIN1024_808.code(), SKEIN1024_808); - ALL.put(SKEIN1024_816.code(), SKEIN1024_816); - ALL.put(SKEIN1024_824.code(), SKEIN1024_824); - ALL.put(SKEIN1024_832.code(), SKEIN1024_832); - ALL.put(SKEIN1024_840.code(), SKEIN1024_840); - ALL.put(SKEIN1024_848.code(), SKEIN1024_848); - ALL.put(SKEIN1024_856.code(), SKEIN1024_856); - ALL.put(SKEIN1024_864.code(), SKEIN1024_864); - ALL.put(SKEIN1024_872.code(), SKEIN1024_872); - ALL.put(SKEIN1024_88.code(), SKEIN1024_88); - ALL.put(SKEIN1024_880.code(), SKEIN1024_880); - ALL.put(SKEIN1024_888.code(), SKEIN1024_888); - ALL.put(SKEIN1024_896.code(), SKEIN1024_896); - ALL.put(SKEIN1024_904.code(), SKEIN1024_904); - ALL.put(SKEIN1024_912.code(), SKEIN1024_912); - ALL.put(SKEIN1024_920.code(), SKEIN1024_920); - ALL.put(SKEIN1024_928.code(), SKEIN1024_928); - ALL.put(SKEIN1024_936.code(), SKEIN1024_936); - ALL.put(SKEIN1024_944.code(), SKEIN1024_944); - ALL.put(SKEIN1024_952.code(), SKEIN1024_952); - ALL.put(SKEIN1024_96.code(), SKEIN1024_96); - ALL.put(SKEIN1024_960.code(), SKEIN1024_960); - ALL.put(SKEIN1024_968.code(), SKEIN1024_968); - ALL.put(SKEIN1024_976.code(), SKEIN1024_976); - ALL.put(SKEIN1024_984.code(), SKEIN1024_984); - ALL.put(SKEIN1024_992.code(), SKEIN1024_992); - ALL.put(SKEIN256_104.code(), SKEIN256_104); - ALL.put(SKEIN256_112.code(), SKEIN256_112); - ALL.put(SKEIN256_120.code(), SKEIN256_120); - ALL.put(SKEIN256_128.code(), SKEIN256_128); - ALL.put(SKEIN256_136.code(), SKEIN256_136); - ALL.put(SKEIN256_144.code(), SKEIN256_144); - ALL.put(SKEIN256_152.code(), SKEIN256_152); - ALL.put(SKEIN256_16.code(), SKEIN256_16); - ALL.put(SKEIN256_160.code(), SKEIN256_160); - ALL.put(SKEIN256_168.code(), SKEIN256_168); - ALL.put(SKEIN256_176.code(), SKEIN256_176); - ALL.put(SKEIN256_184.code(), SKEIN256_184); - ALL.put(SKEIN256_192.code(), SKEIN256_192); - ALL.put(SKEIN256_200.code(), SKEIN256_200); - ALL.put(SKEIN256_208.code(), SKEIN256_208); - ALL.put(SKEIN256_216.code(), SKEIN256_216); - ALL.put(SKEIN256_224.code(), SKEIN256_224); - ALL.put(SKEIN256_232.code(), SKEIN256_232); - ALL.put(SKEIN256_24.code(), SKEIN256_24); - ALL.put(SKEIN256_240.code(), SKEIN256_240); - ALL.put(SKEIN256_248.code(), SKEIN256_248); - ALL.put(SKEIN256_256.code(), SKEIN256_256); - ALL.put(SKEIN256_32.code(), SKEIN256_32); - ALL.put(SKEIN256_40.code(), SKEIN256_40); - ALL.put(SKEIN256_48.code(), SKEIN256_48); - ALL.put(SKEIN256_56.code(), SKEIN256_56); - ALL.put(SKEIN256_64.code(), SKEIN256_64); - ALL.put(SKEIN256_72.code(), SKEIN256_72); - ALL.put(SKEIN256_8.code(), SKEIN256_8); - ALL.put(SKEIN256_80.code(), SKEIN256_80); - ALL.put(SKEIN256_88.code(), SKEIN256_88); - ALL.put(SKEIN256_96.code(), SKEIN256_96); - ALL.put(SKEIN512_104.code(), SKEIN512_104); - ALL.put(SKEIN512_112.code(), SKEIN512_112); - ALL.put(SKEIN512_120.code(), SKEIN512_120); - ALL.put(SKEIN512_128.code(), SKEIN512_128); - ALL.put(SKEIN512_136.code(), SKEIN512_136); - ALL.put(SKEIN512_144.code(), SKEIN512_144); - ALL.put(SKEIN512_152.code(), SKEIN512_152); - ALL.put(SKEIN512_16.code(), SKEIN512_16); - ALL.put(SKEIN512_160.code(), SKEIN512_160); - ALL.put(SKEIN512_168.code(), SKEIN512_168); - ALL.put(SKEIN512_176.code(), SKEIN512_176); - ALL.put(SKEIN512_184.code(), SKEIN512_184); - ALL.put(SKEIN512_192.code(), SKEIN512_192); - ALL.put(SKEIN512_200.code(), SKEIN512_200); - ALL.put(SKEIN512_208.code(), SKEIN512_208); - ALL.put(SKEIN512_216.code(), SKEIN512_216); - ALL.put(SKEIN512_224.code(), SKEIN512_224); - ALL.put(SKEIN512_232.code(), SKEIN512_232); - ALL.put(SKEIN512_24.code(), SKEIN512_24); - ALL.put(SKEIN512_240.code(), SKEIN512_240); - ALL.put(SKEIN512_248.code(), SKEIN512_248); - ALL.put(SKEIN512_256.code(), SKEIN512_256); - ALL.put(SKEIN512_264.code(), SKEIN512_264); - ALL.put(SKEIN512_272.code(), SKEIN512_272); - ALL.put(SKEIN512_280.code(), SKEIN512_280); - ALL.put(SKEIN512_288.code(), SKEIN512_288); - ALL.put(SKEIN512_296.code(), SKEIN512_296); - ALL.put(SKEIN512_304.code(), SKEIN512_304); - ALL.put(SKEIN512_312.code(), SKEIN512_312); - ALL.put(SKEIN512_32.code(), SKEIN512_32); - ALL.put(SKEIN512_320.code(), SKEIN512_320); - ALL.put(SKEIN512_328.code(), SKEIN512_328); - ALL.put(SKEIN512_336.code(), SKEIN512_336); - ALL.put(SKEIN512_344.code(), SKEIN512_344); - ALL.put(SKEIN512_352.code(), SKEIN512_352); - ALL.put(SKEIN512_360.code(), SKEIN512_360); - ALL.put(SKEIN512_368.code(), SKEIN512_368); - ALL.put(SKEIN512_376.code(), SKEIN512_376); - ALL.put(SKEIN512_384.code(), SKEIN512_384); - ALL.put(SKEIN512_392.code(), SKEIN512_392); - ALL.put(SKEIN512_40.code(), SKEIN512_40); - ALL.put(SKEIN512_400.code(), SKEIN512_400); - ALL.put(SKEIN512_408.code(), SKEIN512_408); - ALL.put(SKEIN512_416.code(), SKEIN512_416); - ALL.put(SKEIN512_424.code(), SKEIN512_424); - ALL.put(SKEIN512_432.code(), SKEIN512_432); - ALL.put(SKEIN512_440.code(), SKEIN512_440); - ALL.put(SKEIN512_448.code(), SKEIN512_448); - ALL.put(SKEIN512_456.code(), SKEIN512_456); - ALL.put(SKEIN512_464.code(), SKEIN512_464); - ALL.put(SKEIN512_472.code(), SKEIN512_472); - ALL.put(SKEIN512_48.code(), SKEIN512_48); - ALL.put(SKEIN512_480.code(), SKEIN512_480); - ALL.put(SKEIN512_488.code(), SKEIN512_488); - ALL.put(SKEIN512_496.code(), SKEIN512_496); - ALL.put(SKEIN512_504.code(), SKEIN512_504); - ALL.put(SKEIN512_512.code(), SKEIN512_512); - ALL.put(SKEIN512_56.code(), SKEIN512_56); - ALL.put(SKEIN512_64.code(), SKEIN512_64); - ALL.put(SKEIN512_72.code(), SKEIN512_72); - ALL.put(SKEIN512_8.code(), SKEIN512_8); - ALL.put(SKEIN512_80.code(), SKEIN512_80); - ALL.put(SKEIN512_88.code(), SKEIN512_88); - ALL.put(SKEIN512_96.code(), SKEIN512_96); - ALL.put(SM3_256.code(), SM3_256); - ALL.put(SSZ_SHA2_256_BMT.code(), SSZ_SHA2_256_BMT); - ALL.put(X11.code(), X11); - } - - private static final MultihashRegistry INSTANCE = new MultihashRegistry(ALL); - - private final Map codecs; - - protected MultihashRegistry(Map codecs) { - this.codecs = codecs; + ALL.put(BCRYPT_PBKDF.code(), BCRYPT_PBKDF); + ALL.put(BLAKE2B_104.code(), BLAKE2B_104); + ALL.put(BLAKE2B_112.code(), BLAKE2B_112); + ALL.put(BLAKE2B_120.code(), BLAKE2B_120); + ALL.put(BLAKE2B_128.code(), BLAKE2B_128); + ALL.put(BLAKE2B_136.code(), BLAKE2B_136); + ALL.put(BLAKE2B_144.code(), BLAKE2B_144); + ALL.put(BLAKE2B_152.code(), BLAKE2B_152); + ALL.put(BLAKE2B_16.code(), BLAKE2B_16); + ALL.put(BLAKE2B_160.code(), BLAKE2B_160); + ALL.put(BLAKE2B_168.code(), BLAKE2B_168); + ALL.put(BLAKE2B_176.code(), BLAKE2B_176); + ALL.put(BLAKE2B_184.code(), BLAKE2B_184); + ALL.put(BLAKE2B_192.code(), BLAKE2B_192); + ALL.put(BLAKE2B_200.code(), BLAKE2B_200); + ALL.put(BLAKE2B_208.code(), BLAKE2B_208); + ALL.put(BLAKE2B_216.code(), BLAKE2B_216); + ALL.put(BLAKE2B_224.code(), BLAKE2B_224); + ALL.put(BLAKE2B_232.code(), BLAKE2B_232); + ALL.put(BLAKE2B_24.code(), BLAKE2B_24); + ALL.put(BLAKE2B_240.code(), BLAKE2B_240); + ALL.put(BLAKE2B_248.code(), BLAKE2B_248); + ALL.put(BLAKE2B_256.code(), BLAKE2B_256); + ALL.put(BLAKE2B_264.code(), BLAKE2B_264); + ALL.put(BLAKE2B_272.code(), BLAKE2B_272); + ALL.put(BLAKE2B_280.code(), BLAKE2B_280); + ALL.put(BLAKE2B_288.code(), BLAKE2B_288); + ALL.put(BLAKE2B_296.code(), BLAKE2B_296); + ALL.put(BLAKE2B_304.code(), BLAKE2B_304); + ALL.put(BLAKE2B_312.code(), BLAKE2B_312); + ALL.put(BLAKE2B_32.code(), BLAKE2B_32); + ALL.put(BLAKE2B_320.code(), BLAKE2B_320); + ALL.put(BLAKE2B_328.code(), BLAKE2B_328); + ALL.put(BLAKE2B_336.code(), BLAKE2B_336); + ALL.put(BLAKE2B_344.code(), BLAKE2B_344); + ALL.put(BLAKE2B_352.code(), BLAKE2B_352); + ALL.put(BLAKE2B_360.code(), BLAKE2B_360); + ALL.put(BLAKE2B_368.code(), BLAKE2B_368); + ALL.put(BLAKE2B_376.code(), BLAKE2B_376); + ALL.put(BLAKE2B_384.code(), BLAKE2B_384); + ALL.put(BLAKE2B_392.code(), BLAKE2B_392); + ALL.put(BLAKE2B_40.code(), BLAKE2B_40); + ALL.put(BLAKE2B_400.code(), BLAKE2B_400); + ALL.put(BLAKE2B_408.code(), BLAKE2B_408); + ALL.put(BLAKE2B_416.code(), BLAKE2B_416); + ALL.put(BLAKE2B_424.code(), BLAKE2B_424); + ALL.put(BLAKE2B_432.code(), BLAKE2B_432); + ALL.put(BLAKE2B_440.code(), BLAKE2B_440); + ALL.put(BLAKE2B_448.code(), BLAKE2B_448); + ALL.put(BLAKE2B_456.code(), BLAKE2B_456); + ALL.put(BLAKE2B_464.code(), BLAKE2B_464); + ALL.put(BLAKE2B_472.code(), BLAKE2B_472); + ALL.put(BLAKE2B_48.code(), BLAKE2B_48); + ALL.put(BLAKE2B_480.code(), BLAKE2B_480); + ALL.put(BLAKE2B_488.code(), BLAKE2B_488); + ALL.put(BLAKE2B_496.code(), BLAKE2B_496); + ALL.put(BLAKE2B_504.code(), BLAKE2B_504); + ALL.put(BLAKE2B_512.code(), BLAKE2B_512); + ALL.put(BLAKE2B_56.code(), BLAKE2B_56); + ALL.put(BLAKE2B_64.code(), BLAKE2B_64); + ALL.put(BLAKE2B_72.code(), BLAKE2B_72); + ALL.put(BLAKE2B_8.code(), BLAKE2B_8); + ALL.put(BLAKE2B_80.code(), BLAKE2B_80); + ALL.put(BLAKE2B_88.code(), BLAKE2B_88); + ALL.put(BLAKE2B_96.code(), BLAKE2B_96); + ALL.put(BLAKE2S_104.code(), BLAKE2S_104); + ALL.put(BLAKE2S_112.code(), BLAKE2S_112); + ALL.put(BLAKE2S_120.code(), BLAKE2S_120); + ALL.put(BLAKE2S_128.code(), BLAKE2S_128); + ALL.put(BLAKE2S_136.code(), BLAKE2S_136); + ALL.put(BLAKE2S_144.code(), BLAKE2S_144); + ALL.put(BLAKE2S_152.code(), BLAKE2S_152); + ALL.put(BLAKE2S_16.code(), BLAKE2S_16); + ALL.put(BLAKE2S_160.code(), BLAKE2S_160); + ALL.put(BLAKE2S_168.code(), BLAKE2S_168); + ALL.put(BLAKE2S_176.code(), BLAKE2S_176); + ALL.put(BLAKE2S_184.code(), BLAKE2S_184); + ALL.put(BLAKE2S_192.code(), BLAKE2S_192); + ALL.put(BLAKE2S_200.code(), BLAKE2S_200); + ALL.put(BLAKE2S_208.code(), BLAKE2S_208); + ALL.put(BLAKE2S_216.code(), BLAKE2S_216); + ALL.put(BLAKE2S_224.code(), BLAKE2S_224); + ALL.put(BLAKE2S_232.code(), BLAKE2S_232); + ALL.put(BLAKE2S_24.code(), BLAKE2S_24); + ALL.put(BLAKE2S_240.code(), BLAKE2S_240); + ALL.put(BLAKE2S_248.code(), BLAKE2S_248); + ALL.put(BLAKE2S_256.code(), BLAKE2S_256); + ALL.put(BLAKE2S_32.code(), BLAKE2S_32); + ALL.put(BLAKE2S_40.code(), BLAKE2S_40); + ALL.put(BLAKE2S_48.code(), BLAKE2S_48); + ALL.put(BLAKE2S_56.code(), BLAKE2S_56); + ALL.put(BLAKE2S_64.code(), BLAKE2S_64); + ALL.put(BLAKE2S_72.code(), BLAKE2S_72); + ALL.put(BLAKE2S_8.code(), BLAKE2S_8); + ALL.put(BLAKE2S_80.code(), BLAKE2S_80); + ALL.put(BLAKE2S_88.code(), BLAKE2S_88); + ALL.put(BLAKE2S_96.code(), BLAKE2S_96); + ALL.put(BLAKE3.code(), BLAKE3); + ALL.put(DBL_SHA2_256.code(), DBL_SHA2_256); + ALL.put(IDENTITY.code(), IDENTITY); + ALL.put(KANGAROOTWELVE.code(), KANGAROOTWELVE); + ALL.put(KECCAK_224.code(), KECCAK_224); + ALL.put(KECCAK_256.code(), KECCAK_256); + ALL.put(KECCAK_384.code(), KECCAK_384); + ALL.put(KECCAK_512.code(), KECCAK_512); + ALL.put(MD4.code(), MD4); + ALL.put(MD5.code(), MD5); + ALL.put(POSEIDON_BLS12_381_A2_FC1.code(), POSEIDON_BLS12_381_A2_FC1); + ALL.put(POSEIDON_BLS12_381_A2_FC1_SC.code(), POSEIDON_BLS12_381_A2_FC1_SC); + ALL.put(RIPEMD_128.code(), RIPEMD_128); + ALL.put(RIPEMD_160.code(), RIPEMD_160); + ALL.put(RIPEMD_256.code(), RIPEMD_256); + ALL.put(RIPEMD_320.code(), RIPEMD_320); + ALL.put(SHA1.code(), SHA1); + ALL.put(SHA2_224.code(), SHA2_224); + ALL.put(SHA2_256.code(), SHA2_256); + ALL.put(SHA2_256_CHUNKED.code(), SHA2_256_CHUNKED); + ALL.put(SHA2_256_TRUNC254_PADDED.code(), SHA2_256_TRUNC254_PADDED); + ALL.put(SHA2_384.code(), SHA2_384); + ALL.put(SHA2_512.code(), SHA2_512); + ALL.put(SHA2_512_224.code(), SHA2_512_224); + ALL.put(SHA2_512_256.code(), SHA2_512_256); + ALL.put(SHA3_224.code(), SHA3_224); + ALL.put(SHA3_256.code(), SHA3_256); + ALL.put(SHA3_384.code(), SHA3_384); + ALL.put(SHA3_512.code(), SHA3_512); + ALL.put(SHAKE_128.code(), SHAKE_128); + ALL.put(SHAKE_256.code(), SHAKE_256); + ALL.put(SKEIN1024_1000.code(), SKEIN1024_1000); + ALL.put(SKEIN1024_1008.code(), SKEIN1024_1008); + ALL.put(SKEIN1024_1016.code(), SKEIN1024_1016); + ALL.put(SKEIN1024_1024.code(), SKEIN1024_1024); + ALL.put(SKEIN1024_104.code(), SKEIN1024_104); + ALL.put(SKEIN1024_112.code(), SKEIN1024_112); + ALL.put(SKEIN1024_120.code(), SKEIN1024_120); + ALL.put(SKEIN1024_128.code(), SKEIN1024_128); + ALL.put(SKEIN1024_136.code(), SKEIN1024_136); + ALL.put(SKEIN1024_144.code(), SKEIN1024_144); + ALL.put(SKEIN1024_152.code(), SKEIN1024_152); + ALL.put(SKEIN1024_16.code(), SKEIN1024_16); + ALL.put(SKEIN1024_160.code(), SKEIN1024_160); + ALL.put(SKEIN1024_168.code(), SKEIN1024_168); + ALL.put(SKEIN1024_176.code(), SKEIN1024_176); + ALL.put(SKEIN1024_184.code(), SKEIN1024_184); + ALL.put(SKEIN1024_192.code(), SKEIN1024_192); + ALL.put(SKEIN1024_200.code(), SKEIN1024_200); + ALL.put(SKEIN1024_208.code(), SKEIN1024_208); + ALL.put(SKEIN1024_216.code(), SKEIN1024_216); + ALL.put(SKEIN1024_224.code(), SKEIN1024_224); + ALL.put(SKEIN1024_232.code(), SKEIN1024_232); + ALL.put(SKEIN1024_24.code(), SKEIN1024_24); + ALL.put(SKEIN1024_240.code(), SKEIN1024_240); + ALL.put(SKEIN1024_248.code(), SKEIN1024_248); + ALL.put(SKEIN1024_256.code(), SKEIN1024_256); + ALL.put(SKEIN1024_264.code(), SKEIN1024_264); + ALL.put(SKEIN1024_272.code(), SKEIN1024_272); + ALL.put(SKEIN1024_280.code(), SKEIN1024_280); + ALL.put(SKEIN1024_288.code(), SKEIN1024_288); + ALL.put(SKEIN1024_296.code(), SKEIN1024_296); + ALL.put(SKEIN1024_304.code(), SKEIN1024_304); + ALL.put(SKEIN1024_312.code(), SKEIN1024_312); + ALL.put(SKEIN1024_32.code(), SKEIN1024_32); + ALL.put(SKEIN1024_320.code(), SKEIN1024_320); + ALL.put(SKEIN1024_328.code(), SKEIN1024_328); + ALL.put(SKEIN1024_336.code(), SKEIN1024_336); + ALL.put(SKEIN1024_344.code(), SKEIN1024_344); + ALL.put(SKEIN1024_352.code(), SKEIN1024_352); + ALL.put(SKEIN1024_360.code(), SKEIN1024_360); + ALL.put(SKEIN1024_368.code(), SKEIN1024_368); + ALL.put(SKEIN1024_376.code(), SKEIN1024_376); + ALL.put(SKEIN1024_384.code(), SKEIN1024_384); + ALL.put(SKEIN1024_392.code(), SKEIN1024_392); + ALL.put(SKEIN1024_40.code(), SKEIN1024_40); + ALL.put(SKEIN1024_400.code(), SKEIN1024_400); + ALL.put(SKEIN1024_408.code(), SKEIN1024_408); + ALL.put(SKEIN1024_416.code(), SKEIN1024_416); + ALL.put(SKEIN1024_424.code(), SKEIN1024_424); + ALL.put(SKEIN1024_432.code(), SKEIN1024_432); + ALL.put(SKEIN1024_440.code(), SKEIN1024_440); + ALL.put(SKEIN1024_448.code(), SKEIN1024_448); + ALL.put(SKEIN1024_456.code(), SKEIN1024_456); + ALL.put(SKEIN1024_464.code(), SKEIN1024_464); + ALL.put(SKEIN1024_472.code(), SKEIN1024_472); + ALL.put(SKEIN1024_48.code(), SKEIN1024_48); + ALL.put(SKEIN1024_480.code(), SKEIN1024_480); + ALL.put(SKEIN1024_488.code(), SKEIN1024_488); + ALL.put(SKEIN1024_496.code(), SKEIN1024_496); + ALL.put(SKEIN1024_504.code(), SKEIN1024_504); + ALL.put(SKEIN1024_512.code(), SKEIN1024_512); + ALL.put(SKEIN1024_520.code(), SKEIN1024_520); + ALL.put(SKEIN1024_528.code(), SKEIN1024_528); + ALL.put(SKEIN1024_536.code(), SKEIN1024_536); + ALL.put(SKEIN1024_544.code(), SKEIN1024_544); + ALL.put(SKEIN1024_552.code(), SKEIN1024_552); + ALL.put(SKEIN1024_56.code(), SKEIN1024_56); + ALL.put(SKEIN1024_560.code(), SKEIN1024_560); + ALL.put(SKEIN1024_568.code(), SKEIN1024_568); + ALL.put(SKEIN1024_576.code(), SKEIN1024_576); + ALL.put(SKEIN1024_584.code(), SKEIN1024_584); + ALL.put(SKEIN1024_592.code(), SKEIN1024_592); + ALL.put(SKEIN1024_600.code(), SKEIN1024_600); + ALL.put(SKEIN1024_608.code(), SKEIN1024_608); + ALL.put(SKEIN1024_616.code(), SKEIN1024_616); + ALL.put(SKEIN1024_624.code(), SKEIN1024_624); + ALL.put(SKEIN1024_632.code(), SKEIN1024_632); + ALL.put(SKEIN1024_64.code(), SKEIN1024_64); + ALL.put(SKEIN1024_640.code(), SKEIN1024_640); + ALL.put(SKEIN1024_648.code(), SKEIN1024_648); + ALL.put(SKEIN1024_656.code(), SKEIN1024_656); + ALL.put(SKEIN1024_664.code(), SKEIN1024_664); + ALL.put(SKEIN1024_672.code(), SKEIN1024_672); + ALL.put(SKEIN1024_680.code(), SKEIN1024_680); + ALL.put(SKEIN1024_688.code(), SKEIN1024_688); + ALL.put(SKEIN1024_696.code(), SKEIN1024_696); + ALL.put(SKEIN1024_704.code(), SKEIN1024_704); + ALL.put(SKEIN1024_712.code(), SKEIN1024_712); + ALL.put(SKEIN1024_72.code(), SKEIN1024_72); + ALL.put(SKEIN1024_720.code(), SKEIN1024_720); + ALL.put(SKEIN1024_728.code(), SKEIN1024_728); + ALL.put(SKEIN1024_736.code(), SKEIN1024_736); + ALL.put(SKEIN1024_744.code(), SKEIN1024_744); + ALL.put(SKEIN1024_752.code(), SKEIN1024_752); + ALL.put(SKEIN1024_760.code(), SKEIN1024_760); + ALL.put(SKEIN1024_768.code(), SKEIN1024_768); + ALL.put(SKEIN1024_776.code(), SKEIN1024_776); + ALL.put(SKEIN1024_784.code(), SKEIN1024_784); + ALL.put(SKEIN1024_792.code(), SKEIN1024_792); + ALL.put(SKEIN1024_8.code(), SKEIN1024_8); + ALL.put(SKEIN1024_80.code(), SKEIN1024_80); + ALL.put(SKEIN1024_800.code(), SKEIN1024_800); + ALL.put(SKEIN1024_808.code(), SKEIN1024_808); + ALL.put(SKEIN1024_816.code(), SKEIN1024_816); + ALL.put(SKEIN1024_824.code(), SKEIN1024_824); + ALL.put(SKEIN1024_832.code(), SKEIN1024_832); + ALL.put(SKEIN1024_840.code(), SKEIN1024_840); + ALL.put(SKEIN1024_848.code(), SKEIN1024_848); + ALL.put(SKEIN1024_856.code(), SKEIN1024_856); + ALL.put(SKEIN1024_864.code(), SKEIN1024_864); + ALL.put(SKEIN1024_872.code(), SKEIN1024_872); + ALL.put(SKEIN1024_88.code(), SKEIN1024_88); + ALL.put(SKEIN1024_880.code(), SKEIN1024_880); + ALL.put(SKEIN1024_888.code(), SKEIN1024_888); + ALL.put(SKEIN1024_896.code(), SKEIN1024_896); + ALL.put(SKEIN1024_904.code(), SKEIN1024_904); + ALL.put(SKEIN1024_912.code(), SKEIN1024_912); + ALL.put(SKEIN1024_920.code(), SKEIN1024_920); + ALL.put(SKEIN1024_928.code(), SKEIN1024_928); + ALL.put(SKEIN1024_936.code(), SKEIN1024_936); + ALL.put(SKEIN1024_944.code(), SKEIN1024_944); + ALL.put(SKEIN1024_952.code(), SKEIN1024_952); + ALL.put(SKEIN1024_96.code(), SKEIN1024_96); + ALL.put(SKEIN1024_960.code(), SKEIN1024_960); + ALL.put(SKEIN1024_968.code(), SKEIN1024_968); + ALL.put(SKEIN1024_976.code(), SKEIN1024_976); + ALL.put(SKEIN1024_984.code(), SKEIN1024_984); + ALL.put(SKEIN1024_992.code(), SKEIN1024_992); + ALL.put(SKEIN256_104.code(), SKEIN256_104); + ALL.put(SKEIN256_112.code(), SKEIN256_112); + ALL.put(SKEIN256_120.code(), SKEIN256_120); + ALL.put(SKEIN256_128.code(), SKEIN256_128); + ALL.put(SKEIN256_136.code(), SKEIN256_136); + ALL.put(SKEIN256_144.code(), SKEIN256_144); + ALL.put(SKEIN256_152.code(), SKEIN256_152); + ALL.put(SKEIN256_16.code(), SKEIN256_16); + ALL.put(SKEIN256_160.code(), SKEIN256_160); + ALL.put(SKEIN256_168.code(), SKEIN256_168); + ALL.put(SKEIN256_176.code(), SKEIN256_176); + ALL.put(SKEIN256_184.code(), SKEIN256_184); + ALL.put(SKEIN256_192.code(), SKEIN256_192); + ALL.put(SKEIN256_200.code(), SKEIN256_200); + ALL.put(SKEIN256_208.code(), SKEIN256_208); + ALL.put(SKEIN256_216.code(), SKEIN256_216); + ALL.put(SKEIN256_224.code(), SKEIN256_224); + ALL.put(SKEIN256_232.code(), SKEIN256_232); + ALL.put(SKEIN256_24.code(), SKEIN256_24); + ALL.put(SKEIN256_240.code(), SKEIN256_240); + ALL.put(SKEIN256_248.code(), SKEIN256_248); + ALL.put(SKEIN256_256.code(), SKEIN256_256); + ALL.put(SKEIN256_32.code(), SKEIN256_32); + ALL.put(SKEIN256_40.code(), SKEIN256_40); + ALL.put(SKEIN256_48.code(), SKEIN256_48); + ALL.put(SKEIN256_56.code(), SKEIN256_56); + ALL.put(SKEIN256_64.code(), SKEIN256_64); + ALL.put(SKEIN256_72.code(), SKEIN256_72); + ALL.put(SKEIN256_8.code(), SKEIN256_8); + ALL.put(SKEIN256_80.code(), SKEIN256_80); + ALL.put(SKEIN256_88.code(), SKEIN256_88); + ALL.put(SKEIN256_96.code(), SKEIN256_96); + ALL.put(SKEIN512_104.code(), SKEIN512_104); + ALL.put(SKEIN512_112.code(), SKEIN512_112); + ALL.put(SKEIN512_120.code(), SKEIN512_120); + ALL.put(SKEIN512_128.code(), SKEIN512_128); + ALL.put(SKEIN512_136.code(), SKEIN512_136); + ALL.put(SKEIN512_144.code(), SKEIN512_144); + ALL.put(SKEIN512_152.code(), SKEIN512_152); + ALL.put(SKEIN512_16.code(), SKEIN512_16); + ALL.put(SKEIN512_160.code(), SKEIN512_160); + ALL.put(SKEIN512_168.code(), SKEIN512_168); + ALL.put(SKEIN512_176.code(), SKEIN512_176); + ALL.put(SKEIN512_184.code(), SKEIN512_184); + ALL.put(SKEIN512_192.code(), SKEIN512_192); + ALL.put(SKEIN512_200.code(), SKEIN512_200); + ALL.put(SKEIN512_208.code(), SKEIN512_208); + ALL.put(SKEIN512_216.code(), SKEIN512_216); + ALL.put(SKEIN512_224.code(), SKEIN512_224); + ALL.put(SKEIN512_232.code(), SKEIN512_232); + ALL.put(SKEIN512_24.code(), SKEIN512_24); + ALL.put(SKEIN512_240.code(), SKEIN512_240); + ALL.put(SKEIN512_248.code(), SKEIN512_248); + ALL.put(SKEIN512_256.code(), SKEIN512_256); + ALL.put(SKEIN512_264.code(), SKEIN512_264); + ALL.put(SKEIN512_272.code(), SKEIN512_272); + ALL.put(SKEIN512_280.code(), SKEIN512_280); + ALL.put(SKEIN512_288.code(), SKEIN512_288); + ALL.put(SKEIN512_296.code(), SKEIN512_296); + ALL.put(SKEIN512_304.code(), SKEIN512_304); + ALL.put(SKEIN512_312.code(), SKEIN512_312); + ALL.put(SKEIN512_32.code(), SKEIN512_32); + ALL.put(SKEIN512_320.code(), SKEIN512_320); + ALL.put(SKEIN512_328.code(), SKEIN512_328); + ALL.put(SKEIN512_336.code(), SKEIN512_336); + ALL.put(SKEIN512_344.code(), SKEIN512_344); + ALL.put(SKEIN512_352.code(), SKEIN512_352); + ALL.put(SKEIN512_360.code(), SKEIN512_360); + ALL.put(SKEIN512_368.code(), SKEIN512_368); + ALL.put(SKEIN512_376.code(), SKEIN512_376); + ALL.put(SKEIN512_384.code(), SKEIN512_384); + ALL.put(SKEIN512_392.code(), SKEIN512_392); + ALL.put(SKEIN512_40.code(), SKEIN512_40); + ALL.put(SKEIN512_400.code(), SKEIN512_400); + ALL.put(SKEIN512_408.code(), SKEIN512_408); + ALL.put(SKEIN512_416.code(), SKEIN512_416); + ALL.put(SKEIN512_424.code(), SKEIN512_424); + ALL.put(SKEIN512_432.code(), SKEIN512_432); + ALL.put(SKEIN512_440.code(), SKEIN512_440); + ALL.put(SKEIN512_448.code(), SKEIN512_448); + ALL.put(SKEIN512_456.code(), SKEIN512_456); + ALL.put(SKEIN512_464.code(), SKEIN512_464); + ALL.put(SKEIN512_472.code(), SKEIN512_472); + ALL.put(SKEIN512_48.code(), SKEIN512_48); + ALL.put(SKEIN512_480.code(), SKEIN512_480); + ALL.put(SKEIN512_488.code(), SKEIN512_488); + ALL.put(SKEIN512_496.code(), SKEIN512_496); + ALL.put(SKEIN512_504.code(), SKEIN512_504); + ALL.put(SKEIN512_512.code(), SKEIN512_512); + ALL.put(SKEIN512_56.code(), SKEIN512_56); + ALL.put(SKEIN512_64.code(), SKEIN512_64); + ALL.put(SKEIN512_72.code(), SKEIN512_72); + ALL.put(SKEIN512_8.code(), SKEIN512_8); + ALL.put(SKEIN512_80.code(), SKEIN512_80); + ALL.put(SKEIN512_88.code(), SKEIN512_88); + ALL.put(SKEIN512_96.code(), SKEIN512_96); + ALL.put(SM3_256.code(), SM3_256); + ALL.put(SSZ_SHA2_256_BMT.code(), SSZ_SHA2_256_BMT); + ALL.put(X11.code(), X11); } - public static final MultihashRegistry getInstance() { - return INSTANCE; - } - - public static final MultihashRegistry getInstance(Multihash[] codecs) { - return new MultihashRegistry(Arrays.stream(codecs) - .collect(Collectors.toMap(Multihash::code, Function.identity()))); - } - - /** - * Returns multihash associated with the given code. - * - * @param code associated with the multihash - * @return multihash or {@link Optional#empty()} - */ - public final Optional get(final long code) { - return Optional.ofNullable(codecs.get(code)); - } - - public static Map registered() { - return ALL; - } + protected MultihashCodec() { /* protected */ } } diff --git a/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java b/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java index 056006a..6cb6191 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java @@ -6,49 +6,49 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ public class NamespaceCodec { /** Namespace: arweave-ns, Arweave Namespace, status = draft, code = 0xb29910 */ - public static final Multicodec ARWEAVE_NS = Multicodec.of("arweave-ns", Tag.Namespace, 0xb29910); + public static final Multicodec ARWEAVE_NS = Multicodec.of("arweave-ns", Tag.Namespace, 0xb29910); /** Namespace: dnslink, DNSLink path, status = permanent, code = 0xe8 */ - public static final Multicodec DNSLINK = Multicodec.of("dnslink", Tag.Namespace, 0xe8); + public static final Multicodec DNSLINK = Multicodec.of("dnslink", Tag.Namespace, 0xe8); /** Namespace: ipfs, IPFS path, status = draft, code = 0xe3 */ - public static final Multicodec IPFS = Multicodec.of("ipfs", Tag.Namespace, 0xe3); + public static final Multicodec IPFS = Multicodec.of("ipfs", Tag.Namespace, 0xe3); /** Namespace: ipld, IPLD path, status = draft, code = 0xe2 */ - public static final Multicodec IPLD = Multicodec.of("ipld", Tag.Namespace, 0xe2); + public static final Multicodec IPLD = Multicodec.of("ipld", Tag.Namespace, 0xe2); /** Namespace: ipns, IPNS path, status = draft, code = 0xe5 */ - public static final Multicodec IPNS = Multicodec.of("ipns", Tag.Namespace, 0xe5); + public static final Multicodec IPNS = Multicodec.of("ipns", Tag.Namespace, 0xe5); /** Namespace: kumandra-ns, Kumandra Network Namespace, status = draft, code = 0xb49910 */ - public static final Multicodec KUMANDRA_NS = Multicodec.of("kumandra-ns", Tag.Namespace, 0xb49910); + public static final Multicodec KUMANDRA_NS = Multicodec.of("kumandra-ns", Tag.Namespace, 0xb49910); /** Namespace: lbry, LBRY Address, status = draft, code = 0x8c */ - public static final Multicodec LBRY = Multicodec.of("lbry", Tag.Namespace, 0x8c); + public static final Multicodec LBRY = Multicodec.of("lbry", Tag.Namespace, 0x8c); /** Namespace: path, Namespace for string paths. Corresponds to `/` in ASCII., status = permanent, code = 0x2f */ - public static final Multicodec PATH = Multicodec.of("path", Tag.Namespace, 0x2f); + public static final Multicodec PATH = Multicodec.of("path", Tag.Namespace, 0x2f); /** Namespace: skynet-ns, Skynet Namespace, status = draft, code = 0xb19910 */ - public static final Multicodec SKYNET_NS = Multicodec.of("skynet-ns", Tag.Namespace, 0xb19910); + public static final Multicodec SKYNET_NS = Multicodec.of("skynet-ns", Tag.Namespace, 0xb19910); /** Namespace: streamid, Ceramic Stream Id, status = draft, code = 0xce */ - public static final Multicodec STREAMID = Multicodec.of("streamid", Tag.Namespace, 0xce); + public static final Multicodec STREAMID = Multicodec.of("streamid", Tag.Namespace, 0xce); /** Namespace: subspace-ns, Subspace Network Namespace, status = draft, code = 0xb39910 */ - public static final Multicodec SUBSPACE_NS = Multicodec.of("subspace-ns", Tag.Namespace, 0xb39910); + public static final Multicodec SUBSPACE_NS = Multicodec.of("subspace-ns", Tag.Namespace, 0xb39910); /** Namespace: swarm, Swarm path, status = draft, code = 0xe4 */ - public static final Multicodec SWARM = Multicodec.of("swarm", Tag.Namespace, 0xe4); + public static final Multicodec SWARM = Multicodec.of("swarm", Tag.Namespace, 0xe4); /** Namespace: zeronet, ZeroNet site address, status = draft, code = 0xe6 */ - public static final Multicodec ZERONET = Multicodec.of("zeronet", Tag.Namespace, 0xe6); + public static final Multicodec ZERONET = Multicodec.of("zeronet", Tag.Namespace, 0xe6); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { ALL.put(ARWEAVE_NS.code(), ARWEAVE_NS); diff --git a/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java b/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java index 8f4fce0..0386ec7 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java @@ -6,46 +6,46 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ public class SerializationCodec { /** Serialization: bencode, bencode, status = draft, code = 0x63 */ - public static final Multicodec BENCODE = Multicodec.of("bencode", Tag.Serialization, 0x63); + public static final Multicodec BENCODE = Multicodec.of("bencode", Tag.Serialization, 0x63); /** Serialization: car, Content Addressable aRchive (CAR), status = draft, code = 0x202 */ - public static final Multicodec CAR = Multicodec.of("car", Tag.Serialization, 0x202); + public static final Multicodec CAR = Multicodec.of("car", Tag.Serialization, 0x202); /** Serialization: car-index-sorted, CARv2 IndexSorted index format, status = draft, code = 0x400 */ - public static final Multicodec CAR_INDEX_SORTED = Multicodec.of("car-index-sorted", Tag.Serialization, 0x400); + public static final Multicodec CAR_INDEX_SORTED = Multicodec.of("car-index-sorted", Tag.Serialization, 0x400); /** Serialization: car-multihash-index-sorted, CARv2 MultihashIndexSorted index format, status = draft, code = 0x401 */ - public static final Multicodec CAR_MULTIHASH_INDEX_SORTED = Multicodec.of("car-multihash-index-sorted", Tag.Serialization, 0x401); + public static final Multicodec CAR_MULTIHASH_INDEX_SORTED = Multicodec.of("car-multihash-index-sorted", Tag.Serialization, 0x401); /** Serialization: ipns-record, Signed IPNS Record, status = permanent, code = 0x300 */ - public static final Multicodec IPNS_RECORD = Multicodec.of("ipns-record", Tag.Serialization, 0x300); + public static final Multicodec IPNS_RECORD = Multicodec.of("ipns-record", Tag.Serialization, 0x300); /** Serialization: messagepack, MessagePack, status = draft, code = 0x201 */ - public static final Multicodec MESSAGEPACK = Multicodec.of("messagepack", Tag.Serialization, 0x201); + public static final Multicodec MESSAGEPACK = Multicodec.of("messagepack", Tag.Serialization, 0x201); /** Serialization: protobuf, Protocol Buffers, status = draft, code = 0x50 */ - public static final Multicodec PROTOBUF = Multicodec.of("protobuf", Tag.Serialization, 0x50); + public static final Multicodec PROTOBUF = Multicodec.of("protobuf", Tag.Serialization, 0x50); /** Serialization: provenance-log, Verifiable and permissioned append-only log, status = draft, code = 0x1208 */ - public static final Multicodec PROVENANCE_LOG = Multicodec.of("provenance-log", Tag.Serialization, 0x1208); + public static final Multicodec PROVENANCE_LOG = Multicodec.of("provenance-log", Tag.Serialization, 0x1208); /** Serialization: provenance-log-entry, Verifiable and permissioned append-only log entry, status = draft, code = 0x1209 */ - public static final Multicodec PROVENANCE_LOG_ENTRY = Multicodec.of("provenance-log-entry", Tag.Serialization, 0x1209); + public static final Multicodec PROVENANCE_LOG_ENTRY = Multicodec.of("provenance-log-entry", Tag.Serialization, 0x1209); /** Serialization: provenance-log-script, Verifiable and permissioned append-only log script, status = draft, code = 0x120a */ - public static final Multicodec PROVENANCE_LOG_SCRIPT = Multicodec.of("provenance-log-script", Tag.Serialization, 0x120a); + public static final Multicodec PROVENANCE_LOG_SCRIPT = Multicodec.of("provenance-log-script", Tag.Serialization, 0x120a); /** Serialization: rlp, recursive length prefix, status = draft, code = 0x60 */ - public static final Multicodec RLP = Multicodec.of("rlp", Tag.Serialization, 0x60); + public static final Multicodec RLP = Multicodec.of("rlp", Tag.Serialization, 0x60); /** Serialization: ssz, SimpleSerialize (SSZ) serialization, status = draft, code = 0xb501 */ - public static final Multicodec SSZ = Multicodec.of("ssz", Tag.Serialization, 0xb501); + public static final Multicodec SSZ = Multicodec.of("ssz", Tag.Serialization, 0xb501); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { ALL.put(BENCODE.code(), BENCODE); diff --git a/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java b/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java index a95e75c..89fb5c5 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java @@ -6,19 +6,19 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ public class TransportCodec { /** Transport: transport-bitswap, Bitswap datatransfer, status = draft, code = 0x900 */ - public static final Multicodec TRANSPORT_BITSWAP = Multicodec.of("transport-bitswap", Tag.Transport, 0x900); + public static final Multicodec TRANSPORT_BITSWAP = Multicodec.of("transport-bitswap", Tag.Transport, 0x900); /** Transport: transport-graphsync-filecoinv1, Filecoin graphsync datatransfer, status = draft, code = 0x910 */ - public static final Multicodec TRANSPORT_GRAPHSYNC_FILECOINV1 = Multicodec.of("transport-graphsync-filecoinv1", Tag.Transport, 0x910); + public static final Multicodec TRANSPORT_GRAPHSYNC_FILECOINV1 = Multicodec.of("transport-graphsync-filecoinv1", Tag.Transport, 0x910); /** Transport: transport-ipfs-gateway-http, HTTP IPFS Gateway trustless datatransfer, status = draft, code = 0x920 */ - public static final Multicodec TRANSPORT_IPFS_GATEWAY_HTTP = Multicodec.of("transport-ipfs-gateway-http", Tag.Transport, 0x920); + public static final Multicodec TRANSPORT_IPFS_GATEWAY_HTTP = Multicodec.of("transport-ipfs-gateway-http", Tag.Transport, 0x920); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { ALL.put(TRANSPORT_BITSWAP.code(), TRANSPORT_BITSWAP); diff --git a/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java b/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java index a37cc19..d46a57c 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java @@ -6,40 +6,40 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Tue Oct 01 13:47:11 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ public class VarsigCodec { /** Varsig: bls-12381-g1-sig, G1 signature for BLS-12381-G2, status = draft, code = 0xd0ea */ - public static final Multicodec BLS_12381_G1_SIG = Multicodec.of("bls-12381-g1-sig", Tag.Varsig, 0xd0ea); + public static final Multicodec BLS_12381_G1_SIG = Multicodec.of("bls-12381-g1-sig", Tag.Varsig, 0xd0ea); /** Varsig: bls-12381-g2-sig, G2 signature for BLS-12381-G1, status = draft, code = 0xd0eb */ - public static final Multicodec BLS_12381_G2_SIG = Multicodec.of("bls-12381-g2-sig", Tag.Varsig, 0xd0eb); + public static final Multicodec BLS_12381_G2_SIG = Multicodec.of("bls-12381-g2-sig", Tag.Varsig, 0xd0eb); /** Varsig: eddsa, Edwards-Curve Digital Signature Algorithm, status = draft, code = 0xd0ed */ - public static final Multicodec EDDSA = Multicodec.of("eddsa", Tag.Varsig, 0xd0ed); + public static final Multicodec EDDSA = Multicodec.of("eddsa", Tag.Varsig, 0xd0ed); /** Varsig: eip-191, EIP-191 Ethereum Signed Data Standard, status = draft, code = 0xd191 */ - public static final Multicodec EIP_191 = Multicodec.of("eip-191", Tag.Varsig, 0xd191); + public static final Multicodec EIP_191 = Multicodec.of("eip-191", Tag.Varsig, 0xd191); /** Varsig: es256, ES256 Signature Algorithm, status = draft, code = 0xd01200 */ - public static final Multicodec ES256 = Multicodec.of("es256", Tag.Varsig, 0xd01200); + public static final Multicodec ES256 = Multicodec.of("es256", Tag.Varsig, 0xd01200); /** Varsig: es256k, ES256K Siganture Algorithm (secp256k1), status = draft, code = 0xd0e7 */ - public static final Multicodec ES256K = Multicodec.of("es256k", Tag.Varsig, 0xd0e7); + public static final Multicodec ES256K = Multicodec.of("es256k", Tag.Varsig, 0xd0e7); /** Varsig: es284, ES384 Signature Algorithm, status = draft, code = 0xd01201 */ - public static final Multicodec ES284 = Multicodec.of("es284", Tag.Varsig, 0xd01201); + public static final Multicodec ES284 = Multicodec.of("es284", Tag.Varsig, 0xd01201); /** Varsig: es512, ES512 Signature Algorithm, status = draft, code = 0xd01202 */ - public static final Multicodec ES512 = Multicodec.of("es512", Tag.Varsig, 0xd01202); + public static final Multicodec ES512 = Multicodec.of("es512", Tag.Varsig, 0xd01202); /** Varsig: nonstandard-sig, Namespace for all not yet standard signature algorithms, status = deprecated, code = 0xd000 */ - public static final Multicodec NONSTANDARD_SIG = Multicodec.of("nonstandard-sig", Tag.Varsig, 0xd000); + public static final Multicodec NONSTANDARD_SIG = Multicodec.of("nonstandard-sig", Tag.Varsig, 0xd000); /** Varsig: rs256, RS256 Signature Algorithm, status = draft, code = 0xd01205 */ - public static final Multicodec RS256 = Multicodec.of("rs256", Tag.Varsig, 0xd01205); + public static final Multicodec RS256 = Multicodec.of("rs256", Tag.Varsig, 0xd01205); - protected static final Map ALL = new TreeMap<>(); + protected static final Map ALL = new TreeMap<>(); static { ALL.put(BLS_12381_G1_SIG.code(), BLS_12381_G1_SIG); diff --git a/src/main/java/com/apicatalog/multihash/MultihashDecoder.java b/src/main/java/com/apicatalog/multihash/MultihashDecoder.java deleted file mode 100644 index 6be1df5..0000000 --- a/src/main/java/com/apicatalog/multihash/MultihashDecoder.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.apicatalog.multihash; - -import java.util.Optional; - -import com.apicatalog.uvarint.UVarInt; - -public class MultihashDecoder { - - private final MultihashRegistry registry; - - protected MultihashDecoder(MultihashRegistry registry) { - this.registry = registry; - } - - public static MultihashDecoder getInstance(Multihash... codecs) { - return new MultihashDecoder(MultihashRegistry.getInstance(codecs)); - } - - /** - * Creates a new instance initialized with all supported codecs. - * - * @return a new instance - */ - public static MultihashDecoder getInstance() { - return new MultihashDecoder(MultihashRegistry.getInstance()); - } - - /** - * Finds multihash in the registry if exists - * - * @param encoded a byte array encoded as multihash - * - * @return multihash or an empty {@link Optional} if the multihash does not - * exist - */ - public Optional get(final byte[] encoded) { - - if (encoded == null) { - throw new IllegalArgumentException("The encoded value must not be null."); - } - - if (encoded.length == 0) { - throw new IllegalArgumentException("The encoded value be non empty byte array."); - } - - final long code = UVarInt.decode(encoded); - - return registry.get(code); - } - - public MultihashRegistry getRegistry() { - return registry; - } - - /** - * Decode an encoded value - * - * @param encoded to decode - * @return a decoded value - * - * @throws IllegalArgumentException if the value cannot be decoded - */ - public byte[] decode(final byte[] encoded) throws IllegalArgumentException { - return get(encoded) - .map(codec -> codec.decode(encoded)) - .orElseThrow(() -> new IllegalArgumentException("Unsupported multicode encoding [" + String.format("0x%hh, 0x%hh, ...", encoded[0], encoded[1]) + "].")); - } -} diff --git a/src/test/java/com/apicatalog/multicodec/codec/MulticodecDecoderTest.java b/src/test/java/com/apicatalog/multicodec/codec/MulticodecDecoderTest.java index 01b02c1..d1e9a2f 100644 --- a/src/test/java/com/apicatalog/multicodec/codec/MulticodecDecoderTest.java +++ b/src/test/java/com/apicatalog/multicodec/codec/MulticodecDecoderTest.java @@ -6,7 +6,6 @@ import org.junit.jupiter.api.Test; import com.apicatalog.multicodec.Multicodec.Tag; -import com.apicatalog.multihash.MultihashRegistry; import com.apicatalog.multicodec.MulticodecDecoder; class MulticodecDecoderTest { @@ -21,7 +20,7 @@ void testGetInstance() { .allMatch(codec -> decoder.getCodec(codec.varint()).isPresent())); assertTrue(MultiformatCodec.ALL.values().stream() .allMatch(codec -> decoder.getCodec(codec.varint()).isPresent())); - assertTrue(MultihashRegistry.registered().values().stream() + assertTrue(MultihashCodec.ALL.values().stream() .allMatch(codec -> decoder.getCodec(codec.varint()).isPresent())); assertTrue(VarsigCodec.ALL.values().stream() .allMatch(codec -> decoder.getCodec(codec.varint()).isPresent())); diff --git a/src/test/java/com/apicatalog/multihash/MultihashTest.java b/src/test/java/com/apicatalog/multihash/MultihashTest.java index 845caaf..03cd5df 100644 --- a/src/test/java/com/apicatalog/multihash/MultihashTest.java +++ b/src/test/java/com/apicatalog/multihash/MultihashTest.java @@ -11,9 +11,13 @@ import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import com.apicatalog.multicodec.MulticodecDecoder; +import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.codec.MultihashCodec; + class MultihashTest { - static final MultihashDecoder DECODER = MultihashDecoder.getInstance(); + static final MulticodecDecoder DECODER = MulticodecDecoder.getInstance(Tag.Multihash); @ParameterizedTest(name = "{index}") @MethodSource("testData") @@ -36,16 +40,16 @@ void testDecoderDecode(byte[] input) { @ParameterizedTest(name = "{index}") @MethodSource("testData") void testDecoderGet(byte[] input, Multihash expected) { - assertEquals(expected, DECODER.get(input).orElseThrow(IllegalArgumentException::new)); + assertEquals(expected, DECODER.getCodec(input).orElseThrow(IllegalArgumentException::new)); } static Stream testData() { return Stream.of( Arguments.of(Base64.getDecoder().decode("ERSIwvEfss45KstbKYbmQCEcRpAHPg=="), - MultihashRegistry.SHA1, + MultihashCodec.SHA1, Base64.getDecoder().decode("iMLxH7LOOSrLWymG5kAhHEaQBz4=")), Arguments.of(Base64.getDecoder().decode("EiCcvAfD+ZFyWDajqipYHKICkZiqQgudmbwOEx2fPiy+Rw=="), - MultihashRegistry.SHA2_256, + MultihashCodec.SHA2_256, Base64.getDecoder().decode("nLwHw/mRclg2o6oqWByiApGYqkILnZm8DhMdnz4svkc="))); } } From 22d845bca3abdb281ac9a8fea9b279578e8c0dee Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 01:41:56 +0200 Subject: [PATCH 02/11] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aa8b203..658a780 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ A Java implementation of [Multicodec](https://github.com/multiformats/multicodec * `static` codecs registry * no lookups for a codec when encoding * direct `static` access to codecs - * confirugable set of codecs to support when decoding + * configurable set of codecs to support when decoding * Multihash support * `Unsigned VarInt` support * no 3rd party dependencies From 8442a4f3506ba3d3956107009e646b7c6c071c23 Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 01:42:59 +0200 Subject: [PATCH 03/11] Update SECURITY --- SECURITY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SECURITY.md b/SECURITY.md index 2b17fc6..5438cbd 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -4,7 +4,7 @@ | Version | Supported | | ------- |:------------------:| -| 1.0.x | โœ… | +| 1.x.x | โœ… | | 0.x.x | โŒ | ## Reporting a Vulnerability From 368540b63990fd90a2b1ae29390a7f582344c074 Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 02:16:49 +0200 Subject: [PATCH 04/11] Add Multicodec.Status --- .../com/apicatalog/multicodec/CodecDef.java | 16 +- .../com/apicatalog/multicodec/Multicodec.java | 25 +- .../apicatalog/multicodec/codec/CidCodec.java | 8 +- .../multicodec/codec/HashCodec.java | 22 +- .../apicatalog/multicodec/codec/KeyCodec.java | 90 +-- .../multicodec/codec/MultiaddrCodec.java | 90 +-- .../multicodec/codec/MultiformatCodec.java | 20 +- .../multicodec/codec/MultihashCodec.java | 712 +++++++++--------- .../multicodec/codec/NamespaceCodec.java | 28 +- .../multicodec/codec/SerializationCodec.java | 26 +- .../multicodec/codec/TransportCodec.java | 8 +- .../multicodec/codec/VarsigCodec.java | 22 +- .../com/apicatalog/multihash/Multihash.java | 24 +- .../java/com/apicatalog/uvarint/UVarInt.java | 13 +- .../apicatalog/multicodec/MulticodecTest.java | 6 +- 15 files changed, 567 insertions(+), 543 deletions(-) diff --git a/src/gen/java/com/apicatalog/multicodec/CodecDef.java b/src/gen/java/com/apicatalog/multicodec/CodecDef.java index 225d776..cf77735 100644 --- a/src/gen/java/com/apicatalog/multicodec/CodecDef.java +++ b/src/gen/java/com/apicatalog/multicodec/CodecDef.java @@ -2,6 +2,7 @@ import java.io.PrintWriter; +import com.apicatalog.multicodec.Multicodec.Status; import com.apicatalog.multicodec.Multicodec.Tag; public class CodecDef { @@ -9,7 +10,7 @@ public class CodecDef { String name; Tag tag; Long code; - String status; + Status status; String description; public static final CodecDef from(String[] columns) { @@ -17,11 +18,14 @@ public static final CodecDef from(String[] columns) { final CodecDef def = new CodecDef(); String type = columns[1].trim(); + String status = columns[3].trim(); def.code = Long.parseLong(columns[2].trim().substring(2), 16); def.name = columns[0].trim(); def.tag = Tag.valueOf(Character.toUpperCase(type.charAt(0)) + type.substring(1)); - def.status = columns[3].trim(); + if (!status.isEmpty()) { + def.status = Status.valueOf(Character.toUpperCase(status.charAt(0)) + status.substring(1)); + } def.description = columns.length > 4 ? columns[4].trim() : null; return def; } @@ -36,8 +40,10 @@ public final void writeCode(PrintWriter writer, Class clazz) { writer.print(", "); writer.print(description); } - writer.print(", status = "); - writer.print(status); + if (status != null) { + writer.print(", status = "); + writer.print(status.name().toLowerCase()); + } writer.print(", code = "); writer.print(String.format("0x%x", code)); writer.println(" */"); @@ -57,7 +63,7 @@ public final void writeCode(PrintWriter writer, Class clazz) { writer.print(tag.name()); writer.print(", "); } - writer.print(String.format("0x%x",code)); + writer.print(String.format("0x%x", code)); writer.println(");"); } diff --git a/src/main/java/com/apicatalog/multicodec/Multicodec.java b/src/main/java/com/apicatalog/multicodec/Multicodec.java index 4ff7c4c..dbe0594 100644 --- a/src/main/java/com/apicatalog/multicodec/Multicodec.java +++ b/src/main/java/com/apicatalog/multicodec/Multicodec.java @@ -27,20 +27,35 @@ public enum Tag { Varsig, } + /** + * Common registration status + */ + public enum Status { + Deprecated, + Draft, + Permanent, + } + protected final String name; protected final byte[] codeVarint; protected final long code; protected final Tag tag; + protected final Status status; - protected Multicodec(String name, Tag tag, long code, byte[] uvarint) { + protected Multicodec(String name, Tag tag, long code, byte[] uvarint, Status status) { this.tag = tag; this.name = name; this.code = code; this.codeVarint = uvarint; + this.status = status; } public static Multicodec of(String name, Tag tag, long code) { - return new Multicodec(name, tag, code, UVarInt.encode(code)); + return of(name, tag, code); + } + + public static Multicodec of(String name, Tag tag, long code, Status status) { + return new Multicodec(name, tag, code, UVarInt.encode(code), status); } public int length() { @@ -63,6 +78,10 @@ public long code() { return code; } + public Status status() { + return status; + } + /** * Encode a value with a codec. * @@ -144,6 +163,6 @@ public boolean equals(Object obj) { @Override public String toString() { - return "Multicodec [name=" + name + ", tag=" + tag + ", code=" + code + ", varint=" + Arrays.toString(codeVarint) + "]"; + return "Multicodec [name=" + name + ", tag=" + tag + ", code=" + code + "]"; } } diff --git a/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java b/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java index 11dd6de..38bb9b8 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java @@ -6,16 +6,16 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class CidCodec { - /** Cid: cidv1, CIDv1, status = permanent, code = 0x1 */ + /** Cid: cidv1, CIDv1, status = Permanent, code = 0x1 */ public static final Multicodec CIDV1 = Multicodec.of("cidv1", Tag.Cid, 0x1); - /** Cid: cidv2, CIDv2, status = draft, code = 0x2 */ + /** Cid: cidv2, CIDv2, status = Draft, code = 0x2 */ public static final Multicodec CIDV2 = Multicodec.of("cidv2", Tag.Cid, 0x2); - /** Cid: cidv3, CIDv3, status = draft, code = 0x3 */ + /** Cid: cidv3, CIDv3, status = Draft, code = 0x3 */ public static final Multicodec CIDV3 = Multicodec.of("cidv3", Tag.Cid, 0x3); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java b/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java index 3815249..e7a6ccd 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java @@ -6,37 +6,37 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class HashCodec { - /** Hash: crc32, CRC-32 non-cryptographic hash algorithm (IEEE 802.3), status = draft, code = 0x132 */ + /** Hash: crc32, CRC-32 non-cryptographic hash algorithm (IEEE 802.3), status = Draft, code = 0x132 */ public static final Multicodec CRC32 = Multicodec.of("crc32", Tag.Hash, 0x132); - /** Hash: crc64-ecma, CRC-64 non-cryptographic hash algorithm (ECMA-182 - Annex B), status = draft, code = 0x164 */ + /** Hash: crc64-ecma, CRC-64 non-cryptographic hash algorithm (ECMA-182 - Annex B), status = Draft, code = 0x164 */ public static final Multicodec CRC64_ECMA = Multicodec.of("crc64-ecma", Tag.Hash, 0x164); - /** Hash: murmur3-32, status = draft, code = 0x23 */ + /** Hash: murmur3-32, status = Draft, code = 0x23 */ public static final Multicodec MURMUR3_32 = Multicodec.of("murmur3-32", Tag.Hash, 0x23); - /** Hash: murmur3-x64-128, status = draft, code = 0x1022 */ + /** Hash: murmur3-x64-128, status = Draft, code = 0x1022 */ public static final Multicodec MURMUR3_X64_128 = Multicodec.of("murmur3-x64-128", Tag.Hash, 0x1022); - /** Hash: murmur3-x64-64, The first 64-bits of a murmur3-x64-128 - used for UnixFS directory sharding., status = permanent, code = 0x22 */ + /** Hash: murmur3-x64-64, The first 64-bits of a murmur3-x64-128 - used for UnixFS directory sharding., status = Permanent, code = 0x22 */ public static final Multicodec MURMUR3_X64_64 = Multicodec.of("murmur3-x64-64", Tag.Hash, 0x22); - /** Hash: sha256a, The sum of multiple sha2-256 hashes; as specified by Ceramic CIP-124., status = draft, code = 0x7012 */ + /** Hash: sha256a, The sum of multiple sha2-256 hashes; as specified by Ceramic CIP-124., status = Draft, code = 0x7012 */ public static final Multicodec SHA256A = Multicodec.of("sha256a", Tag.Hash, 0x7012); - /** Hash: xxh-32, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e1 */ + /** Hash: xxh-32, Extremely fast non-cryptographic hash algorithm, status = Draft, code = 0xb3e1 */ public static final Multicodec XXH_32 = Multicodec.of("xxh-32", Tag.Hash, 0xb3e1); - /** Hash: xxh-64, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e2 */ + /** Hash: xxh-64, Extremely fast non-cryptographic hash algorithm, status = Draft, code = 0xb3e2 */ public static final Multicodec XXH_64 = Multicodec.of("xxh-64", Tag.Hash, 0xb3e2); - /** Hash: xxh3-128, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e4 */ + /** Hash: xxh3-128, Extremely fast non-cryptographic hash algorithm, status = Draft, code = 0xb3e4 */ public static final Multicodec XXH3_128 = Multicodec.of("xxh3-128", Tag.Hash, 0xb3e4); - /** Hash: xxh3-64, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e3 */ + /** Hash: xxh3-64, Extremely fast non-cryptographic hash algorithm, status = Draft, code = 0xb3e3 */ public static final Multicodec XXH3_64 = Multicodec.of("xxh3-64", Tag.Hash, 0xb3e3); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java b/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java index 7e95c42..f7914ff 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java @@ -6,139 +6,139 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class KeyCodec { - /** Key: aes-128, 128-bit AES symmetric key, status = draft, code = 0xa0 */ + /** Key: aes-128, 128-bit AES symmetric key, status = Draft, code = 0xa0 */ public static final Multicodec AES_128_KEY = Multicodec.of("aes-128", Tag.Key, 0xa0); - /** Key: aes-192, 192-bit AES symmetric key, status = draft, code = 0xa1 */ + /** Key: aes-192, 192-bit AES symmetric key, status = Draft, code = 0xa1 */ public static final Multicodec AES_192_KEY = Multicodec.of("aes-192", Tag.Key, 0xa1); - /** Key: aes-256, 256-bit AES symmetric key, status = draft, code = 0xa2 */ + /** Key: aes-256, 256-bit AES symmetric key, status = Draft, code = 0xa2 */ public static final Multicodec AES_256_KEY = Multicodec.of("aes-256", Tag.Key, 0xa2); - /** Key: bls12_381-g1-priv, BLS12-381 G1 private key, status = draft, code = 0x1309 */ + /** Key: bls12_381-g1-priv, BLS12-381 G1 private key, status = Draft, code = 0x1309 */ public static final Multicodec BLS12_381_G1_PRIVATE_KEY = Multicodec.of("bls12_381-g1-priv", Tag.Key, 0x1309); - /** Key: bls12_381-g1-priv-share, BLS12-381 G1 private key share, status = draft, code = 0x130e */ + /** Key: bls12_381-g1-priv-share, BLS12-381 G1 private key share, status = Draft, code = 0x130e */ public static final Multicodec BLS12_381_G1_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g1-priv-share", Tag.Key, 0x130e); - /** Key: bls12_381-g1-pub, BLS12-381 public key in the G1 field, status = draft, code = 0xea */ + /** Key: bls12_381-g1-pub, BLS12-381 public key in the G1 field, status = Draft, code = 0xea */ public static final Multicodec BLS12_381_G1_PUBLIC_KEY = Multicodec.of("bls12_381-g1-pub", Tag.Key, 0xea); - /** Key: bls12_381-g1-pub-share, BLS12-381 G1 public key share, status = draft, code = 0x130c */ + /** Key: bls12_381-g1-pub-share, BLS12-381 G1 public key share, status = Draft, code = 0x130c */ public static final Multicodec BLS12_381_G1_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g1-pub-share", Tag.Key, 0x130c); - /** Key: bls12_381-g1g2-priv, BLS12-381 G1 and G2 private key, status = draft, code = 0x130b */ + /** Key: bls12_381-g1g2-priv, BLS12-381 G1 and G2 private key, status = Draft, code = 0x130b */ public static final Multicodec BLS12_381_G1G2_PRIVATE_KEY = Multicodec.of("bls12_381-g1g2-priv", Tag.Key, 0x130b); - /** Key: bls12_381-g1g2-pub, BLS12-381 concatenated public keys in both the G1 and G2 fields, status = draft, code = 0xee */ + /** Key: bls12_381-g1g2-pub, BLS12-381 concatenated public keys in both the G1 and G2 fields, status = Draft, code = 0xee */ public static final Multicodec BLS12_381_G1G2_PUBLIC_KEY = Multicodec.of("bls12_381-g1g2-pub", Tag.Key, 0xee); - /** Key: bls12_381-g2-priv, BLS12-381 G2 private key, status = draft, code = 0x130a */ + /** Key: bls12_381-g2-priv, BLS12-381 G2 private key, status = Draft, code = 0x130a */ public static final Multicodec BLS12_381_G2_PRIVATE_KEY = Multicodec.of("bls12_381-g2-priv", Tag.Key, 0x130a); - /** Key: bls12_381-g2-priv-share, BLS12-381 G2 private key share, status = draft, code = 0x130f */ + /** Key: bls12_381-g2-priv-share, BLS12-381 G2 private key share, status = Draft, code = 0x130f */ public static final Multicodec BLS12_381_G2_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g2-priv-share", Tag.Key, 0x130f); - /** Key: bls12_381-g2-pub, BLS12-381 public key in the G2 field, status = draft, code = 0xeb */ + /** Key: bls12_381-g2-pub, BLS12-381 public key in the G2 field, status = Draft, code = 0xeb */ public static final Multicodec BLS12_381_G2_PUBLIC_KEY = Multicodec.of("bls12_381-g2-pub", Tag.Key, 0xeb); - /** Key: bls12_381-g2-pub-share, BLS12-381 G2 public key share, status = draft, code = 0x130d */ + /** Key: bls12_381-g2-pub-share, BLS12-381 G2 public key share, status = Draft, code = 0x130d */ public static final Multicodec BLS12_381_G2_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g2-pub-share", Tag.Key, 0x130d); - /** Key: chacha-128, 128-bit ChaCha symmetric key, status = draft, code = 0xa3 */ + /** Key: chacha-128, 128-bit ChaCha symmetric key, status = Draft, code = 0xa3 */ public static final Multicodec CHACHA_128_KEY = Multicodec.of("chacha-128", Tag.Key, 0xa3); - /** Key: chacha-256, 256-bit ChaCha symmetric key, status = draft, code = 0xa4 */ + /** Key: chacha-256, 256-bit ChaCha symmetric key, status = Draft, code = 0xa4 */ public static final Multicodec CHACHA_256_KEY = Multicodec.of("chacha-256", Tag.Key, 0xa4); - /** Key: ed25519-priv, Ed25519 private key, status = draft, code = 0x1300 */ + /** Key: ed25519-priv, Ed25519 private key, status = Draft, code = 0x1300 */ public static final Multicodec ED25519_PRIVATE_KEY = Multicodec.of("ed25519-priv", Tag.Key, 0x1300); - /** Key: ed25519-pub, Ed25519 public key, status = draft, code = 0xed */ + /** Key: ed25519-pub, Ed25519 public key, status = Draft, code = 0xed */ public static final Multicodec ED25519_PUBLIC_KEY = Multicodec.of("ed25519-pub", Tag.Key, 0xed); - /** Key: ed448-pub, Ed448 public Key, status = draft, code = 0x1203 */ + /** Key: ed448-pub, Ed448 public Key, status = Draft, code = 0x1203 */ public static final Multicodec ED448_PUBLIC_KEY = Multicodec.of("ed448-pub", Tag.Key, 0x1203); - /** Key: jwk_jcs-pub, JSON object containing only the required members of a JWK (RFC 7518 and RFC 7517) representing the public key. Serialisation based on JCS (RFC 8785), status = draft, code = 0xeb51 */ + /** Key: jwk_jcs-pub, JSON object containing only the required members of a JWK (RFC 7518 and RFC 7517) representing the public key. Serialisation based on JCS (RFC 8785), status = Draft, code = 0xeb51 */ public static final Multicodec JWK_JCS_PUBLIC_KEY = Multicodec.of("jwk_jcs-pub", Tag.Key, 0xeb51); - /** Key: lamport-sha3-256-priv, Lamport private key based on SHA3-256, status = draft, code = 0x1a26 */ + /** Key: lamport-sha3-256-priv, Lamport private key based on SHA3-256, status = Draft, code = 0x1a26 */ public static final Multicodec LAMPORT_SHA3_256_PRIVATE_KEY = Multicodec.of("lamport-sha3-256-priv", Tag.Key, 0x1a26); - /** Key: lamport-sha3-256-priv-share, Lamport private key share based on SHA3-256 and split with Shamir gf256, status = draft, code = 0x1a36 */ + /** Key: lamport-sha3-256-priv-share, Lamport private key share based on SHA3-256 and split with Shamir gf256, status = Draft, code = 0x1a36 */ public static final Multicodec LAMPORT_SHA3_256_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-256-priv-share", Tag.Key, 0x1a36); - /** Key: lamport-sha3-256-pub, Lamport public key based on SHA3-256, status = draft, code = 0x1a16 */ + /** Key: lamport-sha3-256-pub, Lamport public key based on SHA3-256, status = Draft, code = 0x1a16 */ public static final Multicodec LAMPORT_SHA3_256_PUBLIC_KEY = Multicodec.of("lamport-sha3-256-pub", Tag.Key, 0x1a16); - /** Key: lamport-sha3-384-priv, Lamport private key based on SHA3-384, status = draft, code = 0x1a25 */ + /** Key: lamport-sha3-384-priv, Lamport private key based on SHA3-384, status = Draft, code = 0x1a25 */ public static final Multicodec LAMPORT_SHA3_384_PRIVATE_KEY = Multicodec.of("lamport-sha3-384-priv", Tag.Key, 0x1a25); - /** Key: lamport-sha3-384-priv-share, Lamport private key share based on SHA3-384 and split with Shamir gf256, status = draft, code = 0x1a35 */ + /** Key: lamport-sha3-384-priv-share, Lamport private key share based on SHA3-384 and split with Shamir gf256, status = Draft, code = 0x1a35 */ public static final Multicodec LAMPORT_SHA3_384_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-384-priv-share", Tag.Key, 0x1a35); - /** Key: lamport-sha3-384-pub, Lamport public key based on SHA3-384, status = draft, code = 0x1a15 */ + /** Key: lamport-sha3-384-pub, Lamport public key based on SHA3-384, status = Draft, code = 0x1a15 */ public static final Multicodec LAMPORT_SHA3_384_PUBLIC_KEY = Multicodec.of("lamport-sha3-384-pub", Tag.Key, 0x1a15); - /** Key: lamport-sha3-512-priv, Lamport private key based on SHA3-512, status = draft, code = 0x1a24 */ + /** Key: lamport-sha3-512-priv, Lamport private key based on SHA3-512, status = Draft, code = 0x1a24 */ public static final Multicodec LAMPORT_SHA3_512_PRIVATE_KEY = Multicodec.of("lamport-sha3-512-priv", Tag.Key, 0x1a24); - /** Key: lamport-sha3-512-priv-share, Lamport private key share based on SHA3-512 and split with Shamir gf256, status = draft, code = 0x1a34 */ + /** Key: lamport-sha3-512-priv-share, Lamport private key share based on SHA3-512 and split with Shamir gf256, status = Draft, code = 0x1a34 */ public static final Multicodec LAMPORT_SHA3_512_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-512-priv-share", Tag.Key, 0x1a34); - /** Key: lamport-sha3-512-pub, Lamport public key based on SHA3-512, status = draft, code = 0x1a14 */ + /** Key: lamport-sha3-512-pub, Lamport public key based on SHA3-512, status = Draft, code = 0x1a14 */ public static final Multicodec LAMPORT_SHA3_512_PUBLIC_KEY = Multicodec.of("lamport-sha3-512-pub", Tag.Key, 0x1a14); - /** Key: p256-priv, P-256 private key, status = draft, code = 0x1306 */ + /** Key: p256-priv, P-256 private key, status = Draft, code = 0x1306 */ public static final Multicodec P256_PRIVATE_KEY = Multicodec.of("p256-priv", Tag.Key, 0x1306); - /** Key: p256-pub, P-256 public Key (compressed), status = draft, code = 0x1200 */ + /** Key: p256-pub, P-256 public Key (compressed), status = Draft, code = 0x1200 */ public static final Multicodec P256_PUBLIC_KEY = Multicodec.of("p256-pub", Tag.Key, 0x1200); - /** Key: p384-priv, P-384 private key, status = draft, code = 0x1307 */ + /** Key: p384-priv, P-384 private key, status = Draft, code = 0x1307 */ public static final Multicodec P384_PRIVATE_KEY = Multicodec.of("p384-priv", Tag.Key, 0x1307); - /** Key: p384-pub, P-384 public Key (compressed), status = draft, code = 0x1201 */ + /** Key: p384-pub, P-384 public Key (compressed), status = Draft, code = 0x1201 */ public static final Multicodec P384_PUBLIC_KEY = Multicodec.of("p384-pub", Tag.Key, 0x1201); - /** Key: p521-priv, P-521 private key, status = draft, code = 0x1308 */ + /** Key: p521-priv, P-521 private key, status = Draft, code = 0x1308 */ public static final Multicodec P521_PRIVATE_KEY = Multicodec.of("p521-priv", Tag.Key, 0x1308); - /** Key: p521-pub, P-521 public Key (compressed), status = draft, code = 0x1202 */ + /** Key: p521-pub, P-521 public Key (compressed), status = Draft, code = 0x1202 */ public static final Multicodec P521_PUBLIC_KEY = Multicodec.of("p521-pub", Tag.Key, 0x1202); - /** Key: rsa-priv, RSA private key, status = draft, code = 0x1305 */ + /** Key: rsa-priv, RSA private key, status = Draft, code = 0x1305 */ public static final Multicodec RSA_PRIVATE_KEY = Multicodec.of("rsa-priv", Tag.Key, 0x1305); - /** Key: rsa-pub, RSA public key. DER-encoded ASN.1 type RSAPublicKey according to IETF RFC 8017 (PKCS #1), status = draft, code = 0x1205 */ + /** Key: rsa-pub, RSA public key. DER-encoded ASN.1 type RSAPublicKey according to IETF RFC 8017 (PKCS #1), status = Draft, code = 0x1205 */ public static final Multicodec RSA_PUBLIC_KEY = Multicodec.of("rsa-pub", Tag.Key, 0x1205); - /** Key: secp256k1-priv, Secp256k1 private key, status = draft, code = 0x1301 */ + /** Key: secp256k1-priv, Secp256k1 private key, status = Draft, code = 0x1301 */ public static final Multicodec SECP256K1_PRIVATE_KEY = Multicodec.of("secp256k1-priv", Tag.Key, 0x1301); - /** Key: secp256k1-pub, Secp256k1 public key (compressed), status = draft, code = 0xe7 */ + /** Key: secp256k1-pub, Secp256k1 public key (compressed), status = Draft, code = 0xe7 */ public static final Multicodec SECP256K1_PUBLIC_KEY = Multicodec.of("secp256k1-pub", Tag.Key, 0xe7); - /** Key: sm2-pub, SM2 public key (compressed), status = draft, code = 0x1206 */ + /** Key: sm2-pub, SM2 public key (compressed), status = Draft, code = 0x1206 */ public static final Multicodec SM2_PUBLIC_KEY = Multicodec.of("sm2-pub", Tag.Key, 0x1206); - /** Key: sr25519-priv, Sr25519 private key, status = draft, code = 0x1303 */ + /** Key: sr25519-priv, Sr25519 private key, status = Draft, code = 0x1303 */ public static final Multicodec SR25519_PRIVATE_KEY = Multicodec.of("sr25519-priv", Tag.Key, 0x1303); - /** Key: sr25519-pub, Sr25519 public key, status = draft, code = 0xef */ + /** Key: sr25519-pub, Sr25519 public key, status = Draft, code = 0xef */ public static final Multicodec SR25519_PUBLIC_KEY = Multicodec.of("sr25519-pub", Tag.Key, 0xef); - /** Key: x25519-priv, Curve25519 private key, status = draft, code = 0x1302 */ + /** Key: x25519-priv, Curve25519 private key, status = Draft, code = 0x1302 */ public static final Multicodec X25519_PRIVATE_KEY = Multicodec.of("x25519-priv", Tag.Key, 0x1302); - /** Key: x25519-pub, Curve25519 public key, status = draft, code = 0xec */ + /** Key: x25519-pub, Curve25519 public key, status = Draft, code = 0xec */ public static final Multicodec X25519_PUBLIC_KEY = Multicodec.of("x25519-pub", Tag.Key, 0xec); - /** Key: x448-pub, X448 public Key, status = draft, code = 0x1204 */ + /** Key: x448-pub, X448 public Key, status = Draft, code = 0x1204 */ public static final Multicodec X448_PUBLIC_KEY = Multicodec.of("x448-pub", Tag.Key, 0x1204); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java index a4cda1b..939fe62 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java @@ -6,139 +6,139 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class MultiaddrCodec { - /** Multiaddr: certhash, TLS certificate's fingerprint as a multihash, status = draft, code = 0x1d2 */ + /** Multiaddr: certhash, TLS certificate's fingerprint as a multihash, status = Draft, code = 0x1d2 */ public static final Multicodec CERTHASH = Multicodec.of("certhash", Tag.Multiaddr, 0x1d2); - /** Multiaddr: dccp, status = draft, code = 0x21 */ + /** Multiaddr: dccp, status = Draft, code = 0x21 */ public static final Multicodec DCCP = Multicodec.of("dccp", Tag.Multiaddr, 0x21); - /** Multiaddr: dns, status = permanent, code = 0x35 */ + /** Multiaddr: dns, status = Permanent, code = 0x35 */ public static final Multicodec DNS = Multicodec.of("dns", Tag.Multiaddr, 0x35); - /** Multiaddr: dns4, status = permanent, code = 0x36 */ + /** Multiaddr: dns4, status = Permanent, code = 0x36 */ public static final Multicodec DNS4 = Multicodec.of("dns4", Tag.Multiaddr, 0x36); - /** Multiaddr: dns6, status = permanent, code = 0x37 */ + /** Multiaddr: dns6, status = Permanent, code = 0x37 */ public static final Multicodec DNS6 = Multicodec.of("dns6", Tag.Multiaddr, 0x37); - /** Multiaddr: dnsaddr, status = permanent, code = 0x38 */ + /** Multiaddr: dnsaddr, status = Permanent, code = 0x38 */ public static final Multicodec DNSADDR = Multicodec.of("dnsaddr", Tag.Multiaddr, 0x38); - /** Multiaddr: garlic32, I2P base32 (hashed public key or encoded public key/checksum+optional secret), status = draft, code = 0x1bf */ + /** Multiaddr: garlic32, I2P base32 (hashed public key or encoded public key/checksum+optional secret), status = Draft, code = 0x1bf */ public static final Multicodec GARLIC32 = Multicodec.of("garlic32", Tag.Multiaddr, 0x1bf); - /** Multiaddr: garlic64, I2P base64 (raw public key), status = draft, code = 0x1be */ + /** Multiaddr: garlic64, I2P base64 (raw public key), status = Draft, code = 0x1be */ public static final Multicodec GARLIC64 = Multicodec.of("garlic64", Tag.Multiaddr, 0x1be); - /** Multiaddr: http, status = draft, code = 0x1e0 */ + /** Multiaddr: http, status = Draft, code = 0x1e0 */ public static final Multicodec HTTP = Multicodec.of("http", Tag.Multiaddr, 0x1e0); - /** Multiaddr: http-path, Percent-encoded path to an HTTP resource, status = draft, code = 0x1e1 */ + /** Multiaddr: http-path, Percent-encoded path to an HTTP resource, status = Draft, code = 0x1e1 */ public static final Multicodec HTTP_PATH = Multicodec.of("http-path", Tag.Multiaddr, 0x1e1); - /** Multiaddr: https, status = draft, code = 0x1bb */ + /** Multiaddr: https, status = Draft, code = 0x1bb */ public static final Multicodec HTTPS = Multicodec.of("https", Tag.Multiaddr, 0x1bb); - /** Multiaddr: ip4, status = permanent, code = 0x4 */ + /** Multiaddr: ip4, status = Permanent, code = 0x4 */ public static final Multicodec IP4 = Multicodec.of("ip4", Tag.Multiaddr, 0x4); - /** Multiaddr: ip6, status = permanent, code = 0x29 */ + /** Multiaddr: ip6, status = Permanent, code = 0x29 */ public static final Multicodec IP6 = Multicodec.of("ip6", Tag.Multiaddr, 0x29); - /** Multiaddr: ip6zone, status = draft, code = 0x2a */ + /** Multiaddr: ip6zone, status = Draft, code = 0x2a */ public static final Multicodec IP6ZONE = Multicodec.of("ip6zone", Tag.Multiaddr, 0x2a); - /** Multiaddr: ipcidr, CIDR mask for IP addresses, status = draft, code = 0x2b */ + /** Multiaddr: ipcidr, CIDR mask for IP addresses, status = Draft, code = 0x2b */ public static final Multicodec IPCIDR = Multicodec.of("ipcidr", Tag.Multiaddr, 0x2b); - /** Multiaddr: noise, status = draft, code = 0x1c6 */ + /** Multiaddr: noise, status = Draft, code = 0x1c6 */ public static final Multicodec NOISE = Multicodec.of("noise", Tag.Multiaddr, 0x1c6); - /** Multiaddr: onion, status = draft, code = 0x1bc */ + /** Multiaddr: onion, status = Draft, code = 0x1bc */ public static final Multicodec ONION = Multicodec.of("onion", Tag.Multiaddr, 0x1bc); - /** Multiaddr: onion3, status = draft, code = 0x1bd */ + /** Multiaddr: onion3, status = Draft, code = 0x1bd */ public static final Multicodec ONION3 = Multicodec.of("onion3", Tag.Multiaddr, 0x1bd); - /** Multiaddr: p2p, libp2p, status = permanent, code = 0x1a5 */ + /** Multiaddr: p2p, libp2p, status = Permanent, code = 0x1a5 */ public static final Multicodec P2P = Multicodec.of("p2p", Tag.Multiaddr, 0x1a5); - /** Multiaddr: p2p-circuit, status = permanent, code = 0x122 */ + /** Multiaddr: p2p-circuit, status = Permanent, code = 0x122 */ public static final Multicodec P2P_CIRCUIT = Multicodec.of("p2p-circuit", Tag.Multiaddr, 0x122); - /** Multiaddr: p2p-stardust, status = deprecated, code = 0x115 */ + /** Multiaddr: p2p-stardust, status = Deprecated, code = 0x115 */ public static final Multicodec P2P_STARDUST = Multicodec.of("p2p-stardust", Tag.Multiaddr, 0x115); - /** Multiaddr: p2p-webrtc-direct, Use webrtc or webrtc-direct instead, status = deprecated, code = 0x114 */ + /** Multiaddr: p2p-webrtc-direct, Use webrtc or webrtc-direct instead, status = Deprecated, code = 0x114 */ public static final Multicodec P2P_WEBRTC_DIRECT = Multicodec.of("p2p-webrtc-direct", Tag.Multiaddr, 0x114); - /** Multiaddr: p2p-webrtc-star, Use webrtc or webrtc-direct instead, status = deprecated, code = 0x113 */ + /** Multiaddr: p2p-webrtc-star, Use webrtc or webrtc-direct instead, status = Deprecated, code = 0x113 */ public static final Multicodec P2P_WEBRTC_STAR = Multicodec.of("p2p-webrtc-star", Tag.Multiaddr, 0x113); - /** Multiaddr: p2p-websocket-star, status = permanent, code = 0x1df */ + /** Multiaddr: p2p-websocket-star, status = Permanent, code = 0x1df */ public static final Multicodec P2P_WEBSOCKET_STAR = Multicodec.of("p2p-websocket-star", Tag.Multiaddr, 0x1df); - /** Multiaddr: plaintextv2, status = draft, code = 0x706c61 */ + /** Multiaddr: plaintextv2, status = Draft, code = 0x706c61 */ public static final Multicodec PLAINTEXTV2 = Multicodec.of("plaintextv2", Tag.Multiaddr, 0x706c61); - /** Multiaddr: quic, status = permanent, code = 0x1cc */ + /** Multiaddr: quic, status = Permanent, code = 0x1cc */ public static final Multicodec QUIC = Multicodec.of("quic", Tag.Multiaddr, 0x1cc); - /** Multiaddr: quic-v1, status = permanent, code = 0x1cd */ + /** Multiaddr: quic-v1, status = Permanent, code = 0x1cd */ public static final Multicodec QUIC_V1 = Multicodec.of("quic-v1", Tag.Multiaddr, 0x1cd); - /** Multiaddr: scion, SCION Internet architecture, status = draft, code = 0xd02000 */ + /** Multiaddr: scion, SCION Internet architecture, status = Draft, code = 0xd02000 */ public static final Multicodec SCION = Multicodec.of("scion", Tag.Multiaddr, 0xd02000); - /** Multiaddr: sctp, status = draft, code = 0x84 */ + /** Multiaddr: sctp, status = Draft, code = 0x84 */ public static final Multicodec SCTP = Multicodec.of("sctp", Tag.Multiaddr, 0x84); - /** Multiaddr: shs, Secure Scuttlebutt - Secret Handshake Stream, status = draft, code = 0x1c8 */ + /** Multiaddr: shs, Secure Scuttlebutt - Secret Handshake Stream, status = Draft, code = 0x1c8 */ public static final Multicodec SHS = Multicodec.of("shs", Tag.Multiaddr, 0x1c8); - /** Multiaddr: silverpine, Experimental QUIC over yggdrasil and ironwood routing protocol, status = draft, code = 0x3f42 */ + /** Multiaddr: silverpine, Experimental QUIC over yggdrasil and ironwood routing protocol, status = Draft, code = 0x3f42 */ public static final Multicodec SILVERPINE = Multicodec.of("silverpine", Tag.Multiaddr, 0x3f42); - /** Multiaddr: sni, Server Name Indication RFC 6066 ยง 3, status = draft, code = 0x1c1 */ + /** Multiaddr: sni, Server Name Indication RFC 6066 ยง 3, status = Draft, code = 0x1c1 */ public static final Multicodec SNI = Multicodec.of("sni", Tag.Multiaddr, 0x1c1); - /** Multiaddr: tcp, status = permanent, code = 0x6 */ + /** Multiaddr: tcp, status = Permanent, code = 0x6 */ public static final Multicodec TCP = Multicodec.of("tcp", Tag.Multiaddr, 0x6); - /** Multiaddr: thread, Textile Thread, status = draft, code = 0x196 */ + /** Multiaddr: thread, Textile Thread, status = Draft, code = 0x196 */ public static final Multicodec THREAD = Multicodec.of("thread", Tag.Multiaddr, 0x196); - /** Multiaddr: tls, status = draft, code = 0x1c0 */ + /** Multiaddr: tls, status = Draft, code = 0x1c0 */ public static final Multicodec TLS = Multicodec.of("tls", Tag.Multiaddr, 0x1c0); - /** Multiaddr: udp, status = draft, code = 0x111 */ + /** Multiaddr: udp, status = Draft, code = 0x111 */ public static final Multicodec UDP = Multicodec.of("udp", Tag.Multiaddr, 0x111); - /** Multiaddr: udt, status = draft, code = 0x12d */ + /** Multiaddr: udt, status = Draft, code = 0x12d */ public static final Multicodec UDT = Multicodec.of("udt", Tag.Multiaddr, 0x12d); - /** Multiaddr: unix, status = permanent, code = 0x190 */ + /** Multiaddr: unix, status = Permanent, code = 0x190 */ public static final Multicodec UNIX = Multicodec.of("unix", Tag.Multiaddr, 0x190); - /** Multiaddr: utp, status = draft, code = 0x12e */ + /** Multiaddr: utp, status = Draft, code = 0x12e */ public static final Multicodec UTP = Multicodec.of("utp", Tag.Multiaddr, 0x12e); - /** Multiaddr: webrtc, webrtc transport where connection establishment is according to w3c spec, status = draft, code = 0x119 */ + /** Multiaddr: webrtc, webrtc transport where connection establishment is according to w3c spec, status = Draft, code = 0x119 */ public static final Multicodec WEBRTC = Multicodec.of("webrtc", Tag.Multiaddr, 0x119); - /** Multiaddr: webrtc-direct, ICE-lite webrtc transport with SDP munging during connection establishment and without use of a STUN server, status = draft, code = 0x118 */ + /** Multiaddr: webrtc-direct, ICE-lite webrtc transport with SDP munging during connection establishment and without use of a STUN server, status = Draft, code = 0x118 */ public static final Multicodec WEBRTC_DIRECT = Multicodec.of("webrtc-direct", Tag.Multiaddr, 0x118); - /** Multiaddr: webtransport, status = draft, code = 0x1d1 */ + /** Multiaddr: webtransport, status = Draft, code = 0x1d1 */ public static final Multicodec WEBTRANSPORT = Multicodec.of("webtransport", Tag.Multiaddr, 0x1d1); - /** Multiaddr: ws, status = permanent, code = 0x1dd */ + /** Multiaddr: ws, status = Permanent, code = 0x1dd */ public static final Multicodec WS = Multicodec.of("ws", Tag.Multiaddr, 0x1dd); - /** Multiaddr: wss, status = permanent, code = 0x1de */ + /** Multiaddr: wss, status = Permanent, code = 0x1de */ public static final Multicodec WSS = Multicodec.of("wss", Tag.Multiaddr, 0x1de); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java index 38daac6..3a0d349 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java @@ -6,34 +6,34 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class MultiformatCodec { - /** Multiformat: caip-50, CAIP-50 multi-chain account id, status = draft, code = 0xca */ + /** Multiformat: caip-50, CAIP-50 multi-chain account id, status = Draft, code = 0xca */ public static final Multicodec CAIP_50 = Multicodec.of("caip-50", Tag.Multiformat, 0xca); - /** Multiformat: multiaddr, status = draft, code = 0x32 */ + /** Multiformat: multiaddr, status = Draft, code = 0x32 */ public static final Multicodec MULTIADDR = Multicodec.of("multiaddr", Tag.Multiformat, 0x32); - /** Multiformat: multibase, status = draft, code = 0x33 */ + /** Multiformat: multibase, status = Draft, code = 0x33 */ public static final Multicodec MULTIBASE = Multicodec.of("multibase", Tag.Multiformat, 0x33); - /** Multiformat: multicodec, status = draft, code = 0x30 */ + /** Multiformat: multicodec, status = Draft, code = 0x30 */ public static final Multicodec MULTICODEC = Multicodec.of("multicodec", Tag.Multiformat, 0x30); - /** Multiformat: multidid, Compact encoding for Decentralized Identifers, status = draft, code = 0xd1d */ + /** Multiformat: multidid, Compact encoding for Decentralized Identifers, status = Draft, code = 0xd1d */ public static final Multicodec MULTIDID = Multicodec.of("multidid", Tag.Multiformat, 0xd1d); - /** Multiformat: multihash, status = draft, code = 0x31 */ + /** Multiformat: multihash, status = Draft, code = 0x31 */ public static final Multicodec MULTIHASH = Multicodec.of("multihash", Tag.Multiformat, 0x31); - /** Multiformat: multikey, Encryption key multiformat, status = draft, code = 0x123a */ + /** Multiformat: multikey, Encryption key multiformat, status = Draft, code = 0x123a */ public static final Multicodec MULTIKEY = Multicodec.of("multikey", Tag.Multiformat, 0x123a); - /** Multiformat: multisig, Digital signature multiformat, status = draft, code = 0x1239 */ + /** Multiformat: multisig, Digital signature multiformat, status = Draft, code = 0x1239 */ public static final Multicodec MULTISIG = Multicodec.of("multisig", Tag.Multiformat, 0x1239); - /** Multiformat: varsig, Variable signature (varsig) multiformat, status = draft, code = 0x34 */ + /** Multiformat: varsig, Variable signature (varsig) multiformat, status = Draft, code = 0x34 */ public static final Multicodec VARSIG = Multicodec.of("varsig", Tag.Multiformat, 0x34); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java index 1c909fa..427b8fc 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java @@ -5,1072 +5,1072 @@ import com.apicatalog.multihash.Multihash; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class MultihashCodec { - /** Multihash: bcrypt-pbkdf, Bcrypt-PBKDF key derivation function, status = draft, code = 0xd00d */ + /** Multihash: bcrypt-pbkdf, Bcrypt-PBKDF key derivation function, status = Draft, code = 0xd00d */ public static final Multihash BCRYPT_PBKDF = Multihash.of("bcrypt-pbkdf", 0xd00d); - /** Multihash: blake2b-104, status = draft, code = 0xb20d */ + /** Multihash: blake2b-104, status = Draft, code = 0xb20d */ public static final Multihash BLAKE2B_104 = Multihash.of("blake2b-104", 0xb20d); - /** Multihash: blake2b-112, status = draft, code = 0xb20e */ + /** Multihash: blake2b-112, status = Draft, code = 0xb20e */ public static final Multihash BLAKE2B_112 = Multihash.of("blake2b-112", 0xb20e); - /** Multihash: blake2b-120, status = draft, code = 0xb20f */ + /** Multihash: blake2b-120, status = Draft, code = 0xb20f */ public static final Multihash BLAKE2B_120 = Multihash.of("blake2b-120", 0xb20f); - /** Multihash: blake2b-128, status = draft, code = 0xb210 */ + /** Multihash: blake2b-128, status = Draft, code = 0xb210 */ public static final Multihash BLAKE2B_128 = Multihash.of("blake2b-128", 0xb210); - /** Multihash: blake2b-136, status = draft, code = 0xb211 */ + /** Multihash: blake2b-136, status = Draft, code = 0xb211 */ public static final Multihash BLAKE2B_136 = Multihash.of("blake2b-136", 0xb211); - /** Multihash: blake2b-144, status = draft, code = 0xb212 */ + /** Multihash: blake2b-144, status = Draft, code = 0xb212 */ public static final Multihash BLAKE2B_144 = Multihash.of("blake2b-144", 0xb212); - /** Multihash: blake2b-152, status = draft, code = 0xb213 */ + /** Multihash: blake2b-152, status = Draft, code = 0xb213 */ public static final Multihash BLAKE2B_152 = Multihash.of("blake2b-152", 0xb213); - /** Multihash: blake2b-16, status = draft, code = 0xb202 */ + /** Multihash: blake2b-16, status = Draft, code = 0xb202 */ public static final Multihash BLAKE2B_16 = Multihash.of("blake2b-16", 0xb202); - /** Multihash: blake2b-160, status = draft, code = 0xb214 */ + /** Multihash: blake2b-160, status = Draft, code = 0xb214 */ public static final Multihash BLAKE2B_160 = Multihash.of("blake2b-160", 0xb214); - /** Multihash: blake2b-168, status = draft, code = 0xb215 */ + /** Multihash: blake2b-168, status = Draft, code = 0xb215 */ public static final Multihash BLAKE2B_168 = Multihash.of("blake2b-168", 0xb215); - /** Multihash: blake2b-176, status = draft, code = 0xb216 */ + /** Multihash: blake2b-176, status = Draft, code = 0xb216 */ public static final Multihash BLAKE2B_176 = Multihash.of("blake2b-176", 0xb216); - /** Multihash: blake2b-184, status = draft, code = 0xb217 */ + /** Multihash: blake2b-184, status = Draft, code = 0xb217 */ public static final Multihash BLAKE2B_184 = Multihash.of("blake2b-184", 0xb217); - /** Multihash: blake2b-192, status = draft, code = 0xb218 */ + /** Multihash: blake2b-192, status = Draft, code = 0xb218 */ public static final Multihash BLAKE2B_192 = Multihash.of("blake2b-192", 0xb218); - /** Multihash: blake2b-200, status = draft, code = 0xb219 */ + /** Multihash: blake2b-200, status = Draft, code = 0xb219 */ public static final Multihash BLAKE2B_200 = Multihash.of("blake2b-200", 0xb219); - /** Multihash: blake2b-208, status = draft, code = 0xb21a */ + /** Multihash: blake2b-208, status = Draft, code = 0xb21a */ public static final Multihash BLAKE2B_208 = Multihash.of("blake2b-208", 0xb21a); - /** Multihash: blake2b-216, status = draft, code = 0xb21b */ + /** Multihash: blake2b-216, status = Draft, code = 0xb21b */ public static final Multihash BLAKE2B_216 = Multihash.of("blake2b-216", 0xb21b); - /** Multihash: blake2b-224, status = draft, code = 0xb21c */ + /** Multihash: blake2b-224, status = Draft, code = 0xb21c */ public static final Multihash BLAKE2B_224 = Multihash.of("blake2b-224", 0xb21c); - /** Multihash: blake2b-232, status = draft, code = 0xb21d */ + /** Multihash: blake2b-232, status = Draft, code = 0xb21d */ public static final Multihash BLAKE2B_232 = Multihash.of("blake2b-232", 0xb21d); - /** Multihash: blake2b-24, status = draft, code = 0xb203 */ + /** Multihash: blake2b-24, status = Draft, code = 0xb203 */ public static final Multihash BLAKE2B_24 = Multihash.of("blake2b-24", 0xb203); - /** Multihash: blake2b-240, status = draft, code = 0xb21e */ + /** Multihash: blake2b-240, status = Draft, code = 0xb21e */ public static final Multihash BLAKE2B_240 = Multihash.of("blake2b-240", 0xb21e); - /** Multihash: blake2b-248, status = draft, code = 0xb21f */ + /** Multihash: blake2b-248, status = Draft, code = 0xb21f */ public static final Multihash BLAKE2B_248 = Multihash.of("blake2b-248", 0xb21f); - /** Multihash: blake2b-256, status = permanent, code = 0xb220 */ + /** Multihash: blake2b-256, status = Permanent, code = 0xb220 */ public static final Multihash BLAKE2B_256 = Multihash.of("blake2b-256", 0xb220); - /** Multihash: blake2b-264, status = draft, code = 0xb221 */ + /** Multihash: blake2b-264, status = Draft, code = 0xb221 */ public static final Multihash BLAKE2B_264 = Multihash.of("blake2b-264", 0xb221); - /** Multihash: blake2b-272, status = draft, code = 0xb222 */ + /** Multihash: blake2b-272, status = Draft, code = 0xb222 */ public static final Multihash BLAKE2B_272 = Multihash.of("blake2b-272", 0xb222); - /** Multihash: blake2b-280, status = draft, code = 0xb223 */ + /** Multihash: blake2b-280, status = Draft, code = 0xb223 */ public static final Multihash BLAKE2B_280 = Multihash.of("blake2b-280", 0xb223); - /** Multihash: blake2b-288, status = draft, code = 0xb224 */ + /** Multihash: blake2b-288, status = Draft, code = 0xb224 */ public static final Multihash BLAKE2B_288 = Multihash.of("blake2b-288", 0xb224); - /** Multihash: blake2b-296, status = draft, code = 0xb225 */ + /** Multihash: blake2b-296, status = Draft, code = 0xb225 */ public static final Multihash BLAKE2B_296 = Multihash.of("blake2b-296", 0xb225); - /** Multihash: blake2b-304, status = draft, code = 0xb226 */ + /** Multihash: blake2b-304, status = Draft, code = 0xb226 */ public static final Multihash BLAKE2B_304 = Multihash.of("blake2b-304", 0xb226); - /** Multihash: blake2b-312, status = draft, code = 0xb227 */ + /** Multihash: blake2b-312, status = Draft, code = 0xb227 */ public static final Multihash BLAKE2B_312 = Multihash.of("blake2b-312", 0xb227); - /** Multihash: blake2b-32, status = draft, code = 0xb204 */ + /** Multihash: blake2b-32, status = Draft, code = 0xb204 */ public static final Multihash BLAKE2B_32 = Multihash.of("blake2b-32", 0xb204); - /** Multihash: blake2b-320, status = draft, code = 0xb228 */ + /** Multihash: blake2b-320, status = Draft, code = 0xb228 */ public static final Multihash BLAKE2B_320 = Multihash.of("blake2b-320", 0xb228); - /** Multihash: blake2b-328, status = draft, code = 0xb229 */ + /** Multihash: blake2b-328, status = Draft, code = 0xb229 */ public static final Multihash BLAKE2B_328 = Multihash.of("blake2b-328", 0xb229); - /** Multihash: blake2b-336, status = draft, code = 0xb22a */ + /** Multihash: blake2b-336, status = Draft, code = 0xb22a */ public static final Multihash BLAKE2B_336 = Multihash.of("blake2b-336", 0xb22a); - /** Multihash: blake2b-344, status = draft, code = 0xb22b */ + /** Multihash: blake2b-344, status = Draft, code = 0xb22b */ public static final Multihash BLAKE2B_344 = Multihash.of("blake2b-344", 0xb22b); - /** Multihash: blake2b-352, status = draft, code = 0xb22c */ + /** Multihash: blake2b-352, status = Draft, code = 0xb22c */ public static final Multihash BLAKE2B_352 = Multihash.of("blake2b-352", 0xb22c); - /** Multihash: blake2b-360, status = draft, code = 0xb22d */ + /** Multihash: blake2b-360, status = Draft, code = 0xb22d */ public static final Multihash BLAKE2B_360 = Multihash.of("blake2b-360", 0xb22d); - /** Multihash: blake2b-368, status = draft, code = 0xb22e */ + /** Multihash: blake2b-368, status = Draft, code = 0xb22e */ public static final Multihash BLAKE2B_368 = Multihash.of("blake2b-368", 0xb22e); - /** Multihash: blake2b-376, status = draft, code = 0xb22f */ + /** Multihash: blake2b-376, status = Draft, code = 0xb22f */ public static final Multihash BLAKE2B_376 = Multihash.of("blake2b-376", 0xb22f); - /** Multihash: blake2b-384, status = draft, code = 0xb230 */ + /** Multihash: blake2b-384, status = Draft, code = 0xb230 */ public static final Multihash BLAKE2B_384 = Multihash.of("blake2b-384", 0xb230); - /** Multihash: blake2b-392, status = draft, code = 0xb231 */ + /** Multihash: blake2b-392, status = Draft, code = 0xb231 */ public static final Multihash BLAKE2B_392 = Multihash.of("blake2b-392", 0xb231); - /** Multihash: blake2b-40, status = draft, code = 0xb205 */ + /** Multihash: blake2b-40, status = Draft, code = 0xb205 */ public static final Multihash BLAKE2B_40 = Multihash.of("blake2b-40", 0xb205); - /** Multihash: blake2b-400, status = draft, code = 0xb232 */ + /** Multihash: blake2b-400, status = Draft, code = 0xb232 */ public static final Multihash BLAKE2B_400 = Multihash.of("blake2b-400", 0xb232); - /** Multihash: blake2b-408, status = draft, code = 0xb233 */ + /** Multihash: blake2b-408, status = Draft, code = 0xb233 */ public static final Multihash BLAKE2B_408 = Multihash.of("blake2b-408", 0xb233); - /** Multihash: blake2b-416, status = draft, code = 0xb234 */ + /** Multihash: blake2b-416, status = Draft, code = 0xb234 */ public static final Multihash BLAKE2B_416 = Multihash.of("blake2b-416", 0xb234); - /** Multihash: blake2b-424, status = draft, code = 0xb235 */ + /** Multihash: blake2b-424, status = Draft, code = 0xb235 */ public static final Multihash BLAKE2B_424 = Multihash.of("blake2b-424", 0xb235); - /** Multihash: blake2b-432, status = draft, code = 0xb236 */ + /** Multihash: blake2b-432, status = Draft, code = 0xb236 */ public static final Multihash BLAKE2B_432 = Multihash.of("blake2b-432", 0xb236); - /** Multihash: blake2b-440, status = draft, code = 0xb237 */ + /** Multihash: blake2b-440, status = Draft, code = 0xb237 */ public static final Multihash BLAKE2B_440 = Multihash.of("blake2b-440", 0xb237); - /** Multihash: blake2b-448, status = draft, code = 0xb238 */ + /** Multihash: blake2b-448, status = Draft, code = 0xb238 */ public static final Multihash BLAKE2B_448 = Multihash.of("blake2b-448", 0xb238); - /** Multihash: blake2b-456, status = draft, code = 0xb239 */ + /** Multihash: blake2b-456, status = Draft, code = 0xb239 */ public static final Multihash BLAKE2B_456 = Multihash.of("blake2b-456", 0xb239); - /** Multihash: blake2b-464, status = draft, code = 0xb23a */ + /** Multihash: blake2b-464, status = Draft, code = 0xb23a */ public static final Multihash BLAKE2B_464 = Multihash.of("blake2b-464", 0xb23a); - /** Multihash: blake2b-472, status = draft, code = 0xb23b */ + /** Multihash: blake2b-472, status = Draft, code = 0xb23b */ public static final Multihash BLAKE2B_472 = Multihash.of("blake2b-472", 0xb23b); - /** Multihash: blake2b-48, status = draft, code = 0xb206 */ + /** Multihash: blake2b-48, status = Draft, code = 0xb206 */ public static final Multihash BLAKE2B_48 = Multihash.of("blake2b-48", 0xb206); - /** Multihash: blake2b-480, status = draft, code = 0xb23c */ + /** Multihash: blake2b-480, status = Draft, code = 0xb23c */ public static final Multihash BLAKE2B_480 = Multihash.of("blake2b-480", 0xb23c); - /** Multihash: blake2b-488, status = draft, code = 0xb23d */ + /** Multihash: blake2b-488, status = Draft, code = 0xb23d */ public static final Multihash BLAKE2B_488 = Multihash.of("blake2b-488", 0xb23d); - /** Multihash: blake2b-496, status = draft, code = 0xb23e */ + /** Multihash: blake2b-496, status = Draft, code = 0xb23e */ public static final Multihash BLAKE2B_496 = Multihash.of("blake2b-496", 0xb23e); - /** Multihash: blake2b-504, status = draft, code = 0xb23f */ + /** Multihash: blake2b-504, status = Draft, code = 0xb23f */ public static final Multihash BLAKE2B_504 = Multihash.of("blake2b-504", 0xb23f); - /** Multihash: blake2b-512, status = draft, code = 0xb240 */ + /** Multihash: blake2b-512, status = Draft, code = 0xb240 */ public static final Multihash BLAKE2B_512 = Multihash.of("blake2b-512", 0xb240); - /** Multihash: blake2b-56, status = draft, code = 0xb207 */ + /** Multihash: blake2b-56, status = Draft, code = 0xb207 */ public static final Multihash BLAKE2B_56 = Multihash.of("blake2b-56", 0xb207); - /** Multihash: blake2b-64, status = draft, code = 0xb208 */ + /** Multihash: blake2b-64, status = Draft, code = 0xb208 */ public static final Multihash BLAKE2B_64 = Multihash.of("blake2b-64", 0xb208); - /** Multihash: blake2b-72, status = draft, code = 0xb209 */ + /** Multihash: blake2b-72, status = Draft, code = 0xb209 */ public static final Multihash BLAKE2B_72 = Multihash.of("blake2b-72", 0xb209); - /** Multihash: blake2b-8, Blake2b consists of 64 output lengths that give different hashes, status = draft, code = 0xb201 */ + /** Multihash: blake2b-8, Blake2b consists of 64 output lengths that give different hashes, status = Draft, code = 0xb201 */ public static final Multihash BLAKE2B_8 = Multihash.of("blake2b-8", 0xb201); - /** Multihash: blake2b-80, status = draft, code = 0xb20a */ + /** Multihash: blake2b-80, status = Draft, code = 0xb20a */ public static final Multihash BLAKE2B_80 = Multihash.of("blake2b-80", 0xb20a); - /** Multihash: blake2b-88, status = draft, code = 0xb20b */ + /** Multihash: blake2b-88, status = Draft, code = 0xb20b */ public static final Multihash BLAKE2B_88 = Multihash.of("blake2b-88", 0xb20b); - /** Multihash: blake2b-96, status = draft, code = 0xb20c */ + /** Multihash: blake2b-96, status = Draft, code = 0xb20c */ public static final Multihash BLAKE2B_96 = Multihash.of("blake2b-96", 0xb20c); - /** Multihash: blake2s-104, status = draft, code = 0xb24d */ + /** Multihash: blake2s-104, status = Draft, code = 0xb24d */ public static final Multihash BLAKE2S_104 = Multihash.of("blake2s-104", 0xb24d); - /** Multihash: blake2s-112, status = draft, code = 0xb24e */ + /** Multihash: blake2s-112, status = Draft, code = 0xb24e */ public static final Multihash BLAKE2S_112 = Multihash.of("blake2s-112", 0xb24e); - /** Multihash: blake2s-120, status = draft, code = 0xb24f */ + /** Multihash: blake2s-120, status = Draft, code = 0xb24f */ public static final Multihash BLAKE2S_120 = Multihash.of("blake2s-120", 0xb24f); - /** Multihash: blake2s-128, status = draft, code = 0xb250 */ + /** Multihash: blake2s-128, status = Draft, code = 0xb250 */ public static final Multihash BLAKE2S_128 = Multihash.of("blake2s-128", 0xb250); - /** Multihash: blake2s-136, status = draft, code = 0xb251 */ + /** Multihash: blake2s-136, status = Draft, code = 0xb251 */ public static final Multihash BLAKE2S_136 = Multihash.of("blake2s-136", 0xb251); - /** Multihash: blake2s-144, status = draft, code = 0xb252 */ + /** Multihash: blake2s-144, status = Draft, code = 0xb252 */ public static final Multihash BLAKE2S_144 = Multihash.of("blake2s-144", 0xb252); - /** Multihash: blake2s-152, status = draft, code = 0xb253 */ + /** Multihash: blake2s-152, status = Draft, code = 0xb253 */ public static final Multihash BLAKE2S_152 = Multihash.of("blake2s-152", 0xb253); - /** Multihash: blake2s-16, status = draft, code = 0xb242 */ + /** Multihash: blake2s-16, status = Draft, code = 0xb242 */ public static final Multihash BLAKE2S_16 = Multihash.of("blake2s-16", 0xb242); - /** Multihash: blake2s-160, status = draft, code = 0xb254 */ + /** Multihash: blake2s-160, status = Draft, code = 0xb254 */ public static final Multihash BLAKE2S_160 = Multihash.of("blake2s-160", 0xb254); - /** Multihash: blake2s-168, status = draft, code = 0xb255 */ + /** Multihash: blake2s-168, status = Draft, code = 0xb255 */ public static final Multihash BLAKE2S_168 = Multihash.of("blake2s-168", 0xb255); - /** Multihash: blake2s-176, status = draft, code = 0xb256 */ + /** Multihash: blake2s-176, status = Draft, code = 0xb256 */ public static final Multihash BLAKE2S_176 = Multihash.of("blake2s-176", 0xb256); - /** Multihash: blake2s-184, status = draft, code = 0xb257 */ + /** Multihash: blake2s-184, status = Draft, code = 0xb257 */ public static final Multihash BLAKE2S_184 = Multihash.of("blake2s-184", 0xb257); - /** Multihash: blake2s-192, status = draft, code = 0xb258 */ + /** Multihash: blake2s-192, status = Draft, code = 0xb258 */ public static final Multihash BLAKE2S_192 = Multihash.of("blake2s-192", 0xb258); - /** Multihash: blake2s-200, status = draft, code = 0xb259 */ + /** Multihash: blake2s-200, status = Draft, code = 0xb259 */ public static final Multihash BLAKE2S_200 = Multihash.of("blake2s-200", 0xb259); - /** Multihash: blake2s-208, status = draft, code = 0xb25a */ + /** Multihash: blake2s-208, status = Draft, code = 0xb25a */ public static final Multihash BLAKE2S_208 = Multihash.of("blake2s-208", 0xb25a); - /** Multihash: blake2s-216, status = draft, code = 0xb25b */ + /** Multihash: blake2s-216, status = Draft, code = 0xb25b */ public static final Multihash BLAKE2S_216 = Multihash.of("blake2s-216", 0xb25b); - /** Multihash: blake2s-224, status = draft, code = 0xb25c */ + /** Multihash: blake2s-224, status = Draft, code = 0xb25c */ public static final Multihash BLAKE2S_224 = Multihash.of("blake2s-224", 0xb25c); - /** Multihash: blake2s-232, status = draft, code = 0xb25d */ + /** Multihash: blake2s-232, status = Draft, code = 0xb25d */ public static final Multihash BLAKE2S_232 = Multihash.of("blake2s-232", 0xb25d); - /** Multihash: blake2s-24, status = draft, code = 0xb243 */ + /** Multihash: blake2s-24, status = Draft, code = 0xb243 */ public static final Multihash BLAKE2S_24 = Multihash.of("blake2s-24", 0xb243); - /** Multihash: blake2s-240, status = draft, code = 0xb25e */ + /** Multihash: blake2s-240, status = Draft, code = 0xb25e */ public static final Multihash BLAKE2S_240 = Multihash.of("blake2s-240", 0xb25e); - /** Multihash: blake2s-248, status = draft, code = 0xb25f */ + /** Multihash: blake2s-248, status = Draft, code = 0xb25f */ public static final Multihash BLAKE2S_248 = Multihash.of("blake2s-248", 0xb25f); - /** Multihash: blake2s-256, status = draft, code = 0xb260 */ + /** Multihash: blake2s-256, status = Draft, code = 0xb260 */ public static final Multihash BLAKE2S_256 = Multihash.of("blake2s-256", 0xb260); - /** Multihash: blake2s-32, status = draft, code = 0xb244 */ + /** Multihash: blake2s-32, status = Draft, code = 0xb244 */ public static final Multihash BLAKE2S_32 = Multihash.of("blake2s-32", 0xb244); - /** Multihash: blake2s-40, status = draft, code = 0xb245 */ + /** Multihash: blake2s-40, status = Draft, code = 0xb245 */ public static final Multihash BLAKE2S_40 = Multihash.of("blake2s-40", 0xb245); - /** Multihash: blake2s-48, status = draft, code = 0xb246 */ + /** Multihash: blake2s-48, status = Draft, code = 0xb246 */ public static final Multihash BLAKE2S_48 = Multihash.of("blake2s-48", 0xb246); - /** Multihash: blake2s-56, status = draft, code = 0xb247 */ + /** Multihash: blake2s-56, status = Draft, code = 0xb247 */ public static final Multihash BLAKE2S_56 = Multihash.of("blake2s-56", 0xb247); - /** Multihash: blake2s-64, status = draft, code = 0xb248 */ + /** Multihash: blake2s-64, status = Draft, code = 0xb248 */ public static final Multihash BLAKE2S_64 = Multihash.of("blake2s-64", 0xb248); - /** Multihash: blake2s-72, status = draft, code = 0xb249 */ + /** Multihash: blake2s-72, status = Draft, code = 0xb249 */ public static final Multihash BLAKE2S_72 = Multihash.of("blake2s-72", 0xb249); - /** Multihash: blake2s-8, Blake2s consists of 32 output lengths that give different hashes, status = draft, code = 0xb241 */ + /** Multihash: blake2s-8, Blake2s consists of 32 output lengths that give different hashes, status = Draft, code = 0xb241 */ public static final Multihash BLAKE2S_8 = Multihash.of("blake2s-8", 0xb241); - /** Multihash: blake2s-80, status = draft, code = 0xb24a */ + /** Multihash: blake2s-80, status = Draft, code = 0xb24a */ public static final Multihash BLAKE2S_80 = Multihash.of("blake2s-80", 0xb24a); - /** Multihash: blake2s-88, status = draft, code = 0xb24b */ + /** Multihash: blake2s-88, status = Draft, code = 0xb24b */ public static final Multihash BLAKE2S_88 = Multihash.of("blake2s-88", 0xb24b); - /** Multihash: blake2s-96, status = draft, code = 0xb24c */ + /** Multihash: blake2s-96, status = Draft, code = 0xb24c */ public static final Multihash BLAKE2S_96 = Multihash.of("blake2s-96", 0xb24c); - /** Multihash: blake3, BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes., status = draft, code = 0x1e */ + /** Multihash: blake3, BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes., status = Draft, code = 0x1e */ public static final Multihash BLAKE3 = Multihash.of("blake3", 0x1e); - /** Multihash: dbl-sha2-256, status = draft, code = 0x56 */ + /** Multihash: dbl-sha2-256, status = Draft, code = 0x56 */ public static final Multihash DBL_SHA2_256 = Multihash.of("dbl-sha2-256", 0x56); - /** Multihash: identity, raw binary, status = permanent, code = 0x0 */ + /** Multihash: identity, raw binary, status = Permanent, code = 0x0 */ public static final Multihash IDENTITY = Multihash.of("identity", 0x0); - /** Multihash: kangarootwelve, KangarooTwelve is an extendable-output hash function based on Keccak-p, status = draft, code = 0x1d01 */ + /** Multihash: kangarootwelve, KangarooTwelve is an extendable-output hash function based on Keccak-p, status = Draft, code = 0x1d01 */ public static final Multihash KANGAROOTWELVE = Multihash.of("kangarootwelve", 0x1d01); - /** Multihash: keccak-224, keccak has variable output length. The number specifies the core length, status = draft, code = 0x1a */ + /** Multihash: keccak-224, keccak has variable output length. The number specifies the core length, status = Draft, code = 0x1a */ public static final Multihash KECCAK_224 = Multihash.of("keccak-224", 0x1a); - /** Multihash: keccak-256, status = draft, code = 0x1b */ + /** Multihash: keccak-256, status = Draft, code = 0x1b */ public static final Multihash KECCAK_256 = Multihash.of("keccak-256", 0x1b); - /** Multihash: keccak-384, status = draft, code = 0x1c */ + /** Multihash: keccak-384, status = Draft, code = 0x1c */ public static final Multihash KECCAK_384 = Multihash.of("keccak-384", 0x1c); - /** Multihash: keccak-512, status = draft, code = 0x1d */ + /** Multihash: keccak-512, status = Draft, code = 0x1d */ public static final Multihash KECCAK_512 = Multihash.of("keccak-512", 0x1d); - /** Multihash: md4, status = draft, code = 0xd4 */ + /** Multihash: md4, status = Draft, code = 0xd4 */ public static final Multihash MD4 = Multihash.of("md4", 0xd4); - /** Multihash: md5, status = draft, code = 0xd5 */ + /** Multihash: md5, status = Draft, code = 0xd5 */ public static final Multihash MD5 = Multihash.of("md5", 0xd5); - /** Multihash: poseidon-bls12_381-a2-fc1, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters, status = permanent, code = 0xb401 */ + /** Multihash: poseidon-bls12_381-a2-fc1, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters, status = Permanent, code = 0xb401 */ public static final Multihash POSEIDON_BLS12_381_A2_FC1 = Multihash.of("poseidon-bls12_381-a2-fc1", 0xb401); - /** Multihash: poseidon-bls12_381-a2-fc1-sc, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters - high-security variant, status = draft, code = 0xb402 */ + /** Multihash: poseidon-bls12_381-a2-fc1-sc, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters - high-security variant, status = Draft, code = 0xb402 */ public static final Multihash POSEIDON_BLS12_381_A2_FC1_SC = Multihash.of("poseidon-bls12_381-a2-fc1-sc", 0xb402); - /** Multihash: ripemd-128, status = draft, code = 0x1052 */ + /** Multihash: ripemd-128, status = Draft, code = 0x1052 */ public static final Multihash RIPEMD_128 = Multihash.of("ripemd-128", 0x1052); - /** Multihash: ripemd-160, status = draft, code = 0x1053 */ + /** Multihash: ripemd-160, status = Draft, code = 0x1053 */ public static final Multihash RIPEMD_160 = Multihash.of("ripemd-160", 0x1053); - /** Multihash: ripemd-256, status = draft, code = 0x1054 */ + /** Multihash: ripemd-256, status = Draft, code = 0x1054 */ public static final Multihash RIPEMD_256 = Multihash.of("ripemd-256", 0x1054); - /** Multihash: ripemd-320, status = draft, code = 0x1055 */ + /** Multihash: ripemd-320, status = Draft, code = 0x1055 */ public static final Multihash RIPEMD_320 = Multihash.of("ripemd-320", 0x1055); - /** Multihash: sha1, status = permanent, code = 0x11 */ + /** Multihash: sha1, status = Permanent, code = 0x11 */ public static final Multihash SHA1 = Multihash.of("sha1", 0x11); - /** Multihash: sha2-224, aka SHA-224; as specified by FIPS 180-4., status = permanent, code = 0x1013 */ + /** Multihash: sha2-224, aka SHA-224; as specified by FIPS 180-4., status = Permanent, code = 0x1013 */ public static final Multihash SHA2_224 = Multihash.of("sha2-224", 0x1013); - /** Multihash: sha2-256, status = permanent, code = 0x12 */ + /** Multihash: sha2-256, status = Permanent, code = 0x12 */ public static final Multihash SHA2_256 = Multihash.of("sha2-256", 0x12); - /** Multihash: sha2-256-chunked, Hash of concatenated SHA2-256 digests of 8*2^n MiB source chunks; n = ceil(log2(source_size/(10^4 * 8MiB))), status = draft, code = 0xb510 */ + /** Multihash: sha2-256-chunked, Hash of concatenated SHA2-256 digests of 8*2^n MiB source chunks; n = ceil(log2(source_size/(10^4 * 8MiB))), status = Draft, code = 0xb510 */ public static final Multihash SHA2_256_CHUNKED = Multihash.of("sha2-256-chunked", 0xb510); - /** Multihash: sha2-256-trunc254-padded, SHA2-256 with the two most significant bits from the last byte zeroed (as via a mask with 0b00111111) - used for proving trees as in Filecoin, status = permanent, code = 0x1012 */ + /** Multihash: sha2-256-trunc254-padded, SHA2-256 with the two most significant bits from the last byte zeroed (as via a mask with 0b00111111) - used for proving trees as in Filecoin, status = Permanent, code = 0x1012 */ public static final Multihash SHA2_256_TRUNC254_PADDED = Multihash.of("sha2-256-trunc254-padded", 0x1012); - /** Multihash: sha2-384, aka SHA-384; as specified by FIPS 180-4., status = permanent, code = 0x20 */ + /** Multihash: sha2-384, aka SHA-384; as specified by FIPS 180-4., status = Permanent, code = 0x20 */ public static final Multihash SHA2_384 = Multihash.of("sha2-384", 0x20); - /** Multihash: sha2-512, status = permanent, code = 0x13 */ + /** Multihash: sha2-512, status = Permanent, code = 0x13 */ public static final Multihash SHA2_512 = Multihash.of("sha2-512", 0x13); - /** Multihash: sha2-512-224, aka SHA-512/224; as specified by FIPS 180-4., status = permanent, code = 0x1014 */ + /** Multihash: sha2-512-224, aka SHA-512/224; as specified by FIPS 180-4., status = Permanent, code = 0x1014 */ public static final Multihash SHA2_512_224 = Multihash.of("sha2-512-224", 0x1014); - /** Multihash: sha2-512-256, aka SHA-512/256; as specified by FIPS 180-4., status = permanent, code = 0x1015 */ + /** Multihash: sha2-512-256, aka SHA-512/256; as specified by FIPS 180-4., status = Permanent, code = 0x1015 */ public static final Multihash SHA2_512_256 = Multihash.of("sha2-512-256", 0x1015); - /** Multihash: sha3-224, status = permanent, code = 0x17 */ + /** Multihash: sha3-224, status = Permanent, code = 0x17 */ public static final Multihash SHA3_224 = Multihash.of("sha3-224", 0x17); - /** Multihash: sha3-256, status = permanent, code = 0x16 */ + /** Multihash: sha3-256, status = Permanent, code = 0x16 */ public static final Multihash SHA3_256 = Multihash.of("sha3-256", 0x16); - /** Multihash: sha3-384, status = permanent, code = 0x15 */ + /** Multihash: sha3-384, status = Permanent, code = 0x15 */ public static final Multihash SHA3_384 = Multihash.of("sha3-384", 0x15); - /** Multihash: sha3-512, status = permanent, code = 0x14 */ + /** Multihash: sha3-512, status = Permanent, code = 0x14 */ public static final Multihash SHA3_512 = Multihash.of("sha3-512", 0x14); - /** Multihash: shake-128, status = draft, code = 0x18 */ + /** Multihash: shake-128, status = Draft, code = 0x18 */ public static final Multihash SHAKE_128 = Multihash.of("shake-128", 0x18); - /** Multihash: shake-256, status = draft, code = 0x19 */ + /** Multihash: shake-256, status = Draft, code = 0x19 */ public static final Multihash SHAKE_256 = Multihash.of("shake-256", 0x19); - /** Multihash: skein1024-1000, status = draft, code = 0xb3dd */ + /** Multihash: skein1024-1000, status = Draft, code = 0xb3dd */ public static final Multihash SKEIN1024_1000 = Multihash.of("skein1024-1000", 0xb3dd); - /** Multihash: skein1024-1008, status = draft, code = 0xb3de */ + /** Multihash: skein1024-1008, status = Draft, code = 0xb3de */ public static final Multihash SKEIN1024_1008 = Multihash.of("skein1024-1008", 0xb3de); - /** Multihash: skein1024-1016, status = draft, code = 0xb3df */ + /** Multihash: skein1024-1016, status = Draft, code = 0xb3df */ public static final Multihash SKEIN1024_1016 = Multihash.of("skein1024-1016", 0xb3df); - /** Multihash: skein1024-1024, status = draft, code = 0xb3e0 */ + /** Multihash: skein1024-1024, status = Draft, code = 0xb3e0 */ public static final Multihash SKEIN1024_1024 = Multihash.of("skein1024-1024", 0xb3e0); - /** Multihash: skein1024-104, status = draft, code = 0xb36d */ + /** Multihash: skein1024-104, status = Draft, code = 0xb36d */ public static final Multihash SKEIN1024_104 = Multihash.of("skein1024-104", 0xb36d); - /** Multihash: skein1024-112, status = draft, code = 0xb36e */ + /** Multihash: skein1024-112, status = Draft, code = 0xb36e */ public static final Multihash SKEIN1024_112 = Multihash.of("skein1024-112", 0xb36e); - /** Multihash: skein1024-120, status = draft, code = 0xb36f */ + /** Multihash: skein1024-120, status = Draft, code = 0xb36f */ public static final Multihash SKEIN1024_120 = Multihash.of("skein1024-120", 0xb36f); - /** Multihash: skein1024-128, status = draft, code = 0xb370 */ + /** Multihash: skein1024-128, status = Draft, code = 0xb370 */ public static final Multihash SKEIN1024_128 = Multihash.of("skein1024-128", 0xb370); - /** Multihash: skein1024-136, status = draft, code = 0xb371 */ + /** Multihash: skein1024-136, status = Draft, code = 0xb371 */ public static final Multihash SKEIN1024_136 = Multihash.of("skein1024-136", 0xb371); - /** Multihash: skein1024-144, status = draft, code = 0xb372 */ + /** Multihash: skein1024-144, status = Draft, code = 0xb372 */ public static final Multihash SKEIN1024_144 = Multihash.of("skein1024-144", 0xb372); - /** Multihash: skein1024-152, status = draft, code = 0xb373 */ + /** Multihash: skein1024-152, status = Draft, code = 0xb373 */ public static final Multihash SKEIN1024_152 = Multihash.of("skein1024-152", 0xb373); - /** Multihash: skein1024-16, status = draft, code = 0xb362 */ + /** Multihash: skein1024-16, status = Draft, code = 0xb362 */ public static final Multihash SKEIN1024_16 = Multihash.of("skein1024-16", 0xb362); - /** Multihash: skein1024-160, status = draft, code = 0xb374 */ + /** Multihash: skein1024-160, status = Draft, code = 0xb374 */ public static final Multihash SKEIN1024_160 = Multihash.of("skein1024-160", 0xb374); - /** Multihash: skein1024-168, status = draft, code = 0xb375 */ + /** Multihash: skein1024-168, status = Draft, code = 0xb375 */ public static final Multihash SKEIN1024_168 = Multihash.of("skein1024-168", 0xb375); - /** Multihash: skein1024-176, status = draft, code = 0xb376 */ + /** Multihash: skein1024-176, status = Draft, code = 0xb376 */ public static final Multihash SKEIN1024_176 = Multihash.of("skein1024-176", 0xb376); - /** Multihash: skein1024-184, status = draft, code = 0xb377 */ + /** Multihash: skein1024-184, status = Draft, code = 0xb377 */ public static final Multihash SKEIN1024_184 = Multihash.of("skein1024-184", 0xb377); - /** Multihash: skein1024-192, status = draft, code = 0xb378 */ + /** Multihash: skein1024-192, status = Draft, code = 0xb378 */ public static final Multihash SKEIN1024_192 = Multihash.of("skein1024-192", 0xb378); - /** Multihash: skein1024-200, status = draft, code = 0xb379 */ + /** Multihash: skein1024-200, status = Draft, code = 0xb379 */ public static final Multihash SKEIN1024_200 = Multihash.of("skein1024-200", 0xb379); - /** Multihash: skein1024-208, status = draft, code = 0xb37a */ + /** Multihash: skein1024-208, status = Draft, code = 0xb37a */ public static final Multihash SKEIN1024_208 = Multihash.of("skein1024-208", 0xb37a); - /** Multihash: skein1024-216, status = draft, code = 0xb37b */ + /** Multihash: skein1024-216, status = Draft, code = 0xb37b */ public static final Multihash SKEIN1024_216 = Multihash.of("skein1024-216", 0xb37b); - /** Multihash: skein1024-224, status = draft, code = 0xb37c */ + /** Multihash: skein1024-224, status = Draft, code = 0xb37c */ public static final Multihash SKEIN1024_224 = Multihash.of("skein1024-224", 0xb37c); - /** Multihash: skein1024-232, status = draft, code = 0xb37d */ + /** Multihash: skein1024-232, status = Draft, code = 0xb37d */ public static final Multihash SKEIN1024_232 = Multihash.of("skein1024-232", 0xb37d); - /** Multihash: skein1024-24, status = draft, code = 0xb363 */ + /** Multihash: skein1024-24, status = Draft, code = 0xb363 */ public static final Multihash SKEIN1024_24 = Multihash.of("skein1024-24", 0xb363); - /** Multihash: skein1024-240, status = draft, code = 0xb37e */ + /** Multihash: skein1024-240, status = Draft, code = 0xb37e */ public static final Multihash SKEIN1024_240 = Multihash.of("skein1024-240", 0xb37e); - /** Multihash: skein1024-248, status = draft, code = 0xb37f */ + /** Multihash: skein1024-248, status = Draft, code = 0xb37f */ public static final Multihash SKEIN1024_248 = Multihash.of("skein1024-248", 0xb37f); - /** Multihash: skein1024-256, status = draft, code = 0xb380 */ + /** Multihash: skein1024-256, status = Draft, code = 0xb380 */ public static final Multihash SKEIN1024_256 = Multihash.of("skein1024-256", 0xb380); - /** Multihash: skein1024-264, status = draft, code = 0xb381 */ + /** Multihash: skein1024-264, status = Draft, code = 0xb381 */ public static final Multihash SKEIN1024_264 = Multihash.of("skein1024-264", 0xb381); - /** Multihash: skein1024-272, status = draft, code = 0xb382 */ + /** Multihash: skein1024-272, status = Draft, code = 0xb382 */ public static final Multihash SKEIN1024_272 = Multihash.of("skein1024-272", 0xb382); - /** Multihash: skein1024-280, status = draft, code = 0xb383 */ + /** Multihash: skein1024-280, status = Draft, code = 0xb383 */ public static final Multihash SKEIN1024_280 = Multihash.of("skein1024-280", 0xb383); - /** Multihash: skein1024-288, status = draft, code = 0xb384 */ + /** Multihash: skein1024-288, status = Draft, code = 0xb384 */ public static final Multihash SKEIN1024_288 = Multihash.of("skein1024-288", 0xb384); - /** Multihash: skein1024-296, status = draft, code = 0xb385 */ + /** Multihash: skein1024-296, status = Draft, code = 0xb385 */ public static final Multihash SKEIN1024_296 = Multihash.of("skein1024-296", 0xb385); - /** Multihash: skein1024-304, status = draft, code = 0xb386 */ + /** Multihash: skein1024-304, status = Draft, code = 0xb386 */ public static final Multihash SKEIN1024_304 = Multihash.of("skein1024-304", 0xb386); - /** Multihash: skein1024-312, status = draft, code = 0xb387 */ + /** Multihash: skein1024-312, status = Draft, code = 0xb387 */ public static final Multihash SKEIN1024_312 = Multihash.of("skein1024-312", 0xb387); - /** Multihash: skein1024-32, status = draft, code = 0xb364 */ + /** Multihash: skein1024-32, status = Draft, code = 0xb364 */ public static final Multihash SKEIN1024_32 = Multihash.of("skein1024-32", 0xb364); - /** Multihash: skein1024-320, status = draft, code = 0xb388 */ + /** Multihash: skein1024-320, status = Draft, code = 0xb388 */ public static final Multihash SKEIN1024_320 = Multihash.of("skein1024-320", 0xb388); - /** Multihash: skein1024-328, status = draft, code = 0xb389 */ + /** Multihash: skein1024-328, status = Draft, code = 0xb389 */ public static final Multihash SKEIN1024_328 = Multihash.of("skein1024-328", 0xb389); - /** Multihash: skein1024-336, status = draft, code = 0xb38a */ + /** Multihash: skein1024-336, status = Draft, code = 0xb38a */ public static final Multihash SKEIN1024_336 = Multihash.of("skein1024-336", 0xb38a); - /** Multihash: skein1024-344, status = draft, code = 0xb38b */ + /** Multihash: skein1024-344, status = Draft, code = 0xb38b */ public static final Multihash SKEIN1024_344 = Multihash.of("skein1024-344", 0xb38b); - /** Multihash: skein1024-352, status = draft, code = 0xb38c */ + /** Multihash: skein1024-352, status = Draft, code = 0xb38c */ public static final Multihash SKEIN1024_352 = Multihash.of("skein1024-352", 0xb38c); - /** Multihash: skein1024-360, status = draft, code = 0xb38d */ + /** Multihash: skein1024-360, status = Draft, code = 0xb38d */ public static final Multihash SKEIN1024_360 = Multihash.of("skein1024-360", 0xb38d); - /** Multihash: skein1024-368, status = draft, code = 0xb38e */ + /** Multihash: skein1024-368, status = Draft, code = 0xb38e */ public static final Multihash SKEIN1024_368 = Multihash.of("skein1024-368", 0xb38e); - /** Multihash: skein1024-376, status = draft, code = 0xb38f */ + /** Multihash: skein1024-376, status = Draft, code = 0xb38f */ public static final Multihash SKEIN1024_376 = Multihash.of("skein1024-376", 0xb38f); - /** Multihash: skein1024-384, status = draft, code = 0xb390 */ + /** Multihash: skein1024-384, status = Draft, code = 0xb390 */ public static final Multihash SKEIN1024_384 = Multihash.of("skein1024-384", 0xb390); - /** Multihash: skein1024-392, status = draft, code = 0xb391 */ + /** Multihash: skein1024-392, status = Draft, code = 0xb391 */ public static final Multihash SKEIN1024_392 = Multihash.of("skein1024-392", 0xb391); - /** Multihash: skein1024-40, status = draft, code = 0xb365 */ + /** Multihash: skein1024-40, status = Draft, code = 0xb365 */ public static final Multihash SKEIN1024_40 = Multihash.of("skein1024-40", 0xb365); - /** Multihash: skein1024-400, status = draft, code = 0xb392 */ + /** Multihash: skein1024-400, status = Draft, code = 0xb392 */ public static final Multihash SKEIN1024_400 = Multihash.of("skein1024-400", 0xb392); - /** Multihash: skein1024-408, status = draft, code = 0xb393 */ + /** Multihash: skein1024-408, status = Draft, code = 0xb393 */ public static final Multihash SKEIN1024_408 = Multihash.of("skein1024-408", 0xb393); - /** Multihash: skein1024-416, status = draft, code = 0xb394 */ + /** Multihash: skein1024-416, status = Draft, code = 0xb394 */ public static final Multihash SKEIN1024_416 = Multihash.of("skein1024-416", 0xb394); - /** Multihash: skein1024-424, status = draft, code = 0xb395 */ + /** Multihash: skein1024-424, status = Draft, code = 0xb395 */ public static final Multihash SKEIN1024_424 = Multihash.of("skein1024-424", 0xb395); - /** Multihash: skein1024-432, status = draft, code = 0xb396 */ + /** Multihash: skein1024-432, status = Draft, code = 0xb396 */ public static final Multihash SKEIN1024_432 = Multihash.of("skein1024-432", 0xb396); - /** Multihash: skein1024-440, status = draft, code = 0xb397 */ + /** Multihash: skein1024-440, status = Draft, code = 0xb397 */ public static final Multihash SKEIN1024_440 = Multihash.of("skein1024-440", 0xb397); - /** Multihash: skein1024-448, status = draft, code = 0xb398 */ + /** Multihash: skein1024-448, status = Draft, code = 0xb398 */ public static final Multihash SKEIN1024_448 = Multihash.of("skein1024-448", 0xb398); - /** Multihash: skein1024-456, status = draft, code = 0xb399 */ + /** Multihash: skein1024-456, status = Draft, code = 0xb399 */ public static final Multihash SKEIN1024_456 = Multihash.of("skein1024-456", 0xb399); - /** Multihash: skein1024-464, status = draft, code = 0xb39a */ + /** Multihash: skein1024-464, status = Draft, code = 0xb39a */ public static final Multihash SKEIN1024_464 = Multihash.of("skein1024-464", 0xb39a); - /** Multihash: skein1024-472, status = draft, code = 0xb39b */ + /** Multihash: skein1024-472, status = Draft, code = 0xb39b */ public static final Multihash SKEIN1024_472 = Multihash.of("skein1024-472", 0xb39b); - /** Multihash: skein1024-48, status = draft, code = 0xb366 */ + /** Multihash: skein1024-48, status = Draft, code = 0xb366 */ public static final Multihash SKEIN1024_48 = Multihash.of("skein1024-48", 0xb366); - /** Multihash: skein1024-480, status = draft, code = 0xb39c */ + /** Multihash: skein1024-480, status = Draft, code = 0xb39c */ public static final Multihash SKEIN1024_480 = Multihash.of("skein1024-480", 0xb39c); - /** Multihash: skein1024-488, status = draft, code = 0xb39d */ + /** Multihash: skein1024-488, status = Draft, code = 0xb39d */ public static final Multihash SKEIN1024_488 = Multihash.of("skein1024-488", 0xb39d); - /** Multihash: skein1024-496, status = draft, code = 0xb39e */ + /** Multihash: skein1024-496, status = Draft, code = 0xb39e */ public static final Multihash SKEIN1024_496 = Multihash.of("skein1024-496", 0xb39e); - /** Multihash: skein1024-504, status = draft, code = 0xb39f */ + /** Multihash: skein1024-504, status = Draft, code = 0xb39f */ public static final Multihash SKEIN1024_504 = Multihash.of("skein1024-504", 0xb39f); - /** Multihash: skein1024-512, status = draft, code = 0xb3a0 */ + /** Multihash: skein1024-512, status = Draft, code = 0xb3a0 */ public static final Multihash SKEIN1024_512 = Multihash.of("skein1024-512", 0xb3a0); - /** Multihash: skein1024-520, status = draft, code = 0xb3a1 */ + /** Multihash: skein1024-520, status = Draft, code = 0xb3a1 */ public static final Multihash SKEIN1024_520 = Multihash.of("skein1024-520", 0xb3a1); - /** Multihash: skein1024-528, status = draft, code = 0xb3a2 */ + /** Multihash: skein1024-528, status = Draft, code = 0xb3a2 */ public static final Multihash SKEIN1024_528 = Multihash.of("skein1024-528", 0xb3a2); - /** Multihash: skein1024-536, status = draft, code = 0xb3a3 */ + /** Multihash: skein1024-536, status = Draft, code = 0xb3a3 */ public static final Multihash SKEIN1024_536 = Multihash.of("skein1024-536", 0xb3a3); - /** Multihash: skein1024-544, status = draft, code = 0xb3a4 */ + /** Multihash: skein1024-544, status = Draft, code = 0xb3a4 */ public static final Multihash SKEIN1024_544 = Multihash.of("skein1024-544", 0xb3a4); - /** Multihash: skein1024-552, status = draft, code = 0xb3a5 */ + /** Multihash: skein1024-552, status = Draft, code = 0xb3a5 */ public static final Multihash SKEIN1024_552 = Multihash.of("skein1024-552", 0xb3a5); - /** Multihash: skein1024-56, status = draft, code = 0xb367 */ + /** Multihash: skein1024-56, status = Draft, code = 0xb367 */ public static final Multihash SKEIN1024_56 = Multihash.of("skein1024-56", 0xb367); - /** Multihash: skein1024-560, status = draft, code = 0xb3a6 */ + /** Multihash: skein1024-560, status = Draft, code = 0xb3a6 */ public static final Multihash SKEIN1024_560 = Multihash.of("skein1024-560", 0xb3a6); - /** Multihash: skein1024-568, status = draft, code = 0xb3a7 */ + /** Multihash: skein1024-568, status = Draft, code = 0xb3a7 */ public static final Multihash SKEIN1024_568 = Multihash.of("skein1024-568", 0xb3a7); - /** Multihash: skein1024-576, status = draft, code = 0xb3a8 */ + /** Multihash: skein1024-576, status = Draft, code = 0xb3a8 */ public static final Multihash SKEIN1024_576 = Multihash.of("skein1024-576", 0xb3a8); - /** Multihash: skein1024-584, status = draft, code = 0xb3a9 */ + /** Multihash: skein1024-584, status = Draft, code = 0xb3a9 */ public static final Multihash SKEIN1024_584 = Multihash.of("skein1024-584", 0xb3a9); - /** Multihash: skein1024-592, status = draft, code = 0xb3aa */ + /** Multihash: skein1024-592, status = Draft, code = 0xb3aa */ public static final Multihash SKEIN1024_592 = Multihash.of("skein1024-592", 0xb3aa); - /** Multihash: skein1024-600, status = draft, code = 0xb3ab */ + /** Multihash: skein1024-600, status = Draft, code = 0xb3ab */ public static final Multihash SKEIN1024_600 = Multihash.of("skein1024-600", 0xb3ab); - /** Multihash: skein1024-608, status = draft, code = 0xb3ac */ + /** Multihash: skein1024-608, status = Draft, code = 0xb3ac */ public static final Multihash SKEIN1024_608 = Multihash.of("skein1024-608", 0xb3ac); - /** Multihash: skein1024-616, status = draft, code = 0xb3ad */ + /** Multihash: skein1024-616, status = Draft, code = 0xb3ad */ public static final Multihash SKEIN1024_616 = Multihash.of("skein1024-616", 0xb3ad); - /** Multihash: skein1024-624, status = draft, code = 0xb3ae */ + /** Multihash: skein1024-624, status = Draft, code = 0xb3ae */ public static final Multihash SKEIN1024_624 = Multihash.of("skein1024-624", 0xb3ae); - /** Multihash: skein1024-632, status = draft, code = 0xb3af */ + /** Multihash: skein1024-632, status = Draft, code = 0xb3af */ public static final Multihash SKEIN1024_632 = Multihash.of("skein1024-632", 0xb3af); - /** Multihash: skein1024-64, status = draft, code = 0xb368 */ + /** Multihash: skein1024-64, status = Draft, code = 0xb368 */ public static final Multihash SKEIN1024_64 = Multihash.of("skein1024-64", 0xb368); - /** Multihash: skein1024-640, status = draft, code = 0xb3b0 */ + /** Multihash: skein1024-640, status = Draft, code = 0xb3b0 */ public static final Multihash SKEIN1024_640 = Multihash.of("skein1024-640", 0xb3b0); - /** Multihash: skein1024-648, status = draft, code = 0xb3b1 */ + /** Multihash: skein1024-648, status = Draft, code = 0xb3b1 */ public static final Multihash SKEIN1024_648 = Multihash.of("skein1024-648", 0xb3b1); - /** Multihash: skein1024-656, status = draft, code = 0xb3b2 */ + /** Multihash: skein1024-656, status = Draft, code = 0xb3b2 */ public static final Multihash SKEIN1024_656 = Multihash.of("skein1024-656", 0xb3b2); - /** Multihash: skein1024-664, status = draft, code = 0xb3b3 */ + /** Multihash: skein1024-664, status = Draft, code = 0xb3b3 */ public static final Multihash SKEIN1024_664 = Multihash.of("skein1024-664", 0xb3b3); - /** Multihash: skein1024-672, status = draft, code = 0xb3b4 */ + /** Multihash: skein1024-672, status = Draft, code = 0xb3b4 */ public static final Multihash SKEIN1024_672 = Multihash.of("skein1024-672", 0xb3b4); - /** Multihash: skein1024-680, status = draft, code = 0xb3b5 */ + /** Multihash: skein1024-680, status = Draft, code = 0xb3b5 */ public static final Multihash SKEIN1024_680 = Multihash.of("skein1024-680", 0xb3b5); - /** Multihash: skein1024-688, status = draft, code = 0xb3b6 */ + /** Multihash: skein1024-688, status = Draft, code = 0xb3b6 */ public static final Multihash SKEIN1024_688 = Multihash.of("skein1024-688", 0xb3b6); - /** Multihash: skein1024-696, status = draft, code = 0xb3b7 */ + /** Multihash: skein1024-696, status = Draft, code = 0xb3b7 */ public static final Multihash SKEIN1024_696 = Multihash.of("skein1024-696", 0xb3b7); - /** Multihash: skein1024-704, status = draft, code = 0xb3b8 */ + /** Multihash: skein1024-704, status = Draft, code = 0xb3b8 */ public static final Multihash SKEIN1024_704 = Multihash.of("skein1024-704", 0xb3b8); - /** Multihash: skein1024-712, status = draft, code = 0xb3b9 */ + /** Multihash: skein1024-712, status = Draft, code = 0xb3b9 */ public static final Multihash SKEIN1024_712 = Multihash.of("skein1024-712", 0xb3b9); - /** Multihash: skein1024-72, status = draft, code = 0xb369 */ + /** Multihash: skein1024-72, status = Draft, code = 0xb369 */ public static final Multihash SKEIN1024_72 = Multihash.of("skein1024-72", 0xb369); - /** Multihash: skein1024-720, status = draft, code = 0xb3ba */ + /** Multihash: skein1024-720, status = Draft, code = 0xb3ba */ public static final Multihash SKEIN1024_720 = Multihash.of("skein1024-720", 0xb3ba); - /** Multihash: skein1024-728, status = draft, code = 0xb3bb */ + /** Multihash: skein1024-728, status = Draft, code = 0xb3bb */ public static final Multihash SKEIN1024_728 = Multihash.of("skein1024-728", 0xb3bb); - /** Multihash: skein1024-736, status = draft, code = 0xb3bc */ + /** Multihash: skein1024-736, status = Draft, code = 0xb3bc */ public static final Multihash SKEIN1024_736 = Multihash.of("skein1024-736", 0xb3bc); - /** Multihash: skein1024-744, status = draft, code = 0xb3bd */ + /** Multihash: skein1024-744, status = Draft, code = 0xb3bd */ public static final Multihash SKEIN1024_744 = Multihash.of("skein1024-744", 0xb3bd); - /** Multihash: skein1024-752, status = draft, code = 0xb3be */ + /** Multihash: skein1024-752, status = Draft, code = 0xb3be */ public static final Multihash SKEIN1024_752 = Multihash.of("skein1024-752", 0xb3be); - /** Multihash: skein1024-760, status = draft, code = 0xb3bf */ + /** Multihash: skein1024-760, status = Draft, code = 0xb3bf */ public static final Multihash SKEIN1024_760 = Multihash.of("skein1024-760", 0xb3bf); - /** Multihash: skein1024-768, status = draft, code = 0xb3c0 */ + /** Multihash: skein1024-768, status = Draft, code = 0xb3c0 */ public static final Multihash SKEIN1024_768 = Multihash.of("skein1024-768", 0xb3c0); - /** Multihash: skein1024-776, status = draft, code = 0xb3c1 */ + /** Multihash: skein1024-776, status = Draft, code = 0xb3c1 */ public static final Multihash SKEIN1024_776 = Multihash.of("skein1024-776", 0xb3c1); - /** Multihash: skein1024-784, status = draft, code = 0xb3c2 */ + /** Multihash: skein1024-784, status = Draft, code = 0xb3c2 */ public static final Multihash SKEIN1024_784 = Multihash.of("skein1024-784", 0xb3c2); - /** Multihash: skein1024-792, status = draft, code = 0xb3c3 */ + /** Multihash: skein1024-792, status = Draft, code = 0xb3c3 */ public static final Multihash SKEIN1024_792 = Multihash.of("skein1024-792", 0xb3c3); - /** Multihash: skein1024-8, Skein1024 consists of 128 output lengths that give different hashes, status = draft, code = 0xb361 */ + /** Multihash: skein1024-8, Skein1024 consists of 128 output lengths that give different hashes, status = Draft, code = 0xb361 */ public static final Multihash SKEIN1024_8 = Multihash.of("skein1024-8", 0xb361); - /** Multihash: skein1024-80, status = draft, code = 0xb36a */ + /** Multihash: skein1024-80, status = Draft, code = 0xb36a */ public static final Multihash SKEIN1024_80 = Multihash.of("skein1024-80", 0xb36a); - /** Multihash: skein1024-800, status = draft, code = 0xb3c4 */ + /** Multihash: skein1024-800, status = Draft, code = 0xb3c4 */ public static final Multihash SKEIN1024_800 = Multihash.of("skein1024-800", 0xb3c4); - /** Multihash: skein1024-808, status = draft, code = 0xb3c5 */ + /** Multihash: skein1024-808, status = Draft, code = 0xb3c5 */ public static final Multihash SKEIN1024_808 = Multihash.of("skein1024-808", 0xb3c5); - /** Multihash: skein1024-816, status = draft, code = 0xb3c6 */ + /** Multihash: skein1024-816, status = Draft, code = 0xb3c6 */ public static final Multihash SKEIN1024_816 = Multihash.of("skein1024-816", 0xb3c6); - /** Multihash: skein1024-824, status = draft, code = 0xb3c7 */ + /** Multihash: skein1024-824, status = Draft, code = 0xb3c7 */ public static final Multihash SKEIN1024_824 = Multihash.of("skein1024-824", 0xb3c7); - /** Multihash: skein1024-832, status = draft, code = 0xb3c8 */ + /** Multihash: skein1024-832, status = Draft, code = 0xb3c8 */ public static final Multihash SKEIN1024_832 = Multihash.of("skein1024-832", 0xb3c8); - /** Multihash: skein1024-840, status = draft, code = 0xb3c9 */ + /** Multihash: skein1024-840, status = Draft, code = 0xb3c9 */ public static final Multihash SKEIN1024_840 = Multihash.of("skein1024-840", 0xb3c9); - /** Multihash: skein1024-848, status = draft, code = 0xb3ca */ + /** Multihash: skein1024-848, status = Draft, code = 0xb3ca */ public static final Multihash SKEIN1024_848 = Multihash.of("skein1024-848", 0xb3ca); - /** Multihash: skein1024-856, status = draft, code = 0xb3cb */ + /** Multihash: skein1024-856, status = Draft, code = 0xb3cb */ public static final Multihash SKEIN1024_856 = Multihash.of("skein1024-856", 0xb3cb); - /** Multihash: skein1024-864, status = draft, code = 0xb3cc */ + /** Multihash: skein1024-864, status = Draft, code = 0xb3cc */ public static final Multihash SKEIN1024_864 = Multihash.of("skein1024-864", 0xb3cc); - /** Multihash: skein1024-872, status = draft, code = 0xb3cd */ + /** Multihash: skein1024-872, status = Draft, code = 0xb3cd */ public static final Multihash SKEIN1024_872 = Multihash.of("skein1024-872", 0xb3cd); - /** Multihash: skein1024-88, status = draft, code = 0xb36b */ + /** Multihash: skein1024-88, status = Draft, code = 0xb36b */ public static final Multihash SKEIN1024_88 = Multihash.of("skein1024-88", 0xb36b); - /** Multihash: skein1024-880, status = draft, code = 0xb3ce */ + /** Multihash: skein1024-880, status = Draft, code = 0xb3ce */ public static final Multihash SKEIN1024_880 = Multihash.of("skein1024-880", 0xb3ce); - /** Multihash: skein1024-888, status = draft, code = 0xb3cf */ + /** Multihash: skein1024-888, status = Draft, code = 0xb3cf */ public static final Multihash SKEIN1024_888 = Multihash.of("skein1024-888", 0xb3cf); - /** Multihash: skein1024-896, status = draft, code = 0xb3d0 */ + /** Multihash: skein1024-896, status = Draft, code = 0xb3d0 */ public static final Multihash SKEIN1024_896 = Multihash.of("skein1024-896", 0xb3d0); - /** Multihash: skein1024-904, status = draft, code = 0xb3d1 */ + /** Multihash: skein1024-904, status = Draft, code = 0xb3d1 */ public static final Multihash SKEIN1024_904 = Multihash.of("skein1024-904", 0xb3d1); - /** Multihash: skein1024-912, status = draft, code = 0xb3d2 */ + /** Multihash: skein1024-912, status = Draft, code = 0xb3d2 */ public static final Multihash SKEIN1024_912 = Multihash.of("skein1024-912", 0xb3d2); - /** Multihash: skein1024-920, status = draft, code = 0xb3d3 */ + /** Multihash: skein1024-920, status = Draft, code = 0xb3d3 */ public static final Multihash SKEIN1024_920 = Multihash.of("skein1024-920", 0xb3d3); - /** Multihash: skein1024-928, status = draft, code = 0xb3d4 */ + /** Multihash: skein1024-928, status = Draft, code = 0xb3d4 */ public static final Multihash SKEIN1024_928 = Multihash.of("skein1024-928", 0xb3d4); - /** Multihash: skein1024-936, status = draft, code = 0xb3d5 */ + /** Multihash: skein1024-936, status = Draft, code = 0xb3d5 */ public static final Multihash SKEIN1024_936 = Multihash.of("skein1024-936", 0xb3d5); - /** Multihash: skein1024-944, status = draft, code = 0xb3d6 */ + /** Multihash: skein1024-944, status = Draft, code = 0xb3d6 */ public static final Multihash SKEIN1024_944 = Multihash.of("skein1024-944", 0xb3d6); - /** Multihash: skein1024-952, status = draft, code = 0xb3d7 */ + /** Multihash: skein1024-952, status = Draft, code = 0xb3d7 */ public static final Multihash SKEIN1024_952 = Multihash.of("skein1024-952", 0xb3d7); - /** Multihash: skein1024-96, status = draft, code = 0xb36c */ + /** Multihash: skein1024-96, status = Draft, code = 0xb36c */ public static final Multihash SKEIN1024_96 = Multihash.of("skein1024-96", 0xb36c); - /** Multihash: skein1024-960, status = draft, code = 0xb3d8 */ + /** Multihash: skein1024-960, status = Draft, code = 0xb3d8 */ public static final Multihash SKEIN1024_960 = Multihash.of("skein1024-960", 0xb3d8); - /** Multihash: skein1024-968, status = draft, code = 0xb3d9 */ + /** Multihash: skein1024-968, status = Draft, code = 0xb3d9 */ public static final Multihash SKEIN1024_968 = Multihash.of("skein1024-968", 0xb3d9); - /** Multihash: skein1024-976, status = draft, code = 0xb3da */ + /** Multihash: skein1024-976, status = Draft, code = 0xb3da */ public static final Multihash SKEIN1024_976 = Multihash.of("skein1024-976", 0xb3da); - /** Multihash: skein1024-984, status = draft, code = 0xb3db */ + /** Multihash: skein1024-984, status = Draft, code = 0xb3db */ public static final Multihash SKEIN1024_984 = Multihash.of("skein1024-984", 0xb3db); - /** Multihash: skein1024-992, status = draft, code = 0xb3dc */ + /** Multihash: skein1024-992, status = Draft, code = 0xb3dc */ public static final Multihash SKEIN1024_992 = Multihash.of("skein1024-992", 0xb3dc); - /** Multihash: skein256-104, status = draft, code = 0xb30d */ + /** Multihash: skein256-104, status = Draft, code = 0xb30d */ public static final Multihash SKEIN256_104 = Multihash.of("skein256-104", 0xb30d); - /** Multihash: skein256-112, status = draft, code = 0xb30e */ + /** Multihash: skein256-112, status = Draft, code = 0xb30e */ public static final Multihash SKEIN256_112 = Multihash.of("skein256-112", 0xb30e); - /** Multihash: skein256-120, status = draft, code = 0xb30f */ + /** Multihash: skein256-120, status = Draft, code = 0xb30f */ public static final Multihash SKEIN256_120 = Multihash.of("skein256-120", 0xb30f); - /** Multihash: skein256-128, status = draft, code = 0xb310 */ + /** Multihash: skein256-128, status = Draft, code = 0xb310 */ public static final Multihash SKEIN256_128 = Multihash.of("skein256-128", 0xb310); - /** Multihash: skein256-136, status = draft, code = 0xb311 */ + /** Multihash: skein256-136, status = Draft, code = 0xb311 */ public static final Multihash SKEIN256_136 = Multihash.of("skein256-136", 0xb311); - /** Multihash: skein256-144, status = draft, code = 0xb312 */ + /** Multihash: skein256-144, status = Draft, code = 0xb312 */ public static final Multihash SKEIN256_144 = Multihash.of("skein256-144", 0xb312); - /** Multihash: skein256-152, status = draft, code = 0xb313 */ + /** Multihash: skein256-152, status = Draft, code = 0xb313 */ public static final Multihash SKEIN256_152 = Multihash.of("skein256-152", 0xb313); - /** Multihash: skein256-16, status = draft, code = 0xb302 */ + /** Multihash: skein256-16, status = Draft, code = 0xb302 */ public static final Multihash SKEIN256_16 = Multihash.of("skein256-16", 0xb302); - /** Multihash: skein256-160, status = draft, code = 0xb314 */ + /** Multihash: skein256-160, status = Draft, code = 0xb314 */ public static final Multihash SKEIN256_160 = Multihash.of("skein256-160", 0xb314); - /** Multihash: skein256-168, status = draft, code = 0xb315 */ + /** Multihash: skein256-168, status = Draft, code = 0xb315 */ public static final Multihash SKEIN256_168 = Multihash.of("skein256-168", 0xb315); - /** Multihash: skein256-176, status = draft, code = 0xb316 */ + /** Multihash: skein256-176, status = Draft, code = 0xb316 */ public static final Multihash SKEIN256_176 = Multihash.of("skein256-176", 0xb316); - /** Multihash: skein256-184, status = draft, code = 0xb317 */ + /** Multihash: skein256-184, status = Draft, code = 0xb317 */ public static final Multihash SKEIN256_184 = Multihash.of("skein256-184", 0xb317); - /** Multihash: skein256-192, status = draft, code = 0xb318 */ + /** Multihash: skein256-192, status = Draft, code = 0xb318 */ public static final Multihash SKEIN256_192 = Multihash.of("skein256-192", 0xb318); - /** Multihash: skein256-200, status = draft, code = 0xb319 */ + /** Multihash: skein256-200, status = Draft, code = 0xb319 */ public static final Multihash SKEIN256_200 = Multihash.of("skein256-200", 0xb319); - /** Multihash: skein256-208, status = draft, code = 0xb31a */ + /** Multihash: skein256-208, status = Draft, code = 0xb31a */ public static final Multihash SKEIN256_208 = Multihash.of("skein256-208", 0xb31a); - /** Multihash: skein256-216, status = draft, code = 0xb31b */ + /** Multihash: skein256-216, status = Draft, code = 0xb31b */ public static final Multihash SKEIN256_216 = Multihash.of("skein256-216", 0xb31b); - /** Multihash: skein256-224, status = draft, code = 0xb31c */ + /** Multihash: skein256-224, status = Draft, code = 0xb31c */ public static final Multihash SKEIN256_224 = Multihash.of("skein256-224", 0xb31c); - /** Multihash: skein256-232, status = draft, code = 0xb31d */ + /** Multihash: skein256-232, status = Draft, code = 0xb31d */ public static final Multihash SKEIN256_232 = Multihash.of("skein256-232", 0xb31d); - /** Multihash: skein256-24, status = draft, code = 0xb303 */ + /** Multihash: skein256-24, status = Draft, code = 0xb303 */ public static final Multihash SKEIN256_24 = Multihash.of("skein256-24", 0xb303); - /** Multihash: skein256-240, status = draft, code = 0xb31e */ + /** Multihash: skein256-240, status = Draft, code = 0xb31e */ public static final Multihash SKEIN256_240 = Multihash.of("skein256-240", 0xb31e); - /** Multihash: skein256-248, status = draft, code = 0xb31f */ + /** Multihash: skein256-248, status = Draft, code = 0xb31f */ public static final Multihash SKEIN256_248 = Multihash.of("skein256-248", 0xb31f); - /** Multihash: skein256-256, status = draft, code = 0xb320 */ + /** Multihash: skein256-256, status = Draft, code = 0xb320 */ public static final Multihash SKEIN256_256 = Multihash.of("skein256-256", 0xb320); - /** Multihash: skein256-32, status = draft, code = 0xb304 */ + /** Multihash: skein256-32, status = Draft, code = 0xb304 */ public static final Multihash SKEIN256_32 = Multihash.of("skein256-32", 0xb304); - /** Multihash: skein256-40, status = draft, code = 0xb305 */ + /** Multihash: skein256-40, status = Draft, code = 0xb305 */ public static final Multihash SKEIN256_40 = Multihash.of("skein256-40", 0xb305); - /** Multihash: skein256-48, status = draft, code = 0xb306 */ + /** Multihash: skein256-48, status = Draft, code = 0xb306 */ public static final Multihash SKEIN256_48 = Multihash.of("skein256-48", 0xb306); - /** Multihash: skein256-56, status = draft, code = 0xb307 */ + /** Multihash: skein256-56, status = Draft, code = 0xb307 */ public static final Multihash SKEIN256_56 = Multihash.of("skein256-56", 0xb307); - /** Multihash: skein256-64, status = draft, code = 0xb308 */ + /** Multihash: skein256-64, status = Draft, code = 0xb308 */ public static final Multihash SKEIN256_64 = Multihash.of("skein256-64", 0xb308); - /** Multihash: skein256-72, status = draft, code = 0xb309 */ + /** Multihash: skein256-72, status = Draft, code = 0xb309 */ public static final Multihash SKEIN256_72 = Multihash.of("skein256-72", 0xb309); - /** Multihash: skein256-8, Skein256 consists of 32 output lengths that give different hashes, status = draft, code = 0xb301 */ + /** Multihash: skein256-8, Skein256 consists of 32 output lengths that give different hashes, status = Draft, code = 0xb301 */ public static final Multihash SKEIN256_8 = Multihash.of("skein256-8", 0xb301); - /** Multihash: skein256-80, status = draft, code = 0xb30a */ + /** Multihash: skein256-80, status = Draft, code = 0xb30a */ public static final Multihash SKEIN256_80 = Multihash.of("skein256-80", 0xb30a); - /** Multihash: skein256-88, status = draft, code = 0xb30b */ + /** Multihash: skein256-88, status = Draft, code = 0xb30b */ public static final Multihash SKEIN256_88 = Multihash.of("skein256-88", 0xb30b); - /** Multihash: skein256-96, status = draft, code = 0xb30c */ + /** Multihash: skein256-96, status = Draft, code = 0xb30c */ public static final Multihash SKEIN256_96 = Multihash.of("skein256-96", 0xb30c); - /** Multihash: skein512-104, status = draft, code = 0xb32d */ + /** Multihash: skein512-104, status = Draft, code = 0xb32d */ public static final Multihash SKEIN512_104 = Multihash.of("skein512-104", 0xb32d); - /** Multihash: skein512-112, status = draft, code = 0xb32e */ + /** Multihash: skein512-112, status = Draft, code = 0xb32e */ public static final Multihash SKEIN512_112 = Multihash.of("skein512-112", 0xb32e); - /** Multihash: skein512-120, status = draft, code = 0xb32f */ + /** Multihash: skein512-120, status = Draft, code = 0xb32f */ public static final Multihash SKEIN512_120 = Multihash.of("skein512-120", 0xb32f); - /** Multihash: skein512-128, status = draft, code = 0xb330 */ + /** Multihash: skein512-128, status = Draft, code = 0xb330 */ public static final Multihash SKEIN512_128 = Multihash.of("skein512-128", 0xb330); - /** Multihash: skein512-136, status = draft, code = 0xb331 */ + /** Multihash: skein512-136, status = Draft, code = 0xb331 */ public static final Multihash SKEIN512_136 = Multihash.of("skein512-136", 0xb331); - /** Multihash: skein512-144, status = draft, code = 0xb332 */ + /** Multihash: skein512-144, status = Draft, code = 0xb332 */ public static final Multihash SKEIN512_144 = Multihash.of("skein512-144", 0xb332); - /** Multihash: skein512-152, status = draft, code = 0xb333 */ + /** Multihash: skein512-152, status = Draft, code = 0xb333 */ public static final Multihash SKEIN512_152 = Multihash.of("skein512-152", 0xb333); - /** Multihash: skein512-16, status = draft, code = 0xb322 */ + /** Multihash: skein512-16, status = Draft, code = 0xb322 */ public static final Multihash SKEIN512_16 = Multihash.of("skein512-16", 0xb322); - /** Multihash: skein512-160, status = draft, code = 0xb334 */ + /** Multihash: skein512-160, status = Draft, code = 0xb334 */ public static final Multihash SKEIN512_160 = Multihash.of("skein512-160", 0xb334); - /** Multihash: skein512-168, status = draft, code = 0xb335 */ + /** Multihash: skein512-168, status = Draft, code = 0xb335 */ public static final Multihash SKEIN512_168 = Multihash.of("skein512-168", 0xb335); - /** Multihash: skein512-176, status = draft, code = 0xb336 */ + /** Multihash: skein512-176, status = Draft, code = 0xb336 */ public static final Multihash SKEIN512_176 = Multihash.of("skein512-176", 0xb336); - /** Multihash: skein512-184, status = draft, code = 0xb337 */ + /** Multihash: skein512-184, status = Draft, code = 0xb337 */ public static final Multihash SKEIN512_184 = Multihash.of("skein512-184", 0xb337); - /** Multihash: skein512-192, status = draft, code = 0xb338 */ + /** Multihash: skein512-192, status = Draft, code = 0xb338 */ public static final Multihash SKEIN512_192 = Multihash.of("skein512-192", 0xb338); - /** Multihash: skein512-200, status = draft, code = 0xb339 */ + /** Multihash: skein512-200, status = Draft, code = 0xb339 */ public static final Multihash SKEIN512_200 = Multihash.of("skein512-200", 0xb339); - /** Multihash: skein512-208, status = draft, code = 0xb33a */ + /** Multihash: skein512-208, status = Draft, code = 0xb33a */ public static final Multihash SKEIN512_208 = Multihash.of("skein512-208", 0xb33a); - /** Multihash: skein512-216, status = draft, code = 0xb33b */ + /** Multihash: skein512-216, status = Draft, code = 0xb33b */ public static final Multihash SKEIN512_216 = Multihash.of("skein512-216", 0xb33b); - /** Multihash: skein512-224, status = draft, code = 0xb33c */ + /** Multihash: skein512-224, status = Draft, code = 0xb33c */ public static final Multihash SKEIN512_224 = Multihash.of("skein512-224", 0xb33c); - /** Multihash: skein512-232, status = draft, code = 0xb33d */ + /** Multihash: skein512-232, status = Draft, code = 0xb33d */ public static final Multihash SKEIN512_232 = Multihash.of("skein512-232", 0xb33d); - /** Multihash: skein512-24, status = draft, code = 0xb323 */ + /** Multihash: skein512-24, status = Draft, code = 0xb323 */ public static final Multihash SKEIN512_24 = Multihash.of("skein512-24", 0xb323); - /** Multihash: skein512-240, status = draft, code = 0xb33e */ + /** Multihash: skein512-240, status = Draft, code = 0xb33e */ public static final Multihash SKEIN512_240 = Multihash.of("skein512-240", 0xb33e); - /** Multihash: skein512-248, status = draft, code = 0xb33f */ + /** Multihash: skein512-248, status = Draft, code = 0xb33f */ public static final Multihash SKEIN512_248 = Multihash.of("skein512-248", 0xb33f); - /** Multihash: skein512-256, status = draft, code = 0xb340 */ + /** Multihash: skein512-256, status = Draft, code = 0xb340 */ public static final Multihash SKEIN512_256 = Multihash.of("skein512-256", 0xb340); - /** Multihash: skein512-264, status = draft, code = 0xb341 */ + /** Multihash: skein512-264, status = Draft, code = 0xb341 */ public static final Multihash SKEIN512_264 = Multihash.of("skein512-264", 0xb341); - /** Multihash: skein512-272, status = draft, code = 0xb342 */ + /** Multihash: skein512-272, status = Draft, code = 0xb342 */ public static final Multihash SKEIN512_272 = Multihash.of("skein512-272", 0xb342); - /** Multihash: skein512-280, status = draft, code = 0xb343 */ + /** Multihash: skein512-280, status = Draft, code = 0xb343 */ public static final Multihash SKEIN512_280 = Multihash.of("skein512-280", 0xb343); - /** Multihash: skein512-288, status = draft, code = 0xb344 */ + /** Multihash: skein512-288, status = Draft, code = 0xb344 */ public static final Multihash SKEIN512_288 = Multihash.of("skein512-288", 0xb344); - /** Multihash: skein512-296, status = draft, code = 0xb345 */ + /** Multihash: skein512-296, status = Draft, code = 0xb345 */ public static final Multihash SKEIN512_296 = Multihash.of("skein512-296", 0xb345); - /** Multihash: skein512-304, status = draft, code = 0xb346 */ + /** Multihash: skein512-304, status = Draft, code = 0xb346 */ public static final Multihash SKEIN512_304 = Multihash.of("skein512-304", 0xb346); - /** Multihash: skein512-312, status = draft, code = 0xb347 */ + /** Multihash: skein512-312, status = Draft, code = 0xb347 */ public static final Multihash SKEIN512_312 = Multihash.of("skein512-312", 0xb347); - /** Multihash: skein512-32, status = draft, code = 0xb324 */ + /** Multihash: skein512-32, status = Draft, code = 0xb324 */ public static final Multihash SKEIN512_32 = Multihash.of("skein512-32", 0xb324); - /** Multihash: skein512-320, status = draft, code = 0xb348 */ + /** Multihash: skein512-320, status = Draft, code = 0xb348 */ public static final Multihash SKEIN512_320 = Multihash.of("skein512-320", 0xb348); - /** Multihash: skein512-328, status = draft, code = 0xb349 */ + /** Multihash: skein512-328, status = Draft, code = 0xb349 */ public static final Multihash SKEIN512_328 = Multihash.of("skein512-328", 0xb349); - /** Multihash: skein512-336, status = draft, code = 0xb34a */ + /** Multihash: skein512-336, status = Draft, code = 0xb34a */ public static final Multihash SKEIN512_336 = Multihash.of("skein512-336", 0xb34a); - /** Multihash: skein512-344, status = draft, code = 0xb34b */ + /** Multihash: skein512-344, status = Draft, code = 0xb34b */ public static final Multihash SKEIN512_344 = Multihash.of("skein512-344", 0xb34b); - /** Multihash: skein512-352, status = draft, code = 0xb34c */ + /** Multihash: skein512-352, status = Draft, code = 0xb34c */ public static final Multihash SKEIN512_352 = Multihash.of("skein512-352", 0xb34c); - /** Multihash: skein512-360, status = draft, code = 0xb34d */ + /** Multihash: skein512-360, status = Draft, code = 0xb34d */ public static final Multihash SKEIN512_360 = Multihash.of("skein512-360", 0xb34d); - /** Multihash: skein512-368, status = draft, code = 0xb34e */ + /** Multihash: skein512-368, status = Draft, code = 0xb34e */ public static final Multihash SKEIN512_368 = Multihash.of("skein512-368", 0xb34e); - /** Multihash: skein512-376, status = draft, code = 0xb34f */ + /** Multihash: skein512-376, status = Draft, code = 0xb34f */ public static final Multihash SKEIN512_376 = Multihash.of("skein512-376", 0xb34f); - /** Multihash: skein512-384, status = draft, code = 0xb350 */ + /** Multihash: skein512-384, status = Draft, code = 0xb350 */ public static final Multihash SKEIN512_384 = Multihash.of("skein512-384", 0xb350); - /** Multihash: skein512-392, status = draft, code = 0xb351 */ + /** Multihash: skein512-392, status = Draft, code = 0xb351 */ public static final Multihash SKEIN512_392 = Multihash.of("skein512-392", 0xb351); - /** Multihash: skein512-40, status = draft, code = 0xb325 */ + /** Multihash: skein512-40, status = Draft, code = 0xb325 */ public static final Multihash SKEIN512_40 = Multihash.of("skein512-40", 0xb325); - /** Multihash: skein512-400, status = draft, code = 0xb352 */ + /** Multihash: skein512-400, status = Draft, code = 0xb352 */ public static final Multihash SKEIN512_400 = Multihash.of("skein512-400", 0xb352); - /** Multihash: skein512-408, status = draft, code = 0xb353 */ + /** Multihash: skein512-408, status = Draft, code = 0xb353 */ public static final Multihash SKEIN512_408 = Multihash.of("skein512-408", 0xb353); - /** Multihash: skein512-416, status = draft, code = 0xb354 */ + /** Multihash: skein512-416, status = Draft, code = 0xb354 */ public static final Multihash SKEIN512_416 = Multihash.of("skein512-416", 0xb354); - /** Multihash: skein512-424, status = draft, code = 0xb355 */ + /** Multihash: skein512-424, status = Draft, code = 0xb355 */ public static final Multihash SKEIN512_424 = Multihash.of("skein512-424", 0xb355); - /** Multihash: skein512-432, status = draft, code = 0xb356 */ + /** Multihash: skein512-432, status = Draft, code = 0xb356 */ public static final Multihash SKEIN512_432 = Multihash.of("skein512-432", 0xb356); - /** Multihash: skein512-440, status = draft, code = 0xb357 */ + /** Multihash: skein512-440, status = Draft, code = 0xb357 */ public static final Multihash SKEIN512_440 = Multihash.of("skein512-440", 0xb357); - /** Multihash: skein512-448, status = draft, code = 0xb358 */ + /** Multihash: skein512-448, status = Draft, code = 0xb358 */ public static final Multihash SKEIN512_448 = Multihash.of("skein512-448", 0xb358); - /** Multihash: skein512-456, status = draft, code = 0xb359 */ + /** Multihash: skein512-456, status = Draft, code = 0xb359 */ public static final Multihash SKEIN512_456 = Multihash.of("skein512-456", 0xb359); - /** Multihash: skein512-464, status = draft, code = 0xb35a */ + /** Multihash: skein512-464, status = Draft, code = 0xb35a */ public static final Multihash SKEIN512_464 = Multihash.of("skein512-464", 0xb35a); - /** Multihash: skein512-472, status = draft, code = 0xb35b */ + /** Multihash: skein512-472, status = Draft, code = 0xb35b */ public static final Multihash SKEIN512_472 = Multihash.of("skein512-472", 0xb35b); - /** Multihash: skein512-48, status = draft, code = 0xb326 */ + /** Multihash: skein512-48, status = Draft, code = 0xb326 */ public static final Multihash SKEIN512_48 = Multihash.of("skein512-48", 0xb326); - /** Multihash: skein512-480, status = draft, code = 0xb35c */ + /** Multihash: skein512-480, status = Draft, code = 0xb35c */ public static final Multihash SKEIN512_480 = Multihash.of("skein512-480", 0xb35c); - /** Multihash: skein512-488, status = draft, code = 0xb35d */ + /** Multihash: skein512-488, status = Draft, code = 0xb35d */ public static final Multihash SKEIN512_488 = Multihash.of("skein512-488", 0xb35d); - /** Multihash: skein512-496, status = draft, code = 0xb35e */ + /** Multihash: skein512-496, status = Draft, code = 0xb35e */ public static final Multihash SKEIN512_496 = Multihash.of("skein512-496", 0xb35e); - /** Multihash: skein512-504, status = draft, code = 0xb35f */ + /** Multihash: skein512-504, status = Draft, code = 0xb35f */ public static final Multihash SKEIN512_504 = Multihash.of("skein512-504", 0xb35f); - /** Multihash: skein512-512, status = draft, code = 0xb360 */ + /** Multihash: skein512-512, status = Draft, code = 0xb360 */ public static final Multihash SKEIN512_512 = Multihash.of("skein512-512", 0xb360); - /** Multihash: skein512-56, status = draft, code = 0xb327 */ + /** Multihash: skein512-56, status = Draft, code = 0xb327 */ public static final Multihash SKEIN512_56 = Multihash.of("skein512-56", 0xb327); - /** Multihash: skein512-64, status = draft, code = 0xb328 */ + /** Multihash: skein512-64, status = Draft, code = 0xb328 */ public static final Multihash SKEIN512_64 = Multihash.of("skein512-64", 0xb328); - /** Multihash: skein512-72, status = draft, code = 0xb329 */ + /** Multihash: skein512-72, status = Draft, code = 0xb329 */ public static final Multihash SKEIN512_72 = Multihash.of("skein512-72", 0xb329); - /** Multihash: skein512-8, Skein512 consists of 64 output lengths that give different hashes, status = draft, code = 0xb321 */ + /** Multihash: skein512-8, Skein512 consists of 64 output lengths that give different hashes, status = Draft, code = 0xb321 */ public static final Multihash SKEIN512_8 = Multihash.of("skein512-8", 0xb321); - /** Multihash: skein512-80, status = draft, code = 0xb32a */ + /** Multihash: skein512-80, status = Draft, code = 0xb32a */ public static final Multihash SKEIN512_80 = Multihash.of("skein512-80", 0xb32a); - /** Multihash: skein512-88, status = draft, code = 0xb32b */ + /** Multihash: skein512-88, status = Draft, code = 0xb32b */ public static final Multihash SKEIN512_88 = Multihash.of("skein512-88", 0xb32b); - /** Multihash: skein512-96, status = draft, code = 0xb32c */ + /** Multihash: skein512-96, status = Draft, code = 0xb32c */ public static final Multihash SKEIN512_96 = Multihash.of("skein512-96", 0xb32c); - /** Multihash: sm3-256, status = draft, code = 0x534d */ + /** Multihash: sm3-256, status = Draft, code = 0x534d */ public static final Multihash SM3_256 = Multihash.of("sm3-256", 0x534d); - /** Multihash: ssz-sha2-256-bmt, SSZ Merkle tree root using SHA2-256 as the hashing function and SSZ serialization for the block binary, status = draft, code = 0xb502 */ + /** Multihash: ssz-sha2-256-bmt, SSZ Merkle tree root using SHA2-256 as the hashing function and SSZ serialization for the block binary, status = Draft, code = 0xb502 */ public static final Multihash SSZ_SHA2_256_BMT = Multihash.of("ssz-sha2-256-bmt", 0xb502); - /** Multihash: x11, status = draft, code = 0x1100 */ + /** Multihash: x11, status = Draft, code = 0x1100 */ public static final Multihash X11 = Multihash.of("x11", 0x1100); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java b/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java index 6cb6191..bf450b1 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java @@ -6,46 +6,46 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class NamespaceCodec { - /** Namespace: arweave-ns, Arweave Namespace, status = draft, code = 0xb29910 */ + /** Namespace: arweave-ns, Arweave Namespace, status = Draft, code = 0xb29910 */ public static final Multicodec ARWEAVE_NS = Multicodec.of("arweave-ns", Tag.Namespace, 0xb29910); - /** Namespace: dnslink, DNSLink path, status = permanent, code = 0xe8 */ + /** Namespace: dnslink, DNSLink path, status = Permanent, code = 0xe8 */ public static final Multicodec DNSLINK = Multicodec.of("dnslink", Tag.Namespace, 0xe8); - /** Namespace: ipfs, IPFS path, status = draft, code = 0xe3 */ + /** Namespace: ipfs, IPFS path, status = Draft, code = 0xe3 */ public static final Multicodec IPFS = Multicodec.of("ipfs", Tag.Namespace, 0xe3); - /** Namespace: ipld, IPLD path, status = draft, code = 0xe2 */ + /** Namespace: ipld, IPLD path, status = Draft, code = 0xe2 */ public static final Multicodec IPLD = Multicodec.of("ipld", Tag.Namespace, 0xe2); - /** Namespace: ipns, IPNS path, status = draft, code = 0xe5 */ + /** Namespace: ipns, IPNS path, status = Draft, code = 0xe5 */ public static final Multicodec IPNS = Multicodec.of("ipns", Tag.Namespace, 0xe5); - /** Namespace: kumandra-ns, Kumandra Network Namespace, status = draft, code = 0xb49910 */ + /** Namespace: kumandra-ns, Kumandra Network Namespace, status = Draft, code = 0xb49910 */ public static final Multicodec KUMANDRA_NS = Multicodec.of("kumandra-ns", Tag.Namespace, 0xb49910); - /** Namespace: lbry, LBRY Address, status = draft, code = 0x8c */ + /** Namespace: lbry, LBRY Address, status = Draft, code = 0x8c */ public static final Multicodec LBRY = Multicodec.of("lbry", Tag.Namespace, 0x8c); - /** Namespace: path, Namespace for string paths. Corresponds to `/` in ASCII., status = permanent, code = 0x2f */ + /** Namespace: path, Namespace for string paths. Corresponds to `/` in ASCII., status = Permanent, code = 0x2f */ public static final Multicodec PATH = Multicodec.of("path", Tag.Namespace, 0x2f); - /** Namespace: skynet-ns, Skynet Namespace, status = draft, code = 0xb19910 */ + /** Namespace: skynet-ns, Skynet Namespace, status = Draft, code = 0xb19910 */ public static final Multicodec SKYNET_NS = Multicodec.of("skynet-ns", Tag.Namespace, 0xb19910); - /** Namespace: streamid, Ceramic Stream Id, status = draft, code = 0xce */ + /** Namespace: streamid, Ceramic Stream Id, status = Draft, code = 0xce */ public static final Multicodec STREAMID = Multicodec.of("streamid", Tag.Namespace, 0xce); - /** Namespace: subspace-ns, Subspace Network Namespace, status = draft, code = 0xb39910 */ + /** Namespace: subspace-ns, Subspace Network Namespace, status = Draft, code = 0xb39910 */ public static final Multicodec SUBSPACE_NS = Multicodec.of("subspace-ns", Tag.Namespace, 0xb39910); - /** Namespace: swarm, Swarm path, status = draft, code = 0xe4 */ + /** Namespace: swarm, Swarm path, status = Draft, code = 0xe4 */ public static final Multicodec SWARM = Multicodec.of("swarm", Tag.Namespace, 0xe4); - /** Namespace: zeronet, ZeroNet site address, status = draft, code = 0xe6 */ + /** Namespace: zeronet, ZeroNet site address, status = Draft, code = 0xe6 */ public static final Multicodec ZERONET = Multicodec.of("zeronet", Tag.Namespace, 0xe6); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java b/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java index 0386ec7..77f9e5b 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java @@ -6,43 +6,43 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class SerializationCodec { - /** Serialization: bencode, bencode, status = draft, code = 0x63 */ + /** Serialization: bencode, bencode, status = Draft, code = 0x63 */ public static final Multicodec BENCODE = Multicodec.of("bencode", Tag.Serialization, 0x63); - /** Serialization: car, Content Addressable aRchive (CAR), status = draft, code = 0x202 */ + /** Serialization: car, Content Addressable aRchive (CAR), status = Draft, code = 0x202 */ public static final Multicodec CAR = Multicodec.of("car", Tag.Serialization, 0x202); - /** Serialization: car-index-sorted, CARv2 IndexSorted index format, status = draft, code = 0x400 */ + /** Serialization: car-index-sorted, CARv2 IndexSorted index format, status = Draft, code = 0x400 */ public static final Multicodec CAR_INDEX_SORTED = Multicodec.of("car-index-sorted", Tag.Serialization, 0x400); - /** Serialization: car-multihash-index-sorted, CARv2 MultihashIndexSorted index format, status = draft, code = 0x401 */ + /** Serialization: car-multihash-index-sorted, CARv2 MultihashIndexSorted index format, status = Draft, code = 0x401 */ public static final Multicodec CAR_MULTIHASH_INDEX_SORTED = Multicodec.of("car-multihash-index-sorted", Tag.Serialization, 0x401); - /** Serialization: ipns-record, Signed IPNS Record, status = permanent, code = 0x300 */ + /** Serialization: ipns-record, Signed IPNS Record, status = Permanent, code = 0x300 */ public static final Multicodec IPNS_RECORD = Multicodec.of("ipns-record", Tag.Serialization, 0x300); - /** Serialization: messagepack, MessagePack, status = draft, code = 0x201 */ + /** Serialization: messagepack, MessagePack, status = Draft, code = 0x201 */ public static final Multicodec MESSAGEPACK = Multicodec.of("messagepack", Tag.Serialization, 0x201); - /** Serialization: protobuf, Protocol Buffers, status = draft, code = 0x50 */ + /** Serialization: protobuf, Protocol Buffers, status = Draft, code = 0x50 */ public static final Multicodec PROTOBUF = Multicodec.of("protobuf", Tag.Serialization, 0x50); - /** Serialization: provenance-log, Verifiable and permissioned append-only log, status = draft, code = 0x1208 */ + /** Serialization: provenance-log, Verifiable and permissioned append-only log, status = Draft, code = 0x1208 */ public static final Multicodec PROVENANCE_LOG = Multicodec.of("provenance-log", Tag.Serialization, 0x1208); - /** Serialization: provenance-log-entry, Verifiable and permissioned append-only log entry, status = draft, code = 0x1209 */ + /** Serialization: provenance-log-entry, Verifiable and permissioned append-only log entry, status = Draft, code = 0x1209 */ public static final Multicodec PROVENANCE_LOG_ENTRY = Multicodec.of("provenance-log-entry", Tag.Serialization, 0x1209); - /** Serialization: provenance-log-script, Verifiable and permissioned append-only log script, status = draft, code = 0x120a */ + /** Serialization: provenance-log-script, Verifiable and permissioned append-only log script, status = Draft, code = 0x120a */ public static final Multicodec PROVENANCE_LOG_SCRIPT = Multicodec.of("provenance-log-script", Tag.Serialization, 0x120a); - /** Serialization: rlp, recursive length prefix, status = draft, code = 0x60 */ + /** Serialization: rlp, recursive length prefix, status = Draft, code = 0x60 */ public static final Multicodec RLP = Multicodec.of("rlp", Tag.Serialization, 0x60); - /** Serialization: ssz, SimpleSerialize (SSZ) serialization, status = draft, code = 0xb501 */ + /** Serialization: ssz, SimpleSerialize (SSZ) serialization, status = Draft, code = 0xb501 */ public static final Multicodec SSZ = Multicodec.of("ssz", Tag.Serialization, 0xb501); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java b/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java index 89fb5c5..41810c2 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java @@ -6,16 +6,16 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class TransportCodec { - /** Transport: transport-bitswap, Bitswap datatransfer, status = draft, code = 0x900 */ + /** Transport: transport-bitswap, Bitswap datatransfer, status = Draft, code = 0x900 */ public static final Multicodec TRANSPORT_BITSWAP = Multicodec.of("transport-bitswap", Tag.Transport, 0x900); - /** Transport: transport-graphsync-filecoinv1, Filecoin graphsync datatransfer, status = draft, code = 0x910 */ + /** Transport: transport-graphsync-filecoinv1, Filecoin graphsync datatransfer, status = Draft, code = 0x910 */ public static final Multicodec TRANSPORT_GRAPHSYNC_FILECOINV1 = Multicodec.of("transport-graphsync-filecoinv1", Tag.Transport, 0x910); - /** Transport: transport-ipfs-gateway-http, HTTP IPFS Gateway trustless datatransfer, status = draft, code = 0x920 */ + /** Transport: transport-ipfs-gateway-http, HTTP IPFS Gateway trustless datatransfer, status = Draft, code = 0x920 */ public static final Multicodec TRANSPORT_IPFS_GATEWAY_HTTP = Multicodec.of("transport-ipfs-gateway-http", Tag.Transport, 0x920); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java b/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java index d46a57c..b831ba5 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java @@ -6,37 +6,37 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 01:34:48 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ public class VarsigCodec { - /** Varsig: bls-12381-g1-sig, G1 signature for BLS-12381-G2, status = draft, code = 0xd0ea */ + /** Varsig: bls-12381-g1-sig, G1 signature for BLS-12381-G2, status = Draft, code = 0xd0ea */ public static final Multicodec BLS_12381_G1_SIG = Multicodec.of("bls-12381-g1-sig", Tag.Varsig, 0xd0ea); - /** Varsig: bls-12381-g2-sig, G2 signature for BLS-12381-G1, status = draft, code = 0xd0eb */ + /** Varsig: bls-12381-g2-sig, G2 signature for BLS-12381-G1, status = Draft, code = 0xd0eb */ public static final Multicodec BLS_12381_G2_SIG = Multicodec.of("bls-12381-g2-sig", Tag.Varsig, 0xd0eb); - /** Varsig: eddsa, Edwards-Curve Digital Signature Algorithm, status = draft, code = 0xd0ed */ + /** Varsig: eddsa, Edwards-Curve Digital Signature Algorithm, status = Draft, code = 0xd0ed */ public static final Multicodec EDDSA = Multicodec.of("eddsa", Tag.Varsig, 0xd0ed); - /** Varsig: eip-191, EIP-191 Ethereum Signed Data Standard, status = draft, code = 0xd191 */ + /** Varsig: eip-191, EIP-191 Ethereum Signed Data Standard, status = Draft, code = 0xd191 */ public static final Multicodec EIP_191 = Multicodec.of("eip-191", Tag.Varsig, 0xd191); - /** Varsig: es256, ES256 Signature Algorithm, status = draft, code = 0xd01200 */ + /** Varsig: es256, ES256 Signature Algorithm, status = Draft, code = 0xd01200 */ public static final Multicodec ES256 = Multicodec.of("es256", Tag.Varsig, 0xd01200); - /** Varsig: es256k, ES256K Siganture Algorithm (secp256k1), status = draft, code = 0xd0e7 */ + /** Varsig: es256k, ES256K Siganture Algorithm (secp256k1), status = Draft, code = 0xd0e7 */ public static final Multicodec ES256K = Multicodec.of("es256k", Tag.Varsig, 0xd0e7); - /** Varsig: es284, ES384 Signature Algorithm, status = draft, code = 0xd01201 */ + /** Varsig: es284, ES384 Signature Algorithm, status = Draft, code = 0xd01201 */ public static final Multicodec ES284 = Multicodec.of("es284", Tag.Varsig, 0xd01201); - /** Varsig: es512, ES512 Signature Algorithm, status = draft, code = 0xd01202 */ + /** Varsig: es512, ES512 Signature Algorithm, status = Draft, code = 0xd01202 */ public static final Multicodec ES512 = Multicodec.of("es512", Tag.Varsig, 0xd01202); - /** Varsig: nonstandard-sig, Namespace for all not yet standard signature algorithms, status = deprecated, code = 0xd000 */ + /** Varsig: nonstandard-sig, Namespace for all not yet standard signature algorithms, status = Deprecated, code = 0xd000 */ public static final Multicodec NONSTANDARD_SIG = Multicodec.of("nonstandard-sig", Tag.Varsig, 0xd000); - /** Varsig: rs256, RS256 Signature Algorithm, status = draft, code = 0xd01205 */ + /** Varsig: rs256, RS256 Signature Algorithm, status = Draft, code = 0xd01205 */ public static final Multicodec RS256 = Multicodec.of("rs256", Tag.Varsig, 0xd01205); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multihash/Multihash.java b/src/main/java/com/apicatalog/multihash/Multihash.java index 6f10dba..1fbb092 100644 --- a/src/main/java/com/apicatalog/multihash/Multihash.java +++ b/src/main/java/com/apicatalog/multihash/Multihash.java @@ -13,12 +13,16 @@ */ public class Multihash extends Multicodec { - protected Multihash(String name, long code, byte[] uvarint) { - super(name, Tag.Multihash, code, uvarint); + protected Multihash(String name, long code, byte[] uvarint, Status status) { + super(name, Tag.Multihash, code, uvarint, status); } public static Multihash of(String name, long code) { - return new Multihash(name, code, UVarInt.encode(code)); + return of(name, code, null); + } + + public static Multihash of(String name, long code, Status status) { + return new Multihash(name, code, UVarInt.encode(code), status); } /** @@ -77,20 +81,8 @@ public byte[] decode(byte[] encoded) { return Arrays.copyOfRange(encoded, codeVarint.length + sizeVarintLength, encoded.length); } - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Multihash other = (Multihash) obj; - return code == other.code; - } - @Override public String toString() { - return "Multihash [name=" + name + ", code=" + code + ", varint=" + Arrays.toString(codeVarint) + "]"; + return "Multihash [name=" + name + ", code=" + code + "]"; } } diff --git a/src/main/java/com/apicatalog/uvarint/UVarInt.java b/src/main/java/com/apicatalog/uvarint/UVarInt.java index e851b8a..f6c1dac 100644 --- a/src/main/java/com/apicatalog/uvarint/UVarInt.java +++ b/src/main/java/com/apicatalog/uvarint/UVarInt.java @@ -22,16 +22,24 @@ public static final byte[] encode(final long value) { } byte[] uintvar = new byte[length]; + + writeEncoded(value, uintvar, 0); + + return uintvar; + } + + public static final void writeEncoded(final long value, byte[] uintvar, int index) { + int offset = 0; long bytes = value; boolean next = false; do { if (next) { - uintvar[offset - 1] |= UVarInt.CONTINUE_BIT; + uintvar[offset + index - 1] |= UVarInt.CONTINUE_BIT; } - uintvar[offset] = (byte) (bytes & UVarInt.SEGMENT_BITS); + uintvar[offset + index] = (byte) (bytes & UVarInt.SEGMENT_BITS); bytes >>>= 7; @@ -41,7 +49,6 @@ public static final byte[] encode(final long value) { } while (next); - return uintvar; } public static final long decode(final byte[] uvarint) { diff --git a/src/test/java/com/apicatalog/multicodec/MulticodecTest.java b/src/test/java/com/apicatalog/multicodec/MulticodecTest.java index c5e3a76..345a536 100644 --- a/src/test/java/com/apicatalog/multicodec/MulticodecTest.java +++ b/src/test/java/com/apicatalog/multicodec/MulticodecTest.java @@ -13,20 +13,20 @@ class MulticodecTest { @Test void testIsEncoded() { - final Multicodec codec = new Multicodec("test-hash", Tag.Hash, 123l, UVarInt.encode(123l)); + final Multicodec codec = Multicodec.of("test-hash", Tag.Hash, 123l); assertTrue(codec.isEncoded(UVarInt.encode(123l))); assertFalse(codec.isEncoded(UVarInt.encode(124l))); } @Test void testEncode() { - final Multicodec codec = new Multicodec("test-hash", Tag.Hash, 123l, UVarInt.encode(123l)); + final Multicodec codec = Multicodec.of("test-hash", Tag.Hash, 123l); assertArrayEquals(new byte[] { 0x7b, 0x48, 0x65, 0x6C, 0x6C, 0x6F }, codec.encode("Hello".getBytes())); } @Test void testDecode() { - final Multicodec codec = new Multicodec("test-hash", Tag.Hash, 123l, UVarInt.encode(123l)); + final Multicodec codec = Multicodec.of("test-hash", Tag.Hash, 123l); assertArrayEquals("Hello".getBytes(), codec.decode(new byte[] { 0x7b, 0x48, 0x65, 0x6C, 0x6C, 0x6F })); } From 0d9ef625cd8b441d0ad97d017f56cdeddbc2ed65 Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 15:48:01 +0200 Subject: [PATCH 05/11] Minor code improvements --- .../java/com/apicatalog/multicodec/CodecTag.java | 14 +++++++------- .../java/com/apicatalog/multicodec/Multicodec.java | 8 +++----- .../apicatalog/multicodec/MulticodecDecoder.java | 5 ++--- .../java/com/apicatalog/multihash/Multihash.java | 4 +--- src/main/java/com/apicatalog/uvarint/UVarInt.java | 6 +++--- 5 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/gen/java/com/apicatalog/multicodec/CodecTag.java b/src/gen/java/com/apicatalog/multicodec/CodecTag.java index 2e88803..66846c2 100644 --- a/src/gen/java/com/apicatalog/multicodec/CodecTag.java +++ b/src/gen/java/com/apicatalog/multicodec/CodecTag.java @@ -11,7 +11,7 @@ import java.util.stream.Stream; public class CodecTag { - + public static void generate(final String tag, final String className, final Class clazz) throws IOException { try (final Stream stream = Files.lines(Paths.get("table.csv")) @@ -29,7 +29,7 @@ public static void generate(final String tag, final String className, final Clas writer.print(clazz.getCanonicalName()); writer.println(";"); if (Multicodec.class.equals(clazz)) { - writer.println("import com.apicatalog.multicodec.Multicodec.Tag;"); + writer.println("import com.apicatalog.multicodec.Multicodec.Tag;"); } writer.println(); writer.print("/** Multicodec Registry - generated: "); @@ -39,7 +39,7 @@ public static void generate(final String tag, final String className, final Clas writer.print(className); writer.println(" {"); writer.println(); - + Collection defs = stream .filter(columns -> tag.equals(columns[1].trim())) .map(CodecDef::from) @@ -51,11 +51,11 @@ public static void generate(final String tag, final String className, final Clas def.writeCode(writer, clazz); writer.println(); }); - + writer.print(" protected static final Map ALL = new TreeMap<>();"); - writer.println(); + writer.println(); writer.println(" static {"); defs.forEach(def -> { @@ -65,10 +65,10 @@ public static void generate(final String tag, final String className, final Clas writer.print(def.getJavaName()); writer.println(");"); }); - + writer.println(" }"); writer.println(); - + writer.print(" protected "); writer.print(className); writer.println("() { /* protected */ }"); diff --git a/src/main/java/com/apicatalog/multicodec/Multicodec.java b/src/main/java/com/apicatalog/multicodec/Multicodec.java index dbe0594..660f959 100644 --- a/src/main/java/com/apicatalog/multicodec/Multicodec.java +++ b/src/main/java/com/apicatalog/multicodec/Multicodec.java @@ -35,7 +35,7 @@ public enum Status { Draft, Permanent, } - + protected final String name; protected final byte[] codeVarint; protected final long code; @@ -81,7 +81,7 @@ public long code() { public Status status() { return status; } - + /** * Encode a value with a codec. * @@ -92,9 +92,7 @@ public Status status() { */ public byte[] encode(final byte[] value) { - if (value == null) { - throw new IllegalArgumentException("The value to encdode must not be null."); - } + Objects.requireNonNull(value); if (value.length == 0) { throw new IllegalArgumentException("The value to encode must be non empty byte array."); diff --git a/src/main/java/com/apicatalog/multicodec/MulticodecDecoder.java b/src/main/java/com/apicatalog/multicodec/MulticodecDecoder.java index fee458c..4a9dac0 100644 --- a/src/main/java/com/apicatalog/multicodec/MulticodecDecoder.java +++ b/src/main/java/com/apicatalog/multicodec/MulticodecDecoder.java @@ -1,5 +1,6 @@ package com.apicatalog.multicodec; +import java.util.Objects; import java.util.Optional; import com.apicatalog.multicodec.Multicodec.Tag; @@ -54,9 +55,7 @@ public static MulticodecDecoder getInstance() { */ public Optional getCodec(final byte[] encoded) { - if (encoded == null) { - throw new IllegalArgumentException("The encoded value must not be null."); - } + Objects.requireNonNull(encoded); if (encoded.length == 0) { throw new IllegalArgumentException("The encoded value be non empty byte array."); diff --git a/src/main/java/com/apicatalog/multihash/Multihash.java b/src/main/java/com/apicatalog/multihash/Multihash.java index 1fbb092..dc14365 100644 --- a/src/main/java/com/apicatalog/multihash/Multihash.java +++ b/src/main/java/com/apicatalog/multihash/Multihash.java @@ -36,9 +36,7 @@ public static Multihash of(String name, long code, Status status) { @Override public byte[] encode(final byte[] value) { - if (value == null) { - throw new IllegalArgumentException("The value to encdode must not be null."); - } + Objects.requireNonNull(value); if (value.length == 0) { throw new IllegalArgumentException("The value to encode must be non empty byte array."); diff --git a/src/main/java/com/apicatalog/uvarint/UVarInt.java b/src/main/java/com/apicatalog/uvarint/UVarInt.java index f6c1dac..4ea790f 100644 --- a/src/main/java/com/apicatalog/uvarint/UVarInt.java +++ b/src/main/java/com/apicatalog/uvarint/UVarInt.java @@ -22,9 +22,9 @@ public static final byte[] encode(final long value) { } byte[] uintvar = new byte[length]; - + writeEncoded(value, uintvar, 0); - + return uintvar; } @@ -54,7 +54,7 @@ public static final void writeEncoded(final long value, byte[] uintvar, int inde public static final long decode(final byte[] uvarint) { return decode(uvarint, 0); } - + public static final long decode(final byte[] uvarint, int index) { int offset = 0; From eb71ec241c6a0e1ab3efaaad9a72e5cfac9b91de Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 15:57:44 +0200 Subject: [PATCH 06/11] Add an index to decode API --- .../com/apicatalog/multicodec/Multicodec.java | 19 +++++- .../com/apicatalog/multihash/Multihash.java | 14 ++--- .../java/com/apicatalog/uvarint/UVarInt.java | 62 ++++++++++++++----- 3 files changed, 68 insertions(+), 27 deletions(-) diff --git a/src/main/java/com/apicatalog/multicodec/Multicodec.java b/src/main/java/com/apicatalog/multicodec/Multicodec.java index 660f959..95346ba 100644 --- a/src/main/java/com/apicatalog/multicodec/Multicodec.java +++ b/src/main/java/com/apicatalog/multicodec/Multicodec.java @@ -128,18 +128,31 @@ public boolean isEncoded(final byte[] encoded) { * @throws IllegalArgumentException if the encoded value cannot be decoded */ public byte[] decode(final byte[] encoded) { + return decode(encoded, 0); + } + + /** + * Decode an encoded value + * + * @param encoded value to decode + * @param index an index from which to start (included) + * @return a decoded value + * + * @throws IllegalArgumentException if the encoded value cannot be decoded + */ + public byte[] decode(final byte[] encoded, final int index) { Objects.requireNonNull(encoded); - if (encoded.length < (codeVarint.length + 1)) { + if ((encoded.length - index) < (codeVarint.length + 1)) { throw new IllegalArgumentException("The value to decode must be non empty byte array, min length = " + (codeVarint.length + 1) + ", actual = " + encoded.length + "."); } - if (!IntStream.range(0, codeVarint.length).allMatch(i -> codeVarint[i] == encoded[i])) { + if (!IntStream.range(0, codeVarint.length).allMatch(i -> codeVarint[i] == encoded[i + index])) { throw new IllegalArgumentException("The value to decode is not encoded with " + toString() + "."); } - return Arrays.copyOfRange(encoded, codeVarint.length, encoded.length); + return Arrays.copyOfRange(encoded, index + codeVarint.length, encoded.length - index); } @Override diff --git a/src/main/java/com/apicatalog/multihash/Multihash.java b/src/main/java/com/apicatalog/multihash/Multihash.java index dc14365..2aabda2 100644 --- a/src/main/java/com/apicatalog/multihash/Multihash.java +++ b/src/main/java/com/apicatalog/multihash/Multihash.java @@ -54,29 +54,29 @@ public byte[] encode(final byte[] value) { } @Override - public byte[] decode(byte[] encoded) { + public byte[] decode(byte[] encoded, int index) { Objects.requireNonNull(encoded); - if (encoded.length < (codeVarint.length + 2)) { + if ((encoded.length - index) < (codeVarint.length + 2)) { throw new IllegalArgumentException("The value to decode must be non empty byte array, min length = " + (codeVarint.length + 2) + ", actual = " + encoded.length + "."); } - if (!IntStream.range(0, codeVarint.length).allMatch(i -> codeVarint[i] == encoded[i])) { + if (!IntStream.range(0, codeVarint.length).allMatch(i -> codeVarint[i] == encoded[i + index])) { throw new IllegalArgumentException("The value to decode is not encoded with " + toString() + "."); } // digest size - long size = UVarInt.decode(encoded, codeVarint.length); + long size = UVarInt.decode(encoded, index + codeVarint.length); int sizeVarintLength = UVarInt.byteLength(size); - if (size != (encoded.length - codeVarint.length - sizeVarintLength)) { + if (size != (encoded.length - index - codeVarint.length - sizeVarintLength)) { throw new IllegalArgumentException( - "The declared digest size = " + size + " and the actual hash digest size = " + (encoded.length - codeVarint.length - sizeVarintLength) + " do not match."); + "The declared digest size = " + size + " and the actual hash digest size = " + (encoded.length - index - codeVarint.length - sizeVarintLength) + " do not match."); } // digest - return Arrays.copyOfRange(encoded, codeVarint.length + sizeVarintLength, encoded.length); + return Arrays.copyOfRange(encoded, index + codeVarint.length + sizeVarintLength, encoded.length - index); } @Override diff --git a/src/main/java/com/apicatalog/uvarint/UVarInt.java b/src/main/java/com/apicatalog/uvarint/UVarInt.java index 4ea790f..9114c4f 100644 --- a/src/main/java/com/apicatalog/uvarint/UVarInt.java +++ b/src/main/java/com/apicatalog/uvarint/UVarInt.java @@ -9,6 +9,18 @@ public final class UVarInt { public static final int CONTINUE_BIT = 0x80; public static final int INT_OVERFLOW_BITS = 0x70; + protected static long[] MAX_VALUES = { + 0x7FL, + 0x3FFFL, + 0x1FFFFFL, + 0xFFFFFFFL, + 0x7FFFFFFFFL, + 0x3FFFFFFFFFFL, + 0x1FFFFFFFFFFFFL, + 0xFFFFFFFFFFFFFFL, + 0x7FFFFFFFFFFFFFFFL + }; + protected UVarInt() { /* protected */ } @@ -21,14 +33,14 @@ public static final byte[] encode(final long value) { return new byte[] { (byte) value }; } - byte[] uintvar = new byte[length]; + byte[] uvarint = new byte[length]; - writeEncoded(value, uintvar, 0); + write(value, uvarint, 0); - return uintvar; + return uvarint; } - public static final void writeEncoded(final long value, byte[] uintvar, int index) { + public static final void write(final long value, final byte[] uvarint, final int index) { int offset = 0; long bytes = value; @@ -36,10 +48,10 @@ public static final void writeEncoded(final long value, byte[] uintvar, int inde boolean next = false; do { if (next) { - uintvar[offset + index - 1] |= UVarInt.CONTINUE_BIT; + uvarint[offset + index - 1] |= UVarInt.CONTINUE_BIT; } - uintvar[offset + index] = (byte) (bytes & UVarInt.SEGMENT_BITS); + uvarint[offset + index] = (byte) (bytes & UVarInt.SEGMENT_BITS); bytes >>>= 7; @@ -83,17 +95,33 @@ public static final long decode(final byte[] uvarint, int index) { return value; } - protected static long[] MAX_VALUES = { - 0x7FL, - 0x3FFFL, - 0x1FFFFFL, - 0xFFFFFFFL, - 0x7FFFFFFFFL, - 0x3FFFFFFFFFFL, - 0x1FFFFFFFFFFFFL, - 0xFFFFFFFFFFFFFFL, - 0x7FFFFFFFFFFFFFFFL - }; + public static final long read(final byte[] uvarint, int index) { + + int offset = 0; + + boolean next = false; + long value = 0; + + do { + if (offset >= UVarInt.MAX_VAR_LENGTH) { + throw new IllegalArgumentException("uintvar longer than " + UVarInt.MAX_VAR_LENGTH + " has been found. Only uintvar up to " + UVarInt.MAX_VAR_LENGTH + " are supported."); + } + if (offset >= uvarint.length) { + throw new IllegalArgumentException("The input stream has ended unexpectedly, a next byte is expected."); + } + + int b = uvarint[offset + index]; + + value |= (long) (b & UVarInt.SEGMENT_BITS) << (offset * 7); + + next = ((b & UVarInt.CONTINUE_BIT) != 0); + + offset++; + + } while (next); + + return value; + } public static final int byteLength(long value) { if (value <= MAX_VALUES[0]) { From 074502069119a7de475ee61af902b048ca203610 Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 15:58:45 +0200 Subject: [PATCH 07/11] Update description --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a8628bd..e441dd4 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ Copper Multcodec - Multicodec API + Multicodec & Multihash API, Registry From 93f3926e7ce5929ec3dedcc29bc6ac98ac463713 Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 16:13:08 +0200 Subject: [PATCH 08/11] Remove redundant method --- .../java/com/apicatalog/uvarint/UVarInt.java | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/src/main/java/com/apicatalog/uvarint/UVarInt.java b/src/main/java/com/apicatalog/uvarint/UVarInt.java index 9114c4f..16ae622 100644 --- a/src/main/java/com/apicatalog/uvarint/UVarInt.java +++ b/src/main/java/com/apicatalog/uvarint/UVarInt.java @@ -95,34 +95,6 @@ public static final long decode(final byte[] uvarint, int index) { return value; } - public static final long read(final byte[] uvarint, int index) { - - int offset = 0; - - boolean next = false; - long value = 0; - - do { - if (offset >= UVarInt.MAX_VAR_LENGTH) { - throw new IllegalArgumentException("uintvar longer than " + UVarInt.MAX_VAR_LENGTH + " has been found. Only uintvar up to " + UVarInt.MAX_VAR_LENGTH + " are supported."); - } - if (offset >= uvarint.length) { - throw new IllegalArgumentException("The input stream has ended unexpectedly, a next byte is expected."); - } - - int b = uvarint[offset + index]; - - value |= (long) (b & UVarInt.SEGMENT_BITS) << (offset * 7); - - next = ((b & UVarInt.CONTINUE_BIT) != 0); - - offset++; - - } while (next); - - return value; - } - public static final int byteLength(long value) { if (value <= MAX_VALUES[0]) { return 1; From 00fdbca32fecf178c4f8c6c0ccd609d6a4ca71de Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 16:16:26 +0200 Subject: [PATCH 09/11] Fix Multicodec::of --- src/main/java/com/apicatalog/multicodec/Multicodec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/apicatalog/multicodec/Multicodec.java b/src/main/java/com/apicatalog/multicodec/Multicodec.java index 95346ba..94a4efa 100644 --- a/src/main/java/com/apicatalog/multicodec/Multicodec.java +++ b/src/main/java/com/apicatalog/multicodec/Multicodec.java @@ -51,7 +51,7 @@ protected Multicodec(String name, Tag tag, long code, byte[] uvarint, Status sta } public static Multicodec of(String name, Tag tag, long code) { - return of(name, tag, code); + return of(name, tag, code, null); } public static Multicodec of(String name, Tag tag, long code, Status status) { From 10598d739d972e59c803ae580f77e4f6e7d5fb5f Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 16:24:01 +0200 Subject: [PATCH 10/11] Update codecs of status code --- .../com/apicatalog/multicodec/CodecDef.java | 8 +- .../apicatalog/multicodec/codec/CidCodec.java | 14 +- .../multicodec/codec/HashCodec.java | 42 +- .../apicatalog/multicodec/codec/KeyCodec.java | 178 +-- .../multicodec/codec/MultiaddrCodec.java | 178 +-- .../multicodec/codec/MultiformatCodec.java | 38 +- .../multicodec/codec/MultihashCodec.java | 1422 ++++++++--------- .../multicodec/codec/NamespaceCodec.java | 54 +- .../multicodec/codec/SerializationCodec.java | 50 +- .../multicodec/codec/TransportCodec.java | 14 +- .../multicodec/codec/VarsigCodec.java | 42 +- 11 files changed, 1023 insertions(+), 1017 deletions(-) diff --git a/src/gen/java/com/apicatalog/multicodec/CodecDef.java b/src/gen/java/com/apicatalog/multicodec/CodecDef.java index cf77735..20fa28c 100644 --- a/src/gen/java/com/apicatalog/multicodec/CodecDef.java +++ b/src/gen/java/com/apicatalog/multicodec/CodecDef.java @@ -59,11 +59,17 @@ public final void writeCode(PrintWriter writer, Class clazz) { writer.print(name); writer.print("\", "); if (Multicodec.class.equals(clazz)) { - writer.print(" Tag."); + writer.print("Tag."); writer.print(tag.name()); writer.print(", "); } writer.print(String.format("0x%x", code)); + if (status != null) { + writer.print(", "); + writer.print(clazz.getSimpleName()); + writer.print(".Status."); + writer.print(status); + } writer.println(");"); } diff --git a/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java b/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java index 38bb9b8..4687b29 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java @@ -6,17 +6,17 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class CidCodec { - /** Cid: cidv1, CIDv1, status = Permanent, code = 0x1 */ - public static final Multicodec CIDV1 = Multicodec.of("cidv1", Tag.Cid, 0x1); + /** Cid: cidv1, CIDv1, status = permanent, code = 0x1 */ + public static final Multicodec CIDV1 = Multicodec.of("cidv1", Tag.Cid, 0x1, Multicodec.Status.Permanent); - /** Cid: cidv2, CIDv2, status = Draft, code = 0x2 */ - public static final Multicodec CIDV2 = Multicodec.of("cidv2", Tag.Cid, 0x2); + /** Cid: cidv2, CIDv2, status = draft, code = 0x2 */ + public static final Multicodec CIDV2 = Multicodec.of("cidv2", Tag.Cid, 0x2, Multicodec.Status.Draft); - /** Cid: cidv3, CIDv3, status = Draft, code = 0x3 */ - public static final Multicodec CIDV3 = Multicodec.of("cidv3", Tag.Cid, 0x3); + /** Cid: cidv3, CIDv3, status = draft, code = 0x3 */ + public static final Multicodec CIDV3 = Multicodec.of("cidv3", Tag.Cid, 0x3, Multicodec.Status.Draft); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java b/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java index e7a6ccd..654bf0e 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java @@ -6,38 +6,38 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class HashCodec { - /** Hash: crc32, CRC-32 non-cryptographic hash algorithm (IEEE 802.3), status = Draft, code = 0x132 */ - public static final Multicodec CRC32 = Multicodec.of("crc32", Tag.Hash, 0x132); + /** Hash: crc32, CRC-32 non-cryptographic hash algorithm (IEEE 802.3), status = draft, code = 0x132 */ + public static final Multicodec CRC32 = Multicodec.of("crc32", Tag.Hash, 0x132, Multicodec.Status.Draft); - /** Hash: crc64-ecma, CRC-64 non-cryptographic hash algorithm (ECMA-182 - Annex B), status = Draft, code = 0x164 */ - public static final Multicodec CRC64_ECMA = Multicodec.of("crc64-ecma", Tag.Hash, 0x164); + /** Hash: crc64-ecma, CRC-64 non-cryptographic hash algorithm (ECMA-182 - Annex B), status = draft, code = 0x164 */ + public static final Multicodec CRC64_ECMA = Multicodec.of("crc64-ecma", Tag.Hash, 0x164, Multicodec.Status.Draft); - /** Hash: murmur3-32, status = Draft, code = 0x23 */ - public static final Multicodec MURMUR3_32 = Multicodec.of("murmur3-32", Tag.Hash, 0x23); + /** Hash: murmur3-32, status = draft, code = 0x23 */ + public static final Multicodec MURMUR3_32 = Multicodec.of("murmur3-32", Tag.Hash, 0x23, Multicodec.Status.Draft); - /** Hash: murmur3-x64-128, status = Draft, code = 0x1022 */ - public static final Multicodec MURMUR3_X64_128 = Multicodec.of("murmur3-x64-128", Tag.Hash, 0x1022); + /** Hash: murmur3-x64-128, status = draft, code = 0x1022 */ + public static final Multicodec MURMUR3_X64_128 = Multicodec.of("murmur3-x64-128", Tag.Hash, 0x1022, Multicodec.Status.Draft); - /** Hash: murmur3-x64-64, The first 64-bits of a murmur3-x64-128 - used for UnixFS directory sharding., status = Permanent, code = 0x22 */ - public static final Multicodec MURMUR3_X64_64 = Multicodec.of("murmur3-x64-64", Tag.Hash, 0x22); + /** Hash: murmur3-x64-64, The first 64-bits of a murmur3-x64-128 - used for UnixFS directory sharding., status = permanent, code = 0x22 */ + public static final Multicodec MURMUR3_X64_64 = Multicodec.of("murmur3-x64-64", Tag.Hash, 0x22, Multicodec.Status.Permanent); - /** Hash: sha256a, The sum of multiple sha2-256 hashes; as specified by Ceramic CIP-124., status = Draft, code = 0x7012 */ - public static final Multicodec SHA256A = Multicodec.of("sha256a", Tag.Hash, 0x7012); + /** Hash: sha256a, The sum of multiple sha2-256 hashes; as specified by Ceramic CIP-124., status = draft, code = 0x7012 */ + public static final Multicodec SHA256A = Multicodec.of("sha256a", Tag.Hash, 0x7012, Multicodec.Status.Draft); - /** Hash: xxh-32, Extremely fast non-cryptographic hash algorithm, status = Draft, code = 0xb3e1 */ - public static final Multicodec XXH_32 = Multicodec.of("xxh-32", Tag.Hash, 0xb3e1); + /** Hash: xxh-32, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e1 */ + public static final Multicodec XXH_32 = Multicodec.of("xxh-32", Tag.Hash, 0xb3e1, Multicodec.Status.Draft); - /** Hash: xxh-64, Extremely fast non-cryptographic hash algorithm, status = Draft, code = 0xb3e2 */ - public static final Multicodec XXH_64 = Multicodec.of("xxh-64", Tag.Hash, 0xb3e2); + /** Hash: xxh-64, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e2 */ + public static final Multicodec XXH_64 = Multicodec.of("xxh-64", Tag.Hash, 0xb3e2, Multicodec.Status.Draft); - /** Hash: xxh3-128, Extremely fast non-cryptographic hash algorithm, status = Draft, code = 0xb3e4 */ - public static final Multicodec XXH3_128 = Multicodec.of("xxh3-128", Tag.Hash, 0xb3e4); + /** Hash: xxh3-128, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e4 */ + public static final Multicodec XXH3_128 = Multicodec.of("xxh3-128", Tag.Hash, 0xb3e4, Multicodec.Status.Draft); - /** Hash: xxh3-64, Extremely fast non-cryptographic hash algorithm, status = Draft, code = 0xb3e3 */ - public static final Multicodec XXH3_64 = Multicodec.of("xxh3-64", Tag.Hash, 0xb3e3); + /** Hash: xxh3-64, Extremely fast non-cryptographic hash algorithm, status = draft, code = 0xb3e3 */ + public static final Multicodec XXH3_64 = Multicodec.of("xxh3-64", Tag.Hash, 0xb3e3, Multicodec.Status.Draft); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java b/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java index f7914ff..ab91b0b 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java @@ -6,140 +6,140 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class KeyCodec { - /** Key: aes-128, 128-bit AES symmetric key, status = Draft, code = 0xa0 */ - public static final Multicodec AES_128_KEY = Multicodec.of("aes-128", Tag.Key, 0xa0); + /** Key: aes-128, 128-bit AES symmetric key, status = draft, code = 0xa0 */ + public static final Multicodec AES_128_KEY = Multicodec.of("aes-128", Tag.Key, 0xa0, Multicodec.Status.Draft); - /** Key: aes-192, 192-bit AES symmetric key, status = Draft, code = 0xa1 */ - public static final Multicodec AES_192_KEY = Multicodec.of("aes-192", Tag.Key, 0xa1); + /** Key: aes-192, 192-bit AES symmetric key, status = draft, code = 0xa1 */ + public static final Multicodec AES_192_KEY = Multicodec.of("aes-192", Tag.Key, 0xa1, Multicodec.Status.Draft); - /** Key: aes-256, 256-bit AES symmetric key, status = Draft, code = 0xa2 */ - public static final Multicodec AES_256_KEY = Multicodec.of("aes-256", Tag.Key, 0xa2); + /** Key: aes-256, 256-bit AES symmetric key, status = draft, code = 0xa2 */ + public static final Multicodec AES_256_KEY = Multicodec.of("aes-256", Tag.Key, 0xa2, Multicodec.Status.Draft); - /** Key: bls12_381-g1-priv, BLS12-381 G1 private key, status = Draft, code = 0x1309 */ - public static final Multicodec BLS12_381_G1_PRIVATE_KEY = Multicodec.of("bls12_381-g1-priv", Tag.Key, 0x1309); + /** Key: bls12_381-g1-priv, BLS12-381 G1 private key, status = draft, code = 0x1309 */ + public static final Multicodec BLS12_381_G1_PRIVATE_KEY = Multicodec.of("bls12_381-g1-priv", Tag.Key, 0x1309, Multicodec.Status.Draft); - /** Key: bls12_381-g1-priv-share, BLS12-381 G1 private key share, status = Draft, code = 0x130e */ - public static final Multicodec BLS12_381_G1_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g1-priv-share", Tag.Key, 0x130e); + /** Key: bls12_381-g1-priv-share, BLS12-381 G1 private key share, status = draft, code = 0x130e */ + public static final Multicodec BLS12_381_G1_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g1-priv-share", Tag.Key, 0x130e, Multicodec.Status.Draft); - /** Key: bls12_381-g1-pub, BLS12-381 public key in the G1 field, status = Draft, code = 0xea */ - public static final Multicodec BLS12_381_G1_PUBLIC_KEY = Multicodec.of("bls12_381-g1-pub", Tag.Key, 0xea); + /** Key: bls12_381-g1-pub, BLS12-381 public key in the G1 field, status = draft, code = 0xea */ + public static final Multicodec BLS12_381_G1_PUBLIC_KEY = Multicodec.of("bls12_381-g1-pub", Tag.Key, 0xea, Multicodec.Status.Draft); - /** Key: bls12_381-g1-pub-share, BLS12-381 G1 public key share, status = Draft, code = 0x130c */ - public static final Multicodec BLS12_381_G1_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g1-pub-share", Tag.Key, 0x130c); + /** Key: bls12_381-g1-pub-share, BLS12-381 G1 public key share, status = draft, code = 0x130c */ + public static final Multicodec BLS12_381_G1_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g1-pub-share", Tag.Key, 0x130c, Multicodec.Status.Draft); - /** Key: bls12_381-g1g2-priv, BLS12-381 G1 and G2 private key, status = Draft, code = 0x130b */ - public static final Multicodec BLS12_381_G1G2_PRIVATE_KEY = Multicodec.of("bls12_381-g1g2-priv", Tag.Key, 0x130b); + /** Key: bls12_381-g1g2-priv, BLS12-381 G1 and G2 private key, status = draft, code = 0x130b */ + public static final Multicodec BLS12_381_G1G2_PRIVATE_KEY = Multicodec.of("bls12_381-g1g2-priv", Tag.Key, 0x130b, Multicodec.Status.Draft); - /** Key: bls12_381-g1g2-pub, BLS12-381 concatenated public keys in both the G1 and G2 fields, status = Draft, code = 0xee */ - public static final Multicodec BLS12_381_G1G2_PUBLIC_KEY = Multicodec.of("bls12_381-g1g2-pub", Tag.Key, 0xee); + /** Key: bls12_381-g1g2-pub, BLS12-381 concatenated public keys in both the G1 and G2 fields, status = draft, code = 0xee */ + public static final Multicodec BLS12_381_G1G2_PUBLIC_KEY = Multicodec.of("bls12_381-g1g2-pub", Tag.Key, 0xee, Multicodec.Status.Draft); - /** Key: bls12_381-g2-priv, BLS12-381 G2 private key, status = Draft, code = 0x130a */ - public static final Multicodec BLS12_381_G2_PRIVATE_KEY = Multicodec.of("bls12_381-g2-priv", Tag.Key, 0x130a); + /** Key: bls12_381-g2-priv, BLS12-381 G2 private key, status = draft, code = 0x130a */ + public static final Multicodec BLS12_381_G2_PRIVATE_KEY = Multicodec.of("bls12_381-g2-priv", Tag.Key, 0x130a, Multicodec.Status.Draft); - /** Key: bls12_381-g2-priv-share, BLS12-381 G2 private key share, status = Draft, code = 0x130f */ - public static final Multicodec BLS12_381_G2_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g2-priv-share", Tag.Key, 0x130f); + /** Key: bls12_381-g2-priv-share, BLS12-381 G2 private key share, status = draft, code = 0x130f */ + public static final Multicodec BLS12_381_G2_PRIVATE_SHARE_KEY = Multicodec.of("bls12_381-g2-priv-share", Tag.Key, 0x130f, Multicodec.Status.Draft); - /** Key: bls12_381-g2-pub, BLS12-381 public key in the G2 field, status = Draft, code = 0xeb */ - public static final Multicodec BLS12_381_G2_PUBLIC_KEY = Multicodec.of("bls12_381-g2-pub", Tag.Key, 0xeb); + /** Key: bls12_381-g2-pub, BLS12-381 public key in the G2 field, status = draft, code = 0xeb */ + public static final Multicodec BLS12_381_G2_PUBLIC_KEY = Multicodec.of("bls12_381-g2-pub", Tag.Key, 0xeb, Multicodec.Status.Draft); - /** Key: bls12_381-g2-pub-share, BLS12-381 G2 public key share, status = Draft, code = 0x130d */ - public static final Multicodec BLS12_381_G2_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g2-pub-share", Tag.Key, 0x130d); + /** Key: bls12_381-g2-pub-share, BLS12-381 G2 public key share, status = draft, code = 0x130d */ + public static final Multicodec BLS12_381_G2_PUBLIC_SHARE_KEY = Multicodec.of("bls12_381-g2-pub-share", Tag.Key, 0x130d, Multicodec.Status.Draft); - /** Key: chacha-128, 128-bit ChaCha symmetric key, status = Draft, code = 0xa3 */ - public static final Multicodec CHACHA_128_KEY = Multicodec.of("chacha-128", Tag.Key, 0xa3); + /** Key: chacha-128, 128-bit ChaCha symmetric key, status = draft, code = 0xa3 */ + public static final Multicodec CHACHA_128_KEY = Multicodec.of("chacha-128", Tag.Key, 0xa3, Multicodec.Status.Draft); - /** Key: chacha-256, 256-bit ChaCha symmetric key, status = Draft, code = 0xa4 */ - public static final Multicodec CHACHA_256_KEY = Multicodec.of("chacha-256", Tag.Key, 0xa4); + /** Key: chacha-256, 256-bit ChaCha symmetric key, status = draft, code = 0xa4 */ + public static final Multicodec CHACHA_256_KEY = Multicodec.of("chacha-256", Tag.Key, 0xa4, Multicodec.Status.Draft); - /** Key: ed25519-priv, Ed25519 private key, status = Draft, code = 0x1300 */ - public static final Multicodec ED25519_PRIVATE_KEY = Multicodec.of("ed25519-priv", Tag.Key, 0x1300); + /** Key: ed25519-priv, Ed25519 private key, status = draft, code = 0x1300 */ + public static final Multicodec ED25519_PRIVATE_KEY = Multicodec.of("ed25519-priv", Tag.Key, 0x1300, Multicodec.Status.Draft); - /** Key: ed25519-pub, Ed25519 public key, status = Draft, code = 0xed */ - public static final Multicodec ED25519_PUBLIC_KEY = Multicodec.of("ed25519-pub", Tag.Key, 0xed); + /** Key: ed25519-pub, Ed25519 public key, status = draft, code = 0xed */ + public static final Multicodec ED25519_PUBLIC_KEY = Multicodec.of("ed25519-pub", Tag.Key, 0xed, Multicodec.Status.Draft); - /** Key: ed448-pub, Ed448 public Key, status = Draft, code = 0x1203 */ - public static final Multicodec ED448_PUBLIC_KEY = Multicodec.of("ed448-pub", Tag.Key, 0x1203); + /** Key: ed448-pub, Ed448 public Key, status = draft, code = 0x1203 */ + public static final Multicodec ED448_PUBLIC_KEY = Multicodec.of("ed448-pub", Tag.Key, 0x1203, Multicodec.Status.Draft); - /** Key: jwk_jcs-pub, JSON object containing only the required members of a JWK (RFC 7518 and RFC 7517) representing the public key. Serialisation based on JCS (RFC 8785), status = Draft, code = 0xeb51 */ - public static final Multicodec JWK_JCS_PUBLIC_KEY = Multicodec.of("jwk_jcs-pub", Tag.Key, 0xeb51); + /** Key: jwk_jcs-pub, JSON object containing only the required members of a JWK (RFC 7518 and RFC 7517) representing the public key. Serialisation based on JCS (RFC 8785), status = draft, code = 0xeb51 */ + public static final Multicodec JWK_JCS_PUBLIC_KEY = Multicodec.of("jwk_jcs-pub", Tag.Key, 0xeb51, Multicodec.Status.Draft); - /** Key: lamport-sha3-256-priv, Lamport private key based on SHA3-256, status = Draft, code = 0x1a26 */ - public static final Multicodec LAMPORT_SHA3_256_PRIVATE_KEY = Multicodec.of("lamport-sha3-256-priv", Tag.Key, 0x1a26); + /** Key: lamport-sha3-256-priv, Lamport private key based on SHA3-256, status = draft, code = 0x1a26 */ + public static final Multicodec LAMPORT_SHA3_256_PRIVATE_KEY = Multicodec.of("lamport-sha3-256-priv", Tag.Key, 0x1a26, Multicodec.Status.Draft); - /** Key: lamport-sha3-256-priv-share, Lamport private key share based on SHA3-256 and split with Shamir gf256, status = Draft, code = 0x1a36 */ - public static final Multicodec LAMPORT_SHA3_256_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-256-priv-share", Tag.Key, 0x1a36); + /** Key: lamport-sha3-256-priv-share, Lamport private key share based on SHA3-256 and split with Shamir gf256, status = draft, code = 0x1a36 */ + public static final Multicodec LAMPORT_SHA3_256_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-256-priv-share", Tag.Key, 0x1a36, Multicodec.Status.Draft); - /** Key: lamport-sha3-256-pub, Lamport public key based on SHA3-256, status = Draft, code = 0x1a16 */ - public static final Multicodec LAMPORT_SHA3_256_PUBLIC_KEY = Multicodec.of("lamport-sha3-256-pub", Tag.Key, 0x1a16); + /** Key: lamport-sha3-256-pub, Lamport public key based on SHA3-256, status = draft, code = 0x1a16 */ + public static final Multicodec LAMPORT_SHA3_256_PUBLIC_KEY = Multicodec.of("lamport-sha3-256-pub", Tag.Key, 0x1a16, Multicodec.Status.Draft); - /** Key: lamport-sha3-384-priv, Lamport private key based on SHA3-384, status = Draft, code = 0x1a25 */ - public static final Multicodec LAMPORT_SHA3_384_PRIVATE_KEY = Multicodec.of("lamport-sha3-384-priv", Tag.Key, 0x1a25); + /** Key: lamport-sha3-384-priv, Lamport private key based on SHA3-384, status = draft, code = 0x1a25 */ + public static final Multicodec LAMPORT_SHA3_384_PRIVATE_KEY = Multicodec.of("lamport-sha3-384-priv", Tag.Key, 0x1a25, Multicodec.Status.Draft); - /** Key: lamport-sha3-384-priv-share, Lamport private key share based on SHA3-384 and split with Shamir gf256, status = Draft, code = 0x1a35 */ - public static final Multicodec LAMPORT_SHA3_384_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-384-priv-share", Tag.Key, 0x1a35); + /** Key: lamport-sha3-384-priv-share, Lamport private key share based on SHA3-384 and split with Shamir gf256, status = draft, code = 0x1a35 */ + public static final Multicodec LAMPORT_SHA3_384_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-384-priv-share", Tag.Key, 0x1a35, Multicodec.Status.Draft); - /** Key: lamport-sha3-384-pub, Lamport public key based on SHA3-384, status = Draft, code = 0x1a15 */ - public static final Multicodec LAMPORT_SHA3_384_PUBLIC_KEY = Multicodec.of("lamport-sha3-384-pub", Tag.Key, 0x1a15); + /** Key: lamport-sha3-384-pub, Lamport public key based on SHA3-384, status = draft, code = 0x1a15 */ + public static final Multicodec LAMPORT_SHA3_384_PUBLIC_KEY = Multicodec.of("lamport-sha3-384-pub", Tag.Key, 0x1a15, Multicodec.Status.Draft); - /** Key: lamport-sha3-512-priv, Lamport private key based on SHA3-512, status = Draft, code = 0x1a24 */ - public static final Multicodec LAMPORT_SHA3_512_PRIVATE_KEY = Multicodec.of("lamport-sha3-512-priv", Tag.Key, 0x1a24); + /** Key: lamport-sha3-512-priv, Lamport private key based on SHA3-512, status = draft, code = 0x1a24 */ + public static final Multicodec LAMPORT_SHA3_512_PRIVATE_KEY = Multicodec.of("lamport-sha3-512-priv", Tag.Key, 0x1a24, Multicodec.Status.Draft); - /** Key: lamport-sha3-512-priv-share, Lamport private key share based on SHA3-512 and split with Shamir gf256, status = Draft, code = 0x1a34 */ - public static final Multicodec LAMPORT_SHA3_512_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-512-priv-share", Tag.Key, 0x1a34); + /** Key: lamport-sha3-512-priv-share, Lamport private key share based on SHA3-512 and split with Shamir gf256, status = draft, code = 0x1a34 */ + public static final Multicodec LAMPORT_SHA3_512_PRIVATE_SHARE_KEY = Multicodec.of("lamport-sha3-512-priv-share", Tag.Key, 0x1a34, Multicodec.Status.Draft); - /** Key: lamport-sha3-512-pub, Lamport public key based on SHA3-512, status = Draft, code = 0x1a14 */ - public static final Multicodec LAMPORT_SHA3_512_PUBLIC_KEY = Multicodec.of("lamport-sha3-512-pub", Tag.Key, 0x1a14); + /** Key: lamport-sha3-512-pub, Lamport public key based on SHA3-512, status = draft, code = 0x1a14 */ + public static final Multicodec LAMPORT_SHA3_512_PUBLIC_KEY = Multicodec.of("lamport-sha3-512-pub", Tag.Key, 0x1a14, Multicodec.Status.Draft); - /** Key: p256-priv, P-256 private key, status = Draft, code = 0x1306 */ - public static final Multicodec P256_PRIVATE_KEY = Multicodec.of("p256-priv", Tag.Key, 0x1306); + /** Key: p256-priv, P-256 private key, status = draft, code = 0x1306 */ + public static final Multicodec P256_PRIVATE_KEY = Multicodec.of("p256-priv", Tag.Key, 0x1306, Multicodec.Status.Draft); - /** Key: p256-pub, P-256 public Key (compressed), status = Draft, code = 0x1200 */ - public static final Multicodec P256_PUBLIC_KEY = Multicodec.of("p256-pub", Tag.Key, 0x1200); + /** Key: p256-pub, P-256 public Key (compressed), status = draft, code = 0x1200 */ + public static final Multicodec P256_PUBLIC_KEY = Multicodec.of("p256-pub", Tag.Key, 0x1200, Multicodec.Status.Draft); - /** Key: p384-priv, P-384 private key, status = Draft, code = 0x1307 */ - public static final Multicodec P384_PRIVATE_KEY = Multicodec.of("p384-priv", Tag.Key, 0x1307); + /** Key: p384-priv, P-384 private key, status = draft, code = 0x1307 */ + public static final Multicodec P384_PRIVATE_KEY = Multicodec.of("p384-priv", Tag.Key, 0x1307, Multicodec.Status.Draft); - /** Key: p384-pub, P-384 public Key (compressed), status = Draft, code = 0x1201 */ - public static final Multicodec P384_PUBLIC_KEY = Multicodec.of("p384-pub", Tag.Key, 0x1201); + /** Key: p384-pub, P-384 public Key (compressed), status = draft, code = 0x1201 */ + public static final Multicodec P384_PUBLIC_KEY = Multicodec.of("p384-pub", Tag.Key, 0x1201, Multicodec.Status.Draft); - /** Key: p521-priv, P-521 private key, status = Draft, code = 0x1308 */ - public static final Multicodec P521_PRIVATE_KEY = Multicodec.of("p521-priv", Tag.Key, 0x1308); + /** Key: p521-priv, P-521 private key, status = draft, code = 0x1308 */ + public static final Multicodec P521_PRIVATE_KEY = Multicodec.of("p521-priv", Tag.Key, 0x1308, Multicodec.Status.Draft); - /** Key: p521-pub, P-521 public Key (compressed), status = Draft, code = 0x1202 */ - public static final Multicodec P521_PUBLIC_KEY = Multicodec.of("p521-pub", Tag.Key, 0x1202); + /** Key: p521-pub, P-521 public Key (compressed), status = draft, code = 0x1202 */ + public static final Multicodec P521_PUBLIC_KEY = Multicodec.of("p521-pub", Tag.Key, 0x1202, Multicodec.Status.Draft); - /** Key: rsa-priv, RSA private key, status = Draft, code = 0x1305 */ - public static final Multicodec RSA_PRIVATE_KEY = Multicodec.of("rsa-priv", Tag.Key, 0x1305); + /** Key: rsa-priv, RSA private key, status = draft, code = 0x1305 */ + public static final Multicodec RSA_PRIVATE_KEY = Multicodec.of("rsa-priv", Tag.Key, 0x1305, Multicodec.Status.Draft); - /** Key: rsa-pub, RSA public key. DER-encoded ASN.1 type RSAPublicKey according to IETF RFC 8017 (PKCS #1), status = Draft, code = 0x1205 */ - public static final Multicodec RSA_PUBLIC_KEY = Multicodec.of("rsa-pub", Tag.Key, 0x1205); + /** Key: rsa-pub, RSA public key. DER-encoded ASN.1 type RSAPublicKey according to IETF RFC 8017 (PKCS #1), status = draft, code = 0x1205 */ + public static final Multicodec RSA_PUBLIC_KEY = Multicodec.of("rsa-pub", Tag.Key, 0x1205, Multicodec.Status.Draft); - /** Key: secp256k1-priv, Secp256k1 private key, status = Draft, code = 0x1301 */ - public static final Multicodec SECP256K1_PRIVATE_KEY = Multicodec.of("secp256k1-priv", Tag.Key, 0x1301); + /** Key: secp256k1-priv, Secp256k1 private key, status = draft, code = 0x1301 */ + public static final Multicodec SECP256K1_PRIVATE_KEY = Multicodec.of("secp256k1-priv", Tag.Key, 0x1301, Multicodec.Status.Draft); - /** Key: secp256k1-pub, Secp256k1 public key (compressed), status = Draft, code = 0xe7 */ - public static final Multicodec SECP256K1_PUBLIC_KEY = Multicodec.of("secp256k1-pub", Tag.Key, 0xe7); + /** Key: secp256k1-pub, Secp256k1 public key (compressed), status = draft, code = 0xe7 */ + public static final Multicodec SECP256K1_PUBLIC_KEY = Multicodec.of("secp256k1-pub", Tag.Key, 0xe7, Multicodec.Status.Draft); - /** Key: sm2-pub, SM2 public key (compressed), status = Draft, code = 0x1206 */ - public static final Multicodec SM2_PUBLIC_KEY = Multicodec.of("sm2-pub", Tag.Key, 0x1206); + /** Key: sm2-pub, SM2 public key (compressed), status = draft, code = 0x1206 */ + public static final Multicodec SM2_PUBLIC_KEY = Multicodec.of("sm2-pub", Tag.Key, 0x1206, Multicodec.Status.Draft); - /** Key: sr25519-priv, Sr25519 private key, status = Draft, code = 0x1303 */ - public static final Multicodec SR25519_PRIVATE_KEY = Multicodec.of("sr25519-priv", Tag.Key, 0x1303); + /** Key: sr25519-priv, Sr25519 private key, status = draft, code = 0x1303 */ + public static final Multicodec SR25519_PRIVATE_KEY = Multicodec.of("sr25519-priv", Tag.Key, 0x1303, Multicodec.Status.Draft); - /** Key: sr25519-pub, Sr25519 public key, status = Draft, code = 0xef */ - public static final Multicodec SR25519_PUBLIC_KEY = Multicodec.of("sr25519-pub", Tag.Key, 0xef); + /** Key: sr25519-pub, Sr25519 public key, status = draft, code = 0xef */ + public static final Multicodec SR25519_PUBLIC_KEY = Multicodec.of("sr25519-pub", Tag.Key, 0xef, Multicodec.Status.Draft); - /** Key: x25519-priv, Curve25519 private key, status = Draft, code = 0x1302 */ - public static final Multicodec X25519_PRIVATE_KEY = Multicodec.of("x25519-priv", Tag.Key, 0x1302); + /** Key: x25519-priv, Curve25519 private key, status = draft, code = 0x1302 */ + public static final Multicodec X25519_PRIVATE_KEY = Multicodec.of("x25519-priv", Tag.Key, 0x1302, Multicodec.Status.Draft); - /** Key: x25519-pub, Curve25519 public key, status = Draft, code = 0xec */ - public static final Multicodec X25519_PUBLIC_KEY = Multicodec.of("x25519-pub", Tag.Key, 0xec); + /** Key: x25519-pub, Curve25519 public key, status = draft, code = 0xec */ + public static final Multicodec X25519_PUBLIC_KEY = Multicodec.of("x25519-pub", Tag.Key, 0xec, Multicodec.Status.Draft); - /** Key: x448-pub, X448 public Key, status = Draft, code = 0x1204 */ - public static final Multicodec X448_PUBLIC_KEY = Multicodec.of("x448-pub", Tag.Key, 0x1204); + /** Key: x448-pub, X448 public Key, status = draft, code = 0x1204 */ + public static final Multicodec X448_PUBLIC_KEY = Multicodec.of("x448-pub", Tag.Key, 0x1204, Multicodec.Status.Draft); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java index 939fe62..19175ef 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java @@ -6,140 +6,140 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class MultiaddrCodec { - /** Multiaddr: certhash, TLS certificate's fingerprint as a multihash, status = Draft, code = 0x1d2 */ - public static final Multicodec CERTHASH = Multicodec.of("certhash", Tag.Multiaddr, 0x1d2); + /** Multiaddr: certhash, TLS certificate's fingerprint as a multihash, status = draft, code = 0x1d2 */ + public static final Multicodec CERTHASH = Multicodec.of("certhash", Tag.Multiaddr, 0x1d2, Multicodec.Status.Draft); - /** Multiaddr: dccp, status = Draft, code = 0x21 */ - public static final Multicodec DCCP = Multicodec.of("dccp", Tag.Multiaddr, 0x21); + /** Multiaddr: dccp, status = draft, code = 0x21 */ + public static final Multicodec DCCP = Multicodec.of("dccp", Tag.Multiaddr, 0x21, Multicodec.Status.Draft); - /** Multiaddr: dns, status = Permanent, code = 0x35 */ - public static final Multicodec DNS = Multicodec.of("dns", Tag.Multiaddr, 0x35); + /** Multiaddr: dns, status = permanent, code = 0x35 */ + public static final Multicodec DNS = Multicodec.of("dns", Tag.Multiaddr, 0x35, Multicodec.Status.Permanent); - /** Multiaddr: dns4, status = Permanent, code = 0x36 */ - public static final Multicodec DNS4 = Multicodec.of("dns4", Tag.Multiaddr, 0x36); + /** Multiaddr: dns4, status = permanent, code = 0x36 */ + public static final Multicodec DNS4 = Multicodec.of("dns4", Tag.Multiaddr, 0x36, Multicodec.Status.Permanent); - /** Multiaddr: dns6, status = Permanent, code = 0x37 */ - public static final Multicodec DNS6 = Multicodec.of("dns6", Tag.Multiaddr, 0x37); + /** Multiaddr: dns6, status = permanent, code = 0x37 */ + public static final Multicodec DNS6 = Multicodec.of("dns6", Tag.Multiaddr, 0x37, Multicodec.Status.Permanent); - /** Multiaddr: dnsaddr, status = Permanent, code = 0x38 */ - public static final Multicodec DNSADDR = Multicodec.of("dnsaddr", Tag.Multiaddr, 0x38); + /** Multiaddr: dnsaddr, status = permanent, code = 0x38 */ + public static final Multicodec DNSADDR = Multicodec.of("dnsaddr", Tag.Multiaddr, 0x38, Multicodec.Status.Permanent); - /** Multiaddr: garlic32, I2P base32 (hashed public key or encoded public key/checksum+optional secret), status = Draft, code = 0x1bf */ - public static final Multicodec GARLIC32 = Multicodec.of("garlic32", Tag.Multiaddr, 0x1bf); + /** Multiaddr: garlic32, I2P base32 (hashed public key or encoded public key/checksum+optional secret), status = draft, code = 0x1bf */ + public static final Multicodec GARLIC32 = Multicodec.of("garlic32", Tag.Multiaddr, 0x1bf, Multicodec.Status.Draft); - /** Multiaddr: garlic64, I2P base64 (raw public key), status = Draft, code = 0x1be */ - public static final Multicodec GARLIC64 = Multicodec.of("garlic64", Tag.Multiaddr, 0x1be); + /** Multiaddr: garlic64, I2P base64 (raw public key), status = draft, code = 0x1be */ + public static final Multicodec GARLIC64 = Multicodec.of("garlic64", Tag.Multiaddr, 0x1be, Multicodec.Status.Draft); - /** Multiaddr: http, status = Draft, code = 0x1e0 */ - public static final Multicodec HTTP = Multicodec.of("http", Tag.Multiaddr, 0x1e0); + /** Multiaddr: http, status = draft, code = 0x1e0 */ + public static final Multicodec HTTP = Multicodec.of("http", Tag.Multiaddr, 0x1e0, Multicodec.Status.Draft); - /** Multiaddr: http-path, Percent-encoded path to an HTTP resource, status = Draft, code = 0x1e1 */ - public static final Multicodec HTTP_PATH = Multicodec.of("http-path", Tag.Multiaddr, 0x1e1); + /** Multiaddr: http-path, Percent-encoded path to an HTTP resource, status = draft, code = 0x1e1 */ + public static final Multicodec HTTP_PATH = Multicodec.of("http-path", Tag.Multiaddr, 0x1e1, Multicodec.Status.Draft); - /** Multiaddr: https, status = Draft, code = 0x1bb */ - public static final Multicodec HTTPS = Multicodec.of("https", Tag.Multiaddr, 0x1bb); + /** Multiaddr: https, status = draft, code = 0x1bb */ + public static final Multicodec HTTPS = Multicodec.of("https", Tag.Multiaddr, 0x1bb, Multicodec.Status.Draft); - /** Multiaddr: ip4, status = Permanent, code = 0x4 */ - public static final Multicodec IP4 = Multicodec.of("ip4", Tag.Multiaddr, 0x4); + /** Multiaddr: ip4, status = permanent, code = 0x4 */ + public static final Multicodec IP4 = Multicodec.of("ip4", Tag.Multiaddr, 0x4, Multicodec.Status.Permanent); - /** Multiaddr: ip6, status = Permanent, code = 0x29 */ - public static final Multicodec IP6 = Multicodec.of("ip6", Tag.Multiaddr, 0x29); + /** Multiaddr: ip6, status = permanent, code = 0x29 */ + public static final Multicodec IP6 = Multicodec.of("ip6", Tag.Multiaddr, 0x29, Multicodec.Status.Permanent); - /** Multiaddr: ip6zone, status = Draft, code = 0x2a */ - public static final Multicodec IP6ZONE = Multicodec.of("ip6zone", Tag.Multiaddr, 0x2a); + /** Multiaddr: ip6zone, status = draft, code = 0x2a */ + public static final Multicodec IP6ZONE = Multicodec.of("ip6zone", Tag.Multiaddr, 0x2a, Multicodec.Status.Draft); - /** Multiaddr: ipcidr, CIDR mask for IP addresses, status = Draft, code = 0x2b */ - public static final Multicodec IPCIDR = Multicodec.of("ipcidr", Tag.Multiaddr, 0x2b); + /** Multiaddr: ipcidr, CIDR mask for IP addresses, status = draft, code = 0x2b */ + public static final Multicodec IPCIDR = Multicodec.of("ipcidr", Tag.Multiaddr, 0x2b, Multicodec.Status.Draft); - /** Multiaddr: noise, status = Draft, code = 0x1c6 */ - public static final Multicodec NOISE = Multicodec.of("noise", Tag.Multiaddr, 0x1c6); + /** Multiaddr: noise, status = draft, code = 0x1c6 */ + public static final Multicodec NOISE = Multicodec.of("noise", Tag.Multiaddr, 0x1c6, Multicodec.Status.Draft); - /** Multiaddr: onion, status = Draft, code = 0x1bc */ - public static final Multicodec ONION = Multicodec.of("onion", Tag.Multiaddr, 0x1bc); + /** Multiaddr: onion, status = draft, code = 0x1bc */ + public static final Multicodec ONION = Multicodec.of("onion", Tag.Multiaddr, 0x1bc, Multicodec.Status.Draft); - /** Multiaddr: onion3, status = Draft, code = 0x1bd */ - public static final Multicodec ONION3 = Multicodec.of("onion3", Tag.Multiaddr, 0x1bd); + /** Multiaddr: onion3, status = draft, code = 0x1bd */ + public static final Multicodec ONION3 = Multicodec.of("onion3", Tag.Multiaddr, 0x1bd, Multicodec.Status.Draft); - /** Multiaddr: p2p, libp2p, status = Permanent, code = 0x1a5 */ - public static final Multicodec P2P = Multicodec.of("p2p", Tag.Multiaddr, 0x1a5); + /** Multiaddr: p2p, libp2p, status = permanent, code = 0x1a5 */ + public static final Multicodec P2P = Multicodec.of("p2p", Tag.Multiaddr, 0x1a5, Multicodec.Status.Permanent); - /** Multiaddr: p2p-circuit, status = Permanent, code = 0x122 */ - public static final Multicodec P2P_CIRCUIT = Multicodec.of("p2p-circuit", Tag.Multiaddr, 0x122); + /** Multiaddr: p2p-circuit, status = permanent, code = 0x122 */ + public static final Multicodec P2P_CIRCUIT = Multicodec.of("p2p-circuit", Tag.Multiaddr, 0x122, Multicodec.Status.Permanent); - /** Multiaddr: p2p-stardust, status = Deprecated, code = 0x115 */ - public static final Multicodec P2P_STARDUST = Multicodec.of("p2p-stardust", Tag.Multiaddr, 0x115); + /** Multiaddr: p2p-stardust, status = deprecated, code = 0x115 */ + public static final Multicodec P2P_STARDUST = Multicodec.of("p2p-stardust", Tag.Multiaddr, 0x115, Multicodec.Status.Deprecated); - /** Multiaddr: p2p-webrtc-direct, Use webrtc or webrtc-direct instead, status = Deprecated, code = 0x114 */ - public static final Multicodec P2P_WEBRTC_DIRECT = Multicodec.of("p2p-webrtc-direct", Tag.Multiaddr, 0x114); + /** Multiaddr: p2p-webrtc-direct, Use webrtc or webrtc-direct instead, status = deprecated, code = 0x114 */ + public static final Multicodec P2P_WEBRTC_DIRECT = Multicodec.of("p2p-webrtc-direct", Tag.Multiaddr, 0x114, Multicodec.Status.Deprecated); - /** Multiaddr: p2p-webrtc-star, Use webrtc or webrtc-direct instead, status = Deprecated, code = 0x113 */ - public static final Multicodec P2P_WEBRTC_STAR = Multicodec.of("p2p-webrtc-star", Tag.Multiaddr, 0x113); + /** Multiaddr: p2p-webrtc-star, Use webrtc or webrtc-direct instead, status = deprecated, code = 0x113 */ + public static final Multicodec P2P_WEBRTC_STAR = Multicodec.of("p2p-webrtc-star", Tag.Multiaddr, 0x113, Multicodec.Status.Deprecated); - /** Multiaddr: p2p-websocket-star, status = Permanent, code = 0x1df */ - public static final Multicodec P2P_WEBSOCKET_STAR = Multicodec.of("p2p-websocket-star", Tag.Multiaddr, 0x1df); + /** Multiaddr: p2p-websocket-star, status = permanent, code = 0x1df */ + public static final Multicodec P2P_WEBSOCKET_STAR = Multicodec.of("p2p-websocket-star", Tag.Multiaddr, 0x1df, Multicodec.Status.Permanent); - /** Multiaddr: plaintextv2, status = Draft, code = 0x706c61 */ - public static final Multicodec PLAINTEXTV2 = Multicodec.of("plaintextv2", Tag.Multiaddr, 0x706c61); + /** Multiaddr: plaintextv2, status = draft, code = 0x706c61 */ + public static final Multicodec PLAINTEXTV2 = Multicodec.of("plaintextv2", Tag.Multiaddr, 0x706c61, Multicodec.Status.Draft); - /** Multiaddr: quic, status = Permanent, code = 0x1cc */ - public static final Multicodec QUIC = Multicodec.of("quic", Tag.Multiaddr, 0x1cc); + /** Multiaddr: quic, status = permanent, code = 0x1cc */ + public static final Multicodec QUIC = Multicodec.of("quic", Tag.Multiaddr, 0x1cc, Multicodec.Status.Permanent); - /** Multiaddr: quic-v1, status = Permanent, code = 0x1cd */ - public static final Multicodec QUIC_V1 = Multicodec.of("quic-v1", Tag.Multiaddr, 0x1cd); + /** Multiaddr: quic-v1, status = permanent, code = 0x1cd */ + public static final Multicodec QUIC_V1 = Multicodec.of("quic-v1", Tag.Multiaddr, 0x1cd, Multicodec.Status.Permanent); - /** Multiaddr: scion, SCION Internet architecture, status = Draft, code = 0xd02000 */ - public static final Multicodec SCION = Multicodec.of("scion", Tag.Multiaddr, 0xd02000); + /** Multiaddr: scion, SCION Internet architecture, status = draft, code = 0xd02000 */ + public static final Multicodec SCION = Multicodec.of("scion", Tag.Multiaddr, 0xd02000, Multicodec.Status.Draft); - /** Multiaddr: sctp, status = Draft, code = 0x84 */ - public static final Multicodec SCTP = Multicodec.of("sctp", Tag.Multiaddr, 0x84); + /** Multiaddr: sctp, status = draft, code = 0x84 */ + public static final Multicodec SCTP = Multicodec.of("sctp", Tag.Multiaddr, 0x84, Multicodec.Status.Draft); - /** Multiaddr: shs, Secure Scuttlebutt - Secret Handshake Stream, status = Draft, code = 0x1c8 */ - public static final Multicodec SHS = Multicodec.of("shs", Tag.Multiaddr, 0x1c8); + /** Multiaddr: shs, Secure Scuttlebutt - Secret Handshake Stream, status = draft, code = 0x1c8 */ + public static final Multicodec SHS = Multicodec.of("shs", Tag.Multiaddr, 0x1c8, Multicodec.Status.Draft); - /** Multiaddr: silverpine, Experimental QUIC over yggdrasil and ironwood routing protocol, status = Draft, code = 0x3f42 */ - public static final Multicodec SILVERPINE = Multicodec.of("silverpine", Tag.Multiaddr, 0x3f42); + /** Multiaddr: silverpine, Experimental QUIC over yggdrasil and ironwood routing protocol, status = draft, code = 0x3f42 */ + public static final Multicodec SILVERPINE = Multicodec.of("silverpine", Tag.Multiaddr, 0x3f42, Multicodec.Status.Draft); - /** Multiaddr: sni, Server Name Indication RFC 6066 ยง 3, status = Draft, code = 0x1c1 */ - public static final Multicodec SNI = Multicodec.of("sni", Tag.Multiaddr, 0x1c1); + /** Multiaddr: sni, Server Name Indication RFC 6066 ยง 3, status = draft, code = 0x1c1 */ + public static final Multicodec SNI = Multicodec.of("sni", Tag.Multiaddr, 0x1c1, Multicodec.Status.Draft); - /** Multiaddr: tcp, status = Permanent, code = 0x6 */ - public static final Multicodec TCP = Multicodec.of("tcp", Tag.Multiaddr, 0x6); + /** Multiaddr: tcp, status = permanent, code = 0x6 */ + public static final Multicodec TCP = Multicodec.of("tcp", Tag.Multiaddr, 0x6, Multicodec.Status.Permanent); - /** Multiaddr: thread, Textile Thread, status = Draft, code = 0x196 */ - public static final Multicodec THREAD = Multicodec.of("thread", Tag.Multiaddr, 0x196); + /** Multiaddr: thread, Textile Thread, status = draft, code = 0x196 */ + public static final Multicodec THREAD = Multicodec.of("thread", Tag.Multiaddr, 0x196, Multicodec.Status.Draft); - /** Multiaddr: tls, status = Draft, code = 0x1c0 */ - public static final Multicodec TLS = Multicodec.of("tls", Tag.Multiaddr, 0x1c0); + /** Multiaddr: tls, status = draft, code = 0x1c0 */ + public static final Multicodec TLS = Multicodec.of("tls", Tag.Multiaddr, 0x1c0, Multicodec.Status.Draft); - /** Multiaddr: udp, status = Draft, code = 0x111 */ - public static final Multicodec UDP = Multicodec.of("udp", Tag.Multiaddr, 0x111); + /** Multiaddr: udp, status = draft, code = 0x111 */ + public static final Multicodec UDP = Multicodec.of("udp", Tag.Multiaddr, 0x111, Multicodec.Status.Draft); - /** Multiaddr: udt, status = Draft, code = 0x12d */ - public static final Multicodec UDT = Multicodec.of("udt", Tag.Multiaddr, 0x12d); + /** Multiaddr: udt, status = draft, code = 0x12d */ + public static final Multicodec UDT = Multicodec.of("udt", Tag.Multiaddr, 0x12d, Multicodec.Status.Draft); - /** Multiaddr: unix, status = Permanent, code = 0x190 */ - public static final Multicodec UNIX = Multicodec.of("unix", Tag.Multiaddr, 0x190); + /** Multiaddr: unix, status = permanent, code = 0x190 */ + public static final Multicodec UNIX = Multicodec.of("unix", Tag.Multiaddr, 0x190, Multicodec.Status.Permanent); - /** Multiaddr: utp, status = Draft, code = 0x12e */ - public static final Multicodec UTP = Multicodec.of("utp", Tag.Multiaddr, 0x12e); + /** Multiaddr: utp, status = draft, code = 0x12e */ + public static final Multicodec UTP = Multicodec.of("utp", Tag.Multiaddr, 0x12e, Multicodec.Status.Draft); - /** Multiaddr: webrtc, webrtc transport where connection establishment is according to w3c spec, status = Draft, code = 0x119 */ - public static final Multicodec WEBRTC = Multicodec.of("webrtc", Tag.Multiaddr, 0x119); + /** Multiaddr: webrtc, webrtc transport where connection establishment is according to w3c spec, status = draft, code = 0x119 */ + public static final Multicodec WEBRTC = Multicodec.of("webrtc", Tag.Multiaddr, 0x119, Multicodec.Status.Draft); - /** Multiaddr: webrtc-direct, ICE-lite webrtc transport with SDP munging during connection establishment and without use of a STUN server, status = Draft, code = 0x118 */ - public static final Multicodec WEBRTC_DIRECT = Multicodec.of("webrtc-direct", Tag.Multiaddr, 0x118); + /** Multiaddr: webrtc-direct, ICE-lite webrtc transport with SDP munging during connection establishment and without use of a STUN server, status = draft, code = 0x118 */ + public static final Multicodec WEBRTC_DIRECT = Multicodec.of("webrtc-direct", Tag.Multiaddr, 0x118, Multicodec.Status.Draft); - /** Multiaddr: webtransport, status = Draft, code = 0x1d1 */ - public static final Multicodec WEBTRANSPORT = Multicodec.of("webtransport", Tag.Multiaddr, 0x1d1); + /** Multiaddr: webtransport, status = draft, code = 0x1d1 */ + public static final Multicodec WEBTRANSPORT = Multicodec.of("webtransport", Tag.Multiaddr, 0x1d1, Multicodec.Status.Draft); - /** Multiaddr: ws, status = Permanent, code = 0x1dd */ - public static final Multicodec WS = Multicodec.of("ws", Tag.Multiaddr, 0x1dd); + /** Multiaddr: ws, status = permanent, code = 0x1dd */ + public static final Multicodec WS = Multicodec.of("ws", Tag.Multiaddr, 0x1dd, Multicodec.Status.Permanent); - /** Multiaddr: wss, status = Permanent, code = 0x1de */ - public static final Multicodec WSS = Multicodec.of("wss", Tag.Multiaddr, 0x1de); + /** Multiaddr: wss, status = permanent, code = 0x1de */ + public static final Multicodec WSS = Multicodec.of("wss", Tag.Multiaddr, 0x1de, Multicodec.Status.Permanent); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java index 3a0d349..7ccdd42 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java @@ -6,35 +6,35 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class MultiformatCodec { - /** Multiformat: caip-50, CAIP-50 multi-chain account id, status = Draft, code = 0xca */ - public static final Multicodec CAIP_50 = Multicodec.of("caip-50", Tag.Multiformat, 0xca); + /** Multiformat: caip-50, CAIP-50 multi-chain account id, status = draft, code = 0xca */ + public static final Multicodec CAIP_50 = Multicodec.of("caip-50", Tag.Multiformat, 0xca, Multicodec.Status.Draft); - /** Multiformat: multiaddr, status = Draft, code = 0x32 */ - public static final Multicodec MULTIADDR = Multicodec.of("multiaddr", Tag.Multiformat, 0x32); + /** Multiformat: multiaddr, status = draft, code = 0x32 */ + public static final Multicodec MULTIADDR = Multicodec.of("multiaddr", Tag.Multiformat, 0x32, Multicodec.Status.Draft); - /** Multiformat: multibase, status = Draft, code = 0x33 */ - public static final Multicodec MULTIBASE = Multicodec.of("multibase", Tag.Multiformat, 0x33); + /** Multiformat: multibase, status = draft, code = 0x33 */ + public static final Multicodec MULTIBASE = Multicodec.of("multibase", Tag.Multiformat, 0x33, Multicodec.Status.Draft); - /** Multiformat: multicodec, status = Draft, code = 0x30 */ - public static final Multicodec MULTICODEC = Multicodec.of("multicodec", Tag.Multiformat, 0x30); + /** Multiformat: multicodec, status = draft, code = 0x30 */ + public static final Multicodec MULTICODEC = Multicodec.of("multicodec", Tag.Multiformat, 0x30, Multicodec.Status.Draft); - /** Multiformat: multidid, Compact encoding for Decentralized Identifers, status = Draft, code = 0xd1d */ - public static final Multicodec MULTIDID = Multicodec.of("multidid", Tag.Multiformat, 0xd1d); + /** Multiformat: multidid, Compact encoding for Decentralized Identifers, status = draft, code = 0xd1d */ + public static final Multicodec MULTIDID = Multicodec.of("multidid", Tag.Multiformat, 0xd1d, Multicodec.Status.Draft); - /** Multiformat: multihash, status = Draft, code = 0x31 */ - public static final Multicodec MULTIHASH = Multicodec.of("multihash", Tag.Multiformat, 0x31); + /** Multiformat: multihash, status = draft, code = 0x31 */ + public static final Multicodec MULTIHASH = Multicodec.of("multihash", Tag.Multiformat, 0x31, Multicodec.Status.Draft); - /** Multiformat: multikey, Encryption key multiformat, status = Draft, code = 0x123a */ - public static final Multicodec MULTIKEY = Multicodec.of("multikey", Tag.Multiformat, 0x123a); + /** Multiformat: multikey, Encryption key multiformat, status = draft, code = 0x123a */ + public static final Multicodec MULTIKEY = Multicodec.of("multikey", Tag.Multiformat, 0x123a, Multicodec.Status.Draft); - /** Multiformat: multisig, Digital signature multiformat, status = Draft, code = 0x1239 */ - public static final Multicodec MULTISIG = Multicodec.of("multisig", Tag.Multiformat, 0x1239); + /** Multiformat: multisig, Digital signature multiformat, status = draft, code = 0x1239 */ + public static final Multicodec MULTISIG = Multicodec.of("multisig", Tag.Multiformat, 0x1239, Multicodec.Status.Draft); - /** Multiformat: varsig, Variable signature (varsig) multiformat, status = Draft, code = 0x34 */ - public static final Multicodec VARSIG = Multicodec.of("varsig", Tag.Multiformat, 0x34); + /** Multiformat: varsig, Variable signature (varsig) multiformat, status = draft, code = 0x34 */ + public static final Multicodec VARSIG = Multicodec.of("varsig", Tag.Multiformat, 0x34, Multicodec.Status.Draft); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java index 427b8fc..efcaab7 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java @@ -5,1073 +5,1073 @@ import com.apicatalog.multihash.Multihash; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class MultihashCodec { - /** Multihash: bcrypt-pbkdf, Bcrypt-PBKDF key derivation function, status = Draft, code = 0xd00d */ - public static final Multihash BCRYPT_PBKDF = Multihash.of("bcrypt-pbkdf", 0xd00d); + /** Multihash: bcrypt-pbkdf, Bcrypt-PBKDF key derivation function, status = draft, code = 0xd00d */ + public static final Multihash BCRYPT_PBKDF = Multihash.of("bcrypt-pbkdf", 0xd00d, Multihash.Status.Draft); - /** Multihash: blake2b-104, status = Draft, code = 0xb20d */ - public static final Multihash BLAKE2B_104 = Multihash.of("blake2b-104", 0xb20d); + /** Multihash: blake2b-104, status = draft, code = 0xb20d */ + public static final Multihash BLAKE2B_104 = Multihash.of("blake2b-104", 0xb20d, Multihash.Status.Draft); - /** Multihash: blake2b-112, status = Draft, code = 0xb20e */ - public static final Multihash BLAKE2B_112 = Multihash.of("blake2b-112", 0xb20e); + /** Multihash: blake2b-112, status = draft, code = 0xb20e */ + public static final Multihash BLAKE2B_112 = Multihash.of("blake2b-112", 0xb20e, Multihash.Status.Draft); - /** Multihash: blake2b-120, status = Draft, code = 0xb20f */ - public static final Multihash BLAKE2B_120 = Multihash.of("blake2b-120", 0xb20f); + /** Multihash: blake2b-120, status = draft, code = 0xb20f */ + public static final Multihash BLAKE2B_120 = Multihash.of("blake2b-120", 0xb20f, Multihash.Status.Draft); - /** Multihash: blake2b-128, status = Draft, code = 0xb210 */ - public static final Multihash BLAKE2B_128 = Multihash.of("blake2b-128", 0xb210); + /** Multihash: blake2b-128, status = draft, code = 0xb210 */ + public static final Multihash BLAKE2B_128 = Multihash.of("blake2b-128", 0xb210, Multihash.Status.Draft); - /** Multihash: blake2b-136, status = Draft, code = 0xb211 */ - public static final Multihash BLAKE2B_136 = Multihash.of("blake2b-136", 0xb211); + /** Multihash: blake2b-136, status = draft, code = 0xb211 */ + public static final Multihash BLAKE2B_136 = Multihash.of("blake2b-136", 0xb211, Multihash.Status.Draft); - /** Multihash: blake2b-144, status = Draft, code = 0xb212 */ - public static final Multihash BLAKE2B_144 = Multihash.of("blake2b-144", 0xb212); + /** Multihash: blake2b-144, status = draft, code = 0xb212 */ + public static final Multihash BLAKE2B_144 = Multihash.of("blake2b-144", 0xb212, Multihash.Status.Draft); - /** Multihash: blake2b-152, status = Draft, code = 0xb213 */ - public static final Multihash BLAKE2B_152 = Multihash.of("blake2b-152", 0xb213); + /** Multihash: blake2b-152, status = draft, code = 0xb213 */ + public static final Multihash BLAKE2B_152 = Multihash.of("blake2b-152", 0xb213, Multihash.Status.Draft); - /** Multihash: blake2b-16, status = Draft, code = 0xb202 */ - public static final Multihash BLAKE2B_16 = Multihash.of("blake2b-16", 0xb202); + /** Multihash: blake2b-16, status = draft, code = 0xb202 */ + public static final Multihash BLAKE2B_16 = Multihash.of("blake2b-16", 0xb202, Multihash.Status.Draft); - /** Multihash: blake2b-160, status = Draft, code = 0xb214 */ - public static final Multihash BLAKE2B_160 = Multihash.of("blake2b-160", 0xb214); + /** Multihash: blake2b-160, status = draft, code = 0xb214 */ + public static final Multihash BLAKE2B_160 = Multihash.of("blake2b-160", 0xb214, Multihash.Status.Draft); - /** Multihash: blake2b-168, status = Draft, code = 0xb215 */ - public static final Multihash BLAKE2B_168 = Multihash.of("blake2b-168", 0xb215); + /** Multihash: blake2b-168, status = draft, code = 0xb215 */ + public static final Multihash BLAKE2B_168 = Multihash.of("blake2b-168", 0xb215, Multihash.Status.Draft); - /** Multihash: blake2b-176, status = Draft, code = 0xb216 */ - public static final Multihash BLAKE2B_176 = Multihash.of("blake2b-176", 0xb216); + /** Multihash: blake2b-176, status = draft, code = 0xb216 */ + public static final Multihash BLAKE2B_176 = Multihash.of("blake2b-176", 0xb216, Multihash.Status.Draft); - /** Multihash: blake2b-184, status = Draft, code = 0xb217 */ - public static final Multihash BLAKE2B_184 = Multihash.of("blake2b-184", 0xb217); + /** Multihash: blake2b-184, status = draft, code = 0xb217 */ + public static final Multihash BLAKE2B_184 = Multihash.of("blake2b-184", 0xb217, Multihash.Status.Draft); - /** Multihash: blake2b-192, status = Draft, code = 0xb218 */ - public static final Multihash BLAKE2B_192 = Multihash.of("blake2b-192", 0xb218); + /** Multihash: blake2b-192, status = draft, code = 0xb218 */ + public static final Multihash BLAKE2B_192 = Multihash.of("blake2b-192", 0xb218, Multihash.Status.Draft); - /** Multihash: blake2b-200, status = Draft, code = 0xb219 */ - public static final Multihash BLAKE2B_200 = Multihash.of("blake2b-200", 0xb219); + /** Multihash: blake2b-200, status = draft, code = 0xb219 */ + public static final Multihash BLAKE2B_200 = Multihash.of("blake2b-200", 0xb219, Multihash.Status.Draft); - /** Multihash: blake2b-208, status = Draft, code = 0xb21a */ - public static final Multihash BLAKE2B_208 = Multihash.of("blake2b-208", 0xb21a); + /** Multihash: blake2b-208, status = draft, code = 0xb21a */ + public static final Multihash BLAKE2B_208 = Multihash.of("blake2b-208", 0xb21a, Multihash.Status.Draft); - /** Multihash: blake2b-216, status = Draft, code = 0xb21b */ - public static final Multihash BLAKE2B_216 = Multihash.of("blake2b-216", 0xb21b); + /** Multihash: blake2b-216, status = draft, code = 0xb21b */ + public static final Multihash BLAKE2B_216 = Multihash.of("blake2b-216", 0xb21b, Multihash.Status.Draft); - /** Multihash: blake2b-224, status = Draft, code = 0xb21c */ - public static final Multihash BLAKE2B_224 = Multihash.of("blake2b-224", 0xb21c); + /** Multihash: blake2b-224, status = draft, code = 0xb21c */ + public static final Multihash BLAKE2B_224 = Multihash.of("blake2b-224", 0xb21c, Multihash.Status.Draft); - /** Multihash: blake2b-232, status = Draft, code = 0xb21d */ - public static final Multihash BLAKE2B_232 = Multihash.of("blake2b-232", 0xb21d); + /** Multihash: blake2b-232, status = draft, code = 0xb21d */ + public static final Multihash BLAKE2B_232 = Multihash.of("blake2b-232", 0xb21d, Multihash.Status.Draft); - /** Multihash: blake2b-24, status = Draft, code = 0xb203 */ - public static final Multihash BLAKE2B_24 = Multihash.of("blake2b-24", 0xb203); + /** Multihash: blake2b-24, status = draft, code = 0xb203 */ + public static final Multihash BLAKE2B_24 = Multihash.of("blake2b-24", 0xb203, Multihash.Status.Draft); - /** Multihash: blake2b-240, status = Draft, code = 0xb21e */ - public static final Multihash BLAKE2B_240 = Multihash.of("blake2b-240", 0xb21e); + /** Multihash: blake2b-240, status = draft, code = 0xb21e */ + public static final Multihash BLAKE2B_240 = Multihash.of("blake2b-240", 0xb21e, Multihash.Status.Draft); - /** Multihash: blake2b-248, status = Draft, code = 0xb21f */ - public static final Multihash BLAKE2B_248 = Multihash.of("blake2b-248", 0xb21f); + /** Multihash: blake2b-248, status = draft, code = 0xb21f */ + public static final Multihash BLAKE2B_248 = Multihash.of("blake2b-248", 0xb21f, Multihash.Status.Draft); - /** Multihash: blake2b-256, status = Permanent, code = 0xb220 */ - public static final Multihash BLAKE2B_256 = Multihash.of("blake2b-256", 0xb220); + /** Multihash: blake2b-256, status = permanent, code = 0xb220 */ + public static final Multihash BLAKE2B_256 = Multihash.of("blake2b-256", 0xb220, Multihash.Status.Permanent); - /** Multihash: blake2b-264, status = Draft, code = 0xb221 */ - public static final Multihash BLAKE2B_264 = Multihash.of("blake2b-264", 0xb221); + /** Multihash: blake2b-264, status = draft, code = 0xb221 */ + public static final Multihash BLAKE2B_264 = Multihash.of("blake2b-264", 0xb221, Multihash.Status.Draft); - /** Multihash: blake2b-272, status = Draft, code = 0xb222 */ - public static final Multihash BLAKE2B_272 = Multihash.of("blake2b-272", 0xb222); + /** Multihash: blake2b-272, status = draft, code = 0xb222 */ + public static final Multihash BLAKE2B_272 = Multihash.of("blake2b-272", 0xb222, Multihash.Status.Draft); - /** Multihash: blake2b-280, status = Draft, code = 0xb223 */ - public static final Multihash BLAKE2B_280 = Multihash.of("blake2b-280", 0xb223); + /** Multihash: blake2b-280, status = draft, code = 0xb223 */ + public static final Multihash BLAKE2B_280 = Multihash.of("blake2b-280", 0xb223, Multihash.Status.Draft); - /** Multihash: blake2b-288, status = Draft, code = 0xb224 */ - public static final Multihash BLAKE2B_288 = Multihash.of("blake2b-288", 0xb224); + /** Multihash: blake2b-288, status = draft, code = 0xb224 */ + public static final Multihash BLAKE2B_288 = Multihash.of("blake2b-288", 0xb224, Multihash.Status.Draft); - /** Multihash: blake2b-296, status = Draft, code = 0xb225 */ - public static final Multihash BLAKE2B_296 = Multihash.of("blake2b-296", 0xb225); + /** Multihash: blake2b-296, status = draft, code = 0xb225 */ + public static final Multihash BLAKE2B_296 = Multihash.of("blake2b-296", 0xb225, Multihash.Status.Draft); - /** Multihash: blake2b-304, status = Draft, code = 0xb226 */ - public static final Multihash BLAKE2B_304 = Multihash.of("blake2b-304", 0xb226); + /** Multihash: blake2b-304, status = draft, code = 0xb226 */ + public static final Multihash BLAKE2B_304 = Multihash.of("blake2b-304", 0xb226, Multihash.Status.Draft); - /** Multihash: blake2b-312, status = Draft, code = 0xb227 */ - public static final Multihash BLAKE2B_312 = Multihash.of("blake2b-312", 0xb227); + /** Multihash: blake2b-312, status = draft, code = 0xb227 */ + public static final Multihash BLAKE2B_312 = Multihash.of("blake2b-312", 0xb227, Multihash.Status.Draft); - /** Multihash: blake2b-32, status = Draft, code = 0xb204 */ - public static final Multihash BLAKE2B_32 = Multihash.of("blake2b-32", 0xb204); + /** Multihash: blake2b-32, status = draft, code = 0xb204 */ + public static final Multihash BLAKE2B_32 = Multihash.of("blake2b-32", 0xb204, Multihash.Status.Draft); - /** Multihash: blake2b-320, status = Draft, code = 0xb228 */ - public static final Multihash BLAKE2B_320 = Multihash.of("blake2b-320", 0xb228); + /** Multihash: blake2b-320, status = draft, code = 0xb228 */ + public static final Multihash BLAKE2B_320 = Multihash.of("blake2b-320", 0xb228, Multihash.Status.Draft); - /** Multihash: blake2b-328, status = Draft, code = 0xb229 */ - public static final Multihash BLAKE2B_328 = Multihash.of("blake2b-328", 0xb229); + /** Multihash: blake2b-328, status = draft, code = 0xb229 */ + public static final Multihash BLAKE2B_328 = Multihash.of("blake2b-328", 0xb229, Multihash.Status.Draft); - /** Multihash: blake2b-336, status = Draft, code = 0xb22a */ - public static final Multihash BLAKE2B_336 = Multihash.of("blake2b-336", 0xb22a); + /** Multihash: blake2b-336, status = draft, code = 0xb22a */ + public static final Multihash BLAKE2B_336 = Multihash.of("blake2b-336", 0xb22a, Multihash.Status.Draft); - /** Multihash: blake2b-344, status = Draft, code = 0xb22b */ - public static final Multihash BLAKE2B_344 = Multihash.of("blake2b-344", 0xb22b); + /** Multihash: blake2b-344, status = draft, code = 0xb22b */ + public static final Multihash BLAKE2B_344 = Multihash.of("blake2b-344", 0xb22b, Multihash.Status.Draft); - /** Multihash: blake2b-352, status = Draft, code = 0xb22c */ - public static final Multihash BLAKE2B_352 = Multihash.of("blake2b-352", 0xb22c); + /** Multihash: blake2b-352, status = draft, code = 0xb22c */ + public static final Multihash BLAKE2B_352 = Multihash.of("blake2b-352", 0xb22c, Multihash.Status.Draft); - /** Multihash: blake2b-360, status = Draft, code = 0xb22d */ - public static final Multihash BLAKE2B_360 = Multihash.of("blake2b-360", 0xb22d); + /** Multihash: blake2b-360, status = draft, code = 0xb22d */ + public static final Multihash BLAKE2B_360 = Multihash.of("blake2b-360", 0xb22d, Multihash.Status.Draft); - /** Multihash: blake2b-368, status = Draft, code = 0xb22e */ - public static final Multihash BLAKE2B_368 = Multihash.of("blake2b-368", 0xb22e); + /** Multihash: blake2b-368, status = draft, code = 0xb22e */ + public static final Multihash BLAKE2B_368 = Multihash.of("blake2b-368", 0xb22e, Multihash.Status.Draft); - /** Multihash: blake2b-376, status = Draft, code = 0xb22f */ - public static final Multihash BLAKE2B_376 = Multihash.of("blake2b-376", 0xb22f); + /** Multihash: blake2b-376, status = draft, code = 0xb22f */ + public static final Multihash BLAKE2B_376 = Multihash.of("blake2b-376", 0xb22f, Multihash.Status.Draft); - /** Multihash: blake2b-384, status = Draft, code = 0xb230 */ - public static final Multihash BLAKE2B_384 = Multihash.of("blake2b-384", 0xb230); + /** Multihash: blake2b-384, status = draft, code = 0xb230 */ + public static final Multihash BLAKE2B_384 = Multihash.of("blake2b-384", 0xb230, Multihash.Status.Draft); - /** Multihash: blake2b-392, status = Draft, code = 0xb231 */ - public static final Multihash BLAKE2B_392 = Multihash.of("blake2b-392", 0xb231); + /** Multihash: blake2b-392, status = draft, code = 0xb231 */ + public static final Multihash BLAKE2B_392 = Multihash.of("blake2b-392", 0xb231, Multihash.Status.Draft); - /** Multihash: blake2b-40, status = Draft, code = 0xb205 */ - public static final Multihash BLAKE2B_40 = Multihash.of("blake2b-40", 0xb205); + /** Multihash: blake2b-40, status = draft, code = 0xb205 */ + public static final Multihash BLAKE2B_40 = Multihash.of("blake2b-40", 0xb205, Multihash.Status.Draft); - /** Multihash: blake2b-400, status = Draft, code = 0xb232 */ - public static final Multihash BLAKE2B_400 = Multihash.of("blake2b-400", 0xb232); + /** Multihash: blake2b-400, status = draft, code = 0xb232 */ + public static final Multihash BLAKE2B_400 = Multihash.of("blake2b-400", 0xb232, Multihash.Status.Draft); - /** Multihash: blake2b-408, status = Draft, code = 0xb233 */ - public static final Multihash BLAKE2B_408 = Multihash.of("blake2b-408", 0xb233); + /** Multihash: blake2b-408, status = draft, code = 0xb233 */ + public static final Multihash BLAKE2B_408 = Multihash.of("blake2b-408", 0xb233, Multihash.Status.Draft); - /** Multihash: blake2b-416, status = Draft, code = 0xb234 */ - public static final Multihash BLAKE2B_416 = Multihash.of("blake2b-416", 0xb234); + /** Multihash: blake2b-416, status = draft, code = 0xb234 */ + public static final Multihash BLAKE2B_416 = Multihash.of("blake2b-416", 0xb234, Multihash.Status.Draft); - /** Multihash: blake2b-424, status = Draft, code = 0xb235 */ - public static final Multihash BLAKE2B_424 = Multihash.of("blake2b-424", 0xb235); + /** Multihash: blake2b-424, status = draft, code = 0xb235 */ + public static final Multihash BLAKE2B_424 = Multihash.of("blake2b-424", 0xb235, Multihash.Status.Draft); - /** Multihash: blake2b-432, status = Draft, code = 0xb236 */ - public static final Multihash BLAKE2B_432 = Multihash.of("blake2b-432", 0xb236); + /** Multihash: blake2b-432, status = draft, code = 0xb236 */ + public static final Multihash BLAKE2B_432 = Multihash.of("blake2b-432", 0xb236, Multihash.Status.Draft); - /** Multihash: blake2b-440, status = Draft, code = 0xb237 */ - public static final Multihash BLAKE2B_440 = Multihash.of("blake2b-440", 0xb237); + /** Multihash: blake2b-440, status = draft, code = 0xb237 */ + public static final Multihash BLAKE2B_440 = Multihash.of("blake2b-440", 0xb237, Multihash.Status.Draft); - /** Multihash: blake2b-448, status = Draft, code = 0xb238 */ - public static final Multihash BLAKE2B_448 = Multihash.of("blake2b-448", 0xb238); + /** Multihash: blake2b-448, status = draft, code = 0xb238 */ + public static final Multihash BLAKE2B_448 = Multihash.of("blake2b-448", 0xb238, Multihash.Status.Draft); - /** Multihash: blake2b-456, status = Draft, code = 0xb239 */ - public static final Multihash BLAKE2B_456 = Multihash.of("blake2b-456", 0xb239); + /** Multihash: blake2b-456, status = draft, code = 0xb239 */ + public static final Multihash BLAKE2B_456 = Multihash.of("blake2b-456", 0xb239, Multihash.Status.Draft); - /** Multihash: blake2b-464, status = Draft, code = 0xb23a */ - public static final Multihash BLAKE2B_464 = Multihash.of("blake2b-464", 0xb23a); + /** Multihash: blake2b-464, status = draft, code = 0xb23a */ + public static final Multihash BLAKE2B_464 = Multihash.of("blake2b-464", 0xb23a, Multihash.Status.Draft); - /** Multihash: blake2b-472, status = Draft, code = 0xb23b */ - public static final Multihash BLAKE2B_472 = Multihash.of("blake2b-472", 0xb23b); + /** Multihash: blake2b-472, status = draft, code = 0xb23b */ + public static final Multihash BLAKE2B_472 = Multihash.of("blake2b-472", 0xb23b, Multihash.Status.Draft); - /** Multihash: blake2b-48, status = Draft, code = 0xb206 */ - public static final Multihash BLAKE2B_48 = Multihash.of("blake2b-48", 0xb206); + /** Multihash: blake2b-48, status = draft, code = 0xb206 */ + public static final Multihash BLAKE2B_48 = Multihash.of("blake2b-48", 0xb206, Multihash.Status.Draft); - /** Multihash: blake2b-480, status = Draft, code = 0xb23c */ - public static final Multihash BLAKE2B_480 = Multihash.of("blake2b-480", 0xb23c); + /** Multihash: blake2b-480, status = draft, code = 0xb23c */ + public static final Multihash BLAKE2B_480 = Multihash.of("blake2b-480", 0xb23c, Multihash.Status.Draft); - /** Multihash: blake2b-488, status = Draft, code = 0xb23d */ - public static final Multihash BLAKE2B_488 = Multihash.of("blake2b-488", 0xb23d); + /** Multihash: blake2b-488, status = draft, code = 0xb23d */ + public static final Multihash BLAKE2B_488 = Multihash.of("blake2b-488", 0xb23d, Multihash.Status.Draft); - /** Multihash: blake2b-496, status = Draft, code = 0xb23e */ - public static final Multihash BLAKE2B_496 = Multihash.of("blake2b-496", 0xb23e); + /** Multihash: blake2b-496, status = draft, code = 0xb23e */ + public static final Multihash BLAKE2B_496 = Multihash.of("blake2b-496", 0xb23e, Multihash.Status.Draft); - /** Multihash: blake2b-504, status = Draft, code = 0xb23f */ - public static final Multihash BLAKE2B_504 = Multihash.of("blake2b-504", 0xb23f); + /** Multihash: blake2b-504, status = draft, code = 0xb23f */ + public static final Multihash BLAKE2B_504 = Multihash.of("blake2b-504", 0xb23f, Multihash.Status.Draft); - /** Multihash: blake2b-512, status = Draft, code = 0xb240 */ - public static final Multihash BLAKE2B_512 = Multihash.of("blake2b-512", 0xb240); + /** Multihash: blake2b-512, status = draft, code = 0xb240 */ + public static final Multihash BLAKE2B_512 = Multihash.of("blake2b-512", 0xb240, Multihash.Status.Draft); - /** Multihash: blake2b-56, status = Draft, code = 0xb207 */ - public static final Multihash BLAKE2B_56 = Multihash.of("blake2b-56", 0xb207); + /** Multihash: blake2b-56, status = draft, code = 0xb207 */ + public static final Multihash BLAKE2B_56 = Multihash.of("blake2b-56", 0xb207, Multihash.Status.Draft); - /** Multihash: blake2b-64, status = Draft, code = 0xb208 */ - public static final Multihash BLAKE2B_64 = Multihash.of("blake2b-64", 0xb208); + /** Multihash: blake2b-64, status = draft, code = 0xb208 */ + public static final Multihash BLAKE2B_64 = Multihash.of("blake2b-64", 0xb208, Multihash.Status.Draft); - /** Multihash: blake2b-72, status = Draft, code = 0xb209 */ - public static final Multihash BLAKE2B_72 = Multihash.of("blake2b-72", 0xb209); + /** Multihash: blake2b-72, status = draft, code = 0xb209 */ + public static final Multihash BLAKE2B_72 = Multihash.of("blake2b-72", 0xb209, Multihash.Status.Draft); - /** Multihash: blake2b-8, Blake2b consists of 64 output lengths that give different hashes, status = Draft, code = 0xb201 */ - public static final Multihash BLAKE2B_8 = Multihash.of("blake2b-8", 0xb201); + /** Multihash: blake2b-8, Blake2b consists of 64 output lengths that give different hashes, status = draft, code = 0xb201 */ + public static final Multihash BLAKE2B_8 = Multihash.of("blake2b-8", 0xb201, Multihash.Status.Draft); - /** Multihash: blake2b-80, status = Draft, code = 0xb20a */ - public static final Multihash BLAKE2B_80 = Multihash.of("blake2b-80", 0xb20a); + /** Multihash: blake2b-80, status = draft, code = 0xb20a */ + public static final Multihash BLAKE2B_80 = Multihash.of("blake2b-80", 0xb20a, Multihash.Status.Draft); - /** Multihash: blake2b-88, status = Draft, code = 0xb20b */ - public static final Multihash BLAKE2B_88 = Multihash.of("blake2b-88", 0xb20b); + /** Multihash: blake2b-88, status = draft, code = 0xb20b */ + public static final Multihash BLAKE2B_88 = Multihash.of("blake2b-88", 0xb20b, Multihash.Status.Draft); - /** Multihash: blake2b-96, status = Draft, code = 0xb20c */ - public static final Multihash BLAKE2B_96 = Multihash.of("blake2b-96", 0xb20c); + /** Multihash: blake2b-96, status = draft, code = 0xb20c */ + public static final Multihash BLAKE2B_96 = Multihash.of("blake2b-96", 0xb20c, Multihash.Status.Draft); - /** Multihash: blake2s-104, status = Draft, code = 0xb24d */ - public static final Multihash BLAKE2S_104 = Multihash.of("blake2s-104", 0xb24d); + /** Multihash: blake2s-104, status = draft, code = 0xb24d */ + public static final Multihash BLAKE2S_104 = Multihash.of("blake2s-104", 0xb24d, Multihash.Status.Draft); - /** Multihash: blake2s-112, status = Draft, code = 0xb24e */ - public static final Multihash BLAKE2S_112 = Multihash.of("blake2s-112", 0xb24e); + /** Multihash: blake2s-112, status = draft, code = 0xb24e */ + public static final Multihash BLAKE2S_112 = Multihash.of("blake2s-112", 0xb24e, Multihash.Status.Draft); - /** Multihash: blake2s-120, status = Draft, code = 0xb24f */ - public static final Multihash BLAKE2S_120 = Multihash.of("blake2s-120", 0xb24f); + /** Multihash: blake2s-120, status = draft, code = 0xb24f */ + public static final Multihash BLAKE2S_120 = Multihash.of("blake2s-120", 0xb24f, Multihash.Status.Draft); - /** Multihash: blake2s-128, status = Draft, code = 0xb250 */ - public static final Multihash BLAKE2S_128 = Multihash.of("blake2s-128", 0xb250); + /** Multihash: blake2s-128, status = draft, code = 0xb250 */ + public static final Multihash BLAKE2S_128 = Multihash.of("blake2s-128", 0xb250, Multihash.Status.Draft); - /** Multihash: blake2s-136, status = Draft, code = 0xb251 */ - public static final Multihash BLAKE2S_136 = Multihash.of("blake2s-136", 0xb251); + /** Multihash: blake2s-136, status = draft, code = 0xb251 */ + public static final Multihash BLAKE2S_136 = Multihash.of("blake2s-136", 0xb251, Multihash.Status.Draft); - /** Multihash: blake2s-144, status = Draft, code = 0xb252 */ - public static final Multihash BLAKE2S_144 = Multihash.of("blake2s-144", 0xb252); + /** Multihash: blake2s-144, status = draft, code = 0xb252 */ + public static final Multihash BLAKE2S_144 = Multihash.of("blake2s-144", 0xb252, Multihash.Status.Draft); - /** Multihash: blake2s-152, status = Draft, code = 0xb253 */ - public static final Multihash BLAKE2S_152 = Multihash.of("blake2s-152", 0xb253); + /** Multihash: blake2s-152, status = draft, code = 0xb253 */ + public static final Multihash BLAKE2S_152 = Multihash.of("blake2s-152", 0xb253, Multihash.Status.Draft); - /** Multihash: blake2s-16, status = Draft, code = 0xb242 */ - public static final Multihash BLAKE2S_16 = Multihash.of("blake2s-16", 0xb242); + /** Multihash: blake2s-16, status = draft, code = 0xb242 */ + public static final Multihash BLAKE2S_16 = Multihash.of("blake2s-16", 0xb242, Multihash.Status.Draft); - /** Multihash: blake2s-160, status = Draft, code = 0xb254 */ - public static final Multihash BLAKE2S_160 = Multihash.of("blake2s-160", 0xb254); + /** Multihash: blake2s-160, status = draft, code = 0xb254 */ + public static final Multihash BLAKE2S_160 = Multihash.of("blake2s-160", 0xb254, Multihash.Status.Draft); - /** Multihash: blake2s-168, status = Draft, code = 0xb255 */ - public static final Multihash BLAKE2S_168 = Multihash.of("blake2s-168", 0xb255); + /** Multihash: blake2s-168, status = draft, code = 0xb255 */ + public static final Multihash BLAKE2S_168 = Multihash.of("blake2s-168", 0xb255, Multihash.Status.Draft); - /** Multihash: blake2s-176, status = Draft, code = 0xb256 */ - public static final Multihash BLAKE2S_176 = Multihash.of("blake2s-176", 0xb256); + /** Multihash: blake2s-176, status = draft, code = 0xb256 */ + public static final Multihash BLAKE2S_176 = Multihash.of("blake2s-176", 0xb256, Multihash.Status.Draft); - /** Multihash: blake2s-184, status = Draft, code = 0xb257 */ - public static final Multihash BLAKE2S_184 = Multihash.of("blake2s-184", 0xb257); + /** Multihash: blake2s-184, status = draft, code = 0xb257 */ + public static final Multihash BLAKE2S_184 = Multihash.of("blake2s-184", 0xb257, Multihash.Status.Draft); - /** Multihash: blake2s-192, status = Draft, code = 0xb258 */ - public static final Multihash BLAKE2S_192 = Multihash.of("blake2s-192", 0xb258); + /** Multihash: blake2s-192, status = draft, code = 0xb258 */ + public static final Multihash BLAKE2S_192 = Multihash.of("blake2s-192", 0xb258, Multihash.Status.Draft); - /** Multihash: blake2s-200, status = Draft, code = 0xb259 */ - public static final Multihash BLAKE2S_200 = Multihash.of("blake2s-200", 0xb259); + /** Multihash: blake2s-200, status = draft, code = 0xb259 */ + public static final Multihash BLAKE2S_200 = Multihash.of("blake2s-200", 0xb259, Multihash.Status.Draft); - /** Multihash: blake2s-208, status = Draft, code = 0xb25a */ - public static final Multihash BLAKE2S_208 = Multihash.of("blake2s-208", 0xb25a); + /** Multihash: blake2s-208, status = draft, code = 0xb25a */ + public static final Multihash BLAKE2S_208 = Multihash.of("blake2s-208", 0xb25a, Multihash.Status.Draft); - /** Multihash: blake2s-216, status = Draft, code = 0xb25b */ - public static final Multihash BLAKE2S_216 = Multihash.of("blake2s-216", 0xb25b); + /** Multihash: blake2s-216, status = draft, code = 0xb25b */ + public static final Multihash BLAKE2S_216 = Multihash.of("blake2s-216", 0xb25b, Multihash.Status.Draft); - /** Multihash: blake2s-224, status = Draft, code = 0xb25c */ - public static final Multihash BLAKE2S_224 = Multihash.of("blake2s-224", 0xb25c); + /** Multihash: blake2s-224, status = draft, code = 0xb25c */ + public static final Multihash BLAKE2S_224 = Multihash.of("blake2s-224", 0xb25c, Multihash.Status.Draft); - /** Multihash: blake2s-232, status = Draft, code = 0xb25d */ - public static final Multihash BLAKE2S_232 = Multihash.of("blake2s-232", 0xb25d); + /** Multihash: blake2s-232, status = draft, code = 0xb25d */ + public static final Multihash BLAKE2S_232 = Multihash.of("blake2s-232", 0xb25d, Multihash.Status.Draft); - /** Multihash: blake2s-24, status = Draft, code = 0xb243 */ - public static final Multihash BLAKE2S_24 = Multihash.of("blake2s-24", 0xb243); + /** Multihash: blake2s-24, status = draft, code = 0xb243 */ + public static final Multihash BLAKE2S_24 = Multihash.of("blake2s-24", 0xb243, Multihash.Status.Draft); - /** Multihash: blake2s-240, status = Draft, code = 0xb25e */ - public static final Multihash BLAKE2S_240 = Multihash.of("blake2s-240", 0xb25e); + /** Multihash: blake2s-240, status = draft, code = 0xb25e */ + public static final Multihash BLAKE2S_240 = Multihash.of("blake2s-240", 0xb25e, Multihash.Status.Draft); - /** Multihash: blake2s-248, status = Draft, code = 0xb25f */ - public static final Multihash BLAKE2S_248 = Multihash.of("blake2s-248", 0xb25f); + /** Multihash: blake2s-248, status = draft, code = 0xb25f */ + public static final Multihash BLAKE2S_248 = Multihash.of("blake2s-248", 0xb25f, Multihash.Status.Draft); - /** Multihash: blake2s-256, status = Draft, code = 0xb260 */ - public static final Multihash BLAKE2S_256 = Multihash.of("blake2s-256", 0xb260); + /** Multihash: blake2s-256, status = draft, code = 0xb260 */ + public static final Multihash BLAKE2S_256 = Multihash.of("blake2s-256", 0xb260, Multihash.Status.Draft); - /** Multihash: blake2s-32, status = Draft, code = 0xb244 */ - public static final Multihash BLAKE2S_32 = Multihash.of("blake2s-32", 0xb244); + /** Multihash: blake2s-32, status = draft, code = 0xb244 */ + public static final Multihash BLAKE2S_32 = Multihash.of("blake2s-32", 0xb244, Multihash.Status.Draft); - /** Multihash: blake2s-40, status = Draft, code = 0xb245 */ - public static final Multihash BLAKE2S_40 = Multihash.of("blake2s-40", 0xb245); + /** Multihash: blake2s-40, status = draft, code = 0xb245 */ + public static final Multihash BLAKE2S_40 = Multihash.of("blake2s-40", 0xb245, Multihash.Status.Draft); - /** Multihash: blake2s-48, status = Draft, code = 0xb246 */ - public static final Multihash BLAKE2S_48 = Multihash.of("blake2s-48", 0xb246); + /** Multihash: blake2s-48, status = draft, code = 0xb246 */ + public static final Multihash BLAKE2S_48 = Multihash.of("blake2s-48", 0xb246, Multihash.Status.Draft); - /** Multihash: blake2s-56, status = Draft, code = 0xb247 */ - public static final Multihash BLAKE2S_56 = Multihash.of("blake2s-56", 0xb247); + /** Multihash: blake2s-56, status = draft, code = 0xb247 */ + public static final Multihash BLAKE2S_56 = Multihash.of("blake2s-56", 0xb247, Multihash.Status.Draft); - /** Multihash: blake2s-64, status = Draft, code = 0xb248 */ - public static final Multihash BLAKE2S_64 = Multihash.of("blake2s-64", 0xb248); + /** Multihash: blake2s-64, status = draft, code = 0xb248 */ + public static final Multihash BLAKE2S_64 = Multihash.of("blake2s-64", 0xb248, Multihash.Status.Draft); - /** Multihash: blake2s-72, status = Draft, code = 0xb249 */ - public static final Multihash BLAKE2S_72 = Multihash.of("blake2s-72", 0xb249); + /** Multihash: blake2s-72, status = draft, code = 0xb249 */ + public static final Multihash BLAKE2S_72 = Multihash.of("blake2s-72", 0xb249, Multihash.Status.Draft); - /** Multihash: blake2s-8, Blake2s consists of 32 output lengths that give different hashes, status = Draft, code = 0xb241 */ - public static final Multihash BLAKE2S_8 = Multihash.of("blake2s-8", 0xb241); + /** Multihash: blake2s-8, Blake2s consists of 32 output lengths that give different hashes, status = draft, code = 0xb241 */ + public static final Multihash BLAKE2S_8 = Multihash.of("blake2s-8", 0xb241, Multihash.Status.Draft); - /** Multihash: blake2s-80, status = Draft, code = 0xb24a */ - public static final Multihash BLAKE2S_80 = Multihash.of("blake2s-80", 0xb24a); + /** Multihash: blake2s-80, status = draft, code = 0xb24a */ + public static final Multihash BLAKE2S_80 = Multihash.of("blake2s-80", 0xb24a, Multihash.Status.Draft); - /** Multihash: blake2s-88, status = Draft, code = 0xb24b */ - public static final Multihash BLAKE2S_88 = Multihash.of("blake2s-88", 0xb24b); + /** Multihash: blake2s-88, status = draft, code = 0xb24b */ + public static final Multihash BLAKE2S_88 = Multihash.of("blake2s-88", 0xb24b, Multihash.Status.Draft); - /** Multihash: blake2s-96, status = Draft, code = 0xb24c */ - public static final Multihash BLAKE2S_96 = Multihash.of("blake2s-96", 0xb24c); + /** Multihash: blake2s-96, status = draft, code = 0xb24c */ + public static final Multihash BLAKE2S_96 = Multihash.of("blake2s-96", 0xb24c, Multihash.Status.Draft); - /** Multihash: blake3, BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes., status = Draft, code = 0x1e */ - public static final Multihash BLAKE3 = Multihash.of("blake3", 0x1e); + /** Multihash: blake3, BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes., status = draft, code = 0x1e */ + public static final Multihash BLAKE3 = Multihash.of("blake3", 0x1e, Multihash.Status.Draft); - /** Multihash: dbl-sha2-256, status = Draft, code = 0x56 */ - public static final Multihash DBL_SHA2_256 = Multihash.of("dbl-sha2-256", 0x56); + /** Multihash: dbl-sha2-256, status = draft, code = 0x56 */ + public static final Multihash DBL_SHA2_256 = Multihash.of("dbl-sha2-256", 0x56, Multihash.Status.Draft); - /** Multihash: identity, raw binary, status = Permanent, code = 0x0 */ - public static final Multihash IDENTITY = Multihash.of("identity", 0x0); + /** Multihash: identity, raw binary, status = permanent, code = 0x0 */ + public static final Multihash IDENTITY = Multihash.of("identity", 0x0, Multihash.Status.Permanent); - /** Multihash: kangarootwelve, KangarooTwelve is an extendable-output hash function based on Keccak-p, status = Draft, code = 0x1d01 */ - public static final Multihash KANGAROOTWELVE = Multihash.of("kangarootwelve", 0x1d01); + /** Multihash: kangarootwelve, KangarooTwelve is an extendable-output hash function based on Keccak-p, status = draft, code = 0x1d01 */ + public static final Multihash KANGAROOTWELVE = Multihash.of("kangarootwelve", 0x1d01, Multihash.Status.Draft); - /** Multihash: keccak-224, keccak has variable output length. The number specifies the core length, status = Draft, code = 0x1a */ - public static final Multihash KECCAK_224 = Multihash.of("keccak-224", 0x1a); + /** Multihash: keccak-224, keccak has variable output length. The number specifies the core length, status = draft, code = 0x1a */ + public static final Multihash KECCAK_224 = Multihash.of("keccak-224", 0x1a, Multihash.Status.Draft); - /** Multihash: keccak-256, status = Draft, code = 0x1b */ - public static final Multihash KECCAK_256 = Multihash.of("keccak-256", 0x1b); + /** Multihash: keccak-256, status = draft, code = 0x1b */ + public static final Multihash KECCAK_256 = Multihash.of("keccak-256", 0x1b, Multihash.Status.Draft); - /** Multihash: keccak-384, status = Draft, code = 0x1c */ - public static final Multihash KECCAK_384 = Multihash.of("keccak-384", 0x1c); + /** Multihash: keccak-384, status = draft, code = 0x1c */ + public static final Multihash KECCAK_384 = Multihash.of("keccak-384", 0x1c, Multihash.Status.Draft); - /** Multihash: keccak-512, status = Draft, code = 0x1d */ - public static final Multihash KECCAK_512 = Multihash.of("keccak-512", 0x1d); + /** Multihash: keccak-512, status = draft, code = 0x1d */ + public static final Multihash KECCAK_512 = Multihash.of("keccak-512", 0x1d, Multihash.Status.Draft); - /** Multihash: md4, status = Draft, code = 0xd4 */ - public static final Multihash MD4 = Multihash.of("md4", 0xd4); + /** Multihash: md4, status = draft, code = 0xd4 */ + public static final Multihash MD4 = Multihash.of("md4", 0xd4, Multihash.Status.Draft); - /** Multihash: md5, status = Draft, code = 0xd5 */ - public static final Multihash MD5 = Multihash.of("md5", 0xd5); + /** Multihash: md5, status = draft, code = 0xd5 */ + public static final Multihash MD5 = Multihash.of("md5", 0xd5, Multihash.Status.Draft); - /** Multihash: poseidon-bls12_381-a2-fc1, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters, status = Permanent, code = 0xb401 */ - public static final Multihash POSEIDON_BLS12_381_A2_FC1 = Multihash.of("poseidon-bls12_381-a2-fc1", 0xb401); + /** Multihash: poseidon-bls12_381-a2-fc1, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters, status = permanent, code = 0xb401 */ + public static final Multihash POSEIDON_BLS12_381_A2_FC1 = Multihash.of("poseidon-bls12_381-a2-fc1", 0xb401, Multihash.Status.Permanent); - /** Multihash: poseidon-bls12_381-a2-fc1-sc, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters - high-security variant, status = Draft, code = 0xb402 */ - public static final Multihash POSEIDON_BLS12_381_A2_FC1_SC = Multihash.of("poseidon-bls12_381-a2-fc1-sc", 0xb402); + /** Multihash: poseidon-bls12_381-a2-fc1-sc, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters - high-security variant, status = draft, code = 0xb402 */ + public static final Multihash POSEIDON_BLS12_381_A2_FC1_SC = Multihash.of("poseidon-bls12_381-a2-fc1-sc", 0xb402, Multihash.Status.Draft); - /** Multihash: ripemd-128, status = Draft, code = 0x1052 */ - public static final Multihash RIPEMD_128 = Multihash.of("ripemd-128", 0x1052); + /** Multihash: ripemd-128, status = draft, code = 0x1052 */ + public static final Multihash RIPEMD_128 = Multihash.of("ripemd-128", 0x1052, Multihash.Status.Draft); - /** Multihash: ripemd-160, status = Draft, code = 0x1053 */ - public static final Multihash RIPEMD_160 = Multihash.of("ripemd-160", 0x1053); + /** Multihash: ripemd-160, status = draft, code = 0x1053 */ + public static final Multihash RIPEMD_160 = Multihash.of("ripemd-160", 0x1053, Multihash.Status.Draft); - /** Multihash: ripemd-256, status = Draft, code = 0x1054 */ - public static final Multihash RIPEMD_256 = Multihash.of("ripemd-256", 0x1054); + /** Multihash: ripemd-256, status = draft, code = 0x1054 */ + public static final Multihash RIPEMD_256 = Multihash.of("ripemd-256", 0x1054, Multihash.Status.Draft); - /** Multihash: ripemd-320, status = Draft, code = 0x1055 */ - public static final Multihash RIPEMD_320 = Multihash.of("ripemd-320", 0x1055); + /** Multihash: ripemd-320, status = draft, code = 0x1055 */ + public static final Multihash RIPEMD_320 = Multihash.of("ripemd-320", 0x1055, Multihash.Status.Draft); - /** Multihash: sha1, status = Permanent, code = 0x11 */ - public static final Multihash SHA1 = Multihash.of("sha1", 0x11); + /** Multihash: sha1, status = permanent, code = 0x11 */ + public static final Multihash SHA1 = Multihash.of("sha1", 0x11, Multihash.Status.Permanent); - /** Multihash: sha2-224, aka SHA-224; as specified by FIPS 180-4., status = Permanent, code = 0x1013 */ - public static final Multihash SHA2_224 = Multihash.of("sha2-224", 0x1013); + /** Multihash: sha2-224, aka SHA-224; as specified by FIPS 180-4., status = permanent, code = 0x1013 */ + public static final Multihash SHA2_224 = Multihash.of("sha2-224", 0x1013, Multihash.Status.Permanent); - /** Multihash: sha2-256, status = Permanent, code = 0x12 */ - public static final Multihash SHA2_256 = Multihash.of("sha2-256", 0x12); + /** Multihash: sha2-256, status = permanent, code = 0x12 */ + public static final Multihash SHA2_256 = Multihash.of("sha2-256", 0x12, Multihash.Status.Permanent); - /** Multihash: sha2-256-chunked, Hash of concatenated SHA2-256 digests of 8*2^n MiB source chunks; n = ceil(log2(source_size/(10^4 * 8MiB))), status = Draft, code = 0xb510 */ - public static final Multihash SHA2_256_CHUNKED = Multihash.of("sha2-256-chunked", 0xb510); + /** Multihash: sha2-256-chunked, Hash of concatenated SHA2-256 digests of 8*2^n MiB source chunks; n = ceil(log2(source_size/(10^4 * 8MiB))), status = draft, code = 0xb510 */ + public static final Multihash SHA2_256_CHUNKED = Multihash.of("sha2-256-chunked", 0xb510, Multihash.Status.Draft); - /** Multihash: sha2-256-trunc254-padded, SHA2-256 with the two most significant bits from the last byte zeroed (as via a mask with 0b00111111) - used for proving trees as in Filecoin, status = Permanent, code = 0x1012 */ - public static final Multihash SHA2_256_TRUNC254_PADDED = Multihash.of("sha2-256-trunc254-padded", 0x1012); + /** Multihash: sha2-256-trunc254-padded, SHA2-256 with the two most significant bits from the last byte zeroed (as via a mask with 0b00111111) - used for proving trees as in Filecoin, status = permanent, code = 0x1012 */ + public static final Multihash SHA2_256_TRUNC254_PADDED = Multihash.of("sha2-256-trunc254-padded", 0x1012, Multihash.Status.Permanent); - /** Multihash: sha2-384, aka SHA-384; as specified by FIPS 180-4., status = Permanent, code = 0x20 */ - public static final Multihash SHA2_384 = Multihash.of("sha2-384", 0x20); + /** Multihash: sha2-384, aka SHA-384; as specified by FIPS 180-4., status = permanent, code = 0x20 */ + public static final Multihash SHA2_384 = Multihash.of("sha2-384", 0x20, Multihash.Status.Permanent); - /** Multihash: sha2-512, status = Permanent, code = 0x13 */ - public static final Multihash SHA2_512 = Multihash.of("sha2-512", 0x13); + /** Multihash: sha2-512, status = permanent, code = 0x13 */ + public static final Multihash SHA2_512 = Multihash.of("sha2-512", 0x13, Multihash.Status.Permanent); - /** Multihash: sha2-512-224, aka SHA-512/224; as specified by FIPS 180-4., status = Permanent, code = 0x1014 */ - public static final Multihash SHA2_512_224 = Multihash.of("sha2-512-224", 0x1014); + /** Multihash: sha2-512-224, aka SHA-512/224; as specified by FIPS 180-4., status = permanent, code = 0x1014 */ + public static final Multihash SHA2_512_224 = Multihash.of("sha2-512-224", 0x1014, Multihash.Status.Permanent); - /** Multihash: sha2-512-256, aka SHA-512/256; as specified by FIPS 180-4., status = Permanent, code = 0x1015 */ - public static final Multihash SHA2_512_256 = Multihash.of("sha2-512-256", 0x1015); + /** Multihash: sha2-512-256, aka SHA-512/256; as specified by FIPS 180-4., status = permanent, code = 0x1015 */ + public static final Multihash SHA2_512_256 = Multihash.of("sha2-512-256", 0x1015, Multihash.Status.Permanent); - /** Multihash: sha3-224, status = Permanent, code = 0x17 */ - public static final Multihash SHA3_224 = Multihash.of("sha3-224", 0x17); + /** Multihash: sha3-224, status = permanent, code = 0x17 */ + public static final Multihash SHA3_224 = Multihash.of("sha3-224", 0x17, Multihash.Status.Permanent); - /** Multihash: sha3-256, status = Permanent, code = 0x16 */ - public static final Multihash SHA3_256 = Multihash.of("sha3-256", 0x16); + /** Multihash: sha3-256, status = permanent, code = 0x16 */ + public static final Multihash SHA3_256 = Multihash.of("sha3-256", 0x16, Multihash.Status.Permanent); - /** Multihash: sha3-384, status = Permanent, code = 0x15 */ - public static final Multihash SHA3_384 = Multihash.of("sha3-384", 0x15); + /** Multihash: sha3-384, status = permanent, code = 0x15 */ + public static final Multihash SHA3_384 = Multihash.of("sha3-384", 0x15, Multihash.Status.Permanent); - /** Multihash: sha3-512, status = Permanent, code = 0x14 */ - public static final Multihash SHA3_512 = Multihash.of("sha3-512", 0x14); + /** Multihash: sha3-512, status = permanent, code = 0x14 */ + public static final Multihash SHA3_512 = Multihash.of("sha3-512", 0x14, Multihash.Status.Permanent); - /** Multihash: shake-128, status = Draft, code = 0x18 */ - public static final Multihash SHAKE_128 = Multihash.of("shake-128", 0x18); + /** Multihash: shake-128, status = draft, code = 0x18 */ + public static final Multihash SHAKE_128 = Multihash.of("shake-128", 0x18, Multihash.Status.Draft); - /** Multihash: shake-256, status = Draft, code = 0x19 */ - public static final Multihash SHAKE_256 = Multihash.of("shake-256", 0x19); + /** Multihash: shake-256, status = draft, code = 0x19 */ + public static final Multihash SHAKE_256 = Multihash.of("shake-256", 0x19, Multihash.Status.Draft); - /** Multihash: skein1024-1000, status = Draft, code = 0xb3dd */ - public static final Multihash SKEIN1024_1000 = Multihash.of("skein1024-1000", 0xb3dd); + /** Multihash: skein1024-1000, status = draft, code = 0xb3dd */ + public static final Multihash SKEIN1024_1000 = Multihash.of("skein1024-1000", 0xb3dd, Multihash.Status.Draft); - /** Multihash: skein1024-1008, status = Draft, code = 0xb3de */ - public static final Multihash SKEIN1024_1008 = Multihash.of("skein1024-1008", 0xb3de); + /** Multihash: skein1024-1008, status = draft, code = 0xb3de */ + public static final Multihash SKEIN1024_1008 = Multihash.of("skein1024-1008", 0xb3de, Multihash.Status.Draft); - /** Multihash: skein1024-1016, status = Draft, code = 0xb3df */ - public static final Multihash SKEIN1024_1016 = Multihash.of("skein1024-1016", 0xb3df); + /** Multihash: skein1024-1016, status = draft, code = 0xb3df */ + public static final Multihash SKEIN1024_1016 = Multihash.of("skein1024-1016", 0xb3df, Multihash.Status.Draft); - /** Multihash: skein1024-1024, status = Draft, code = 0xb3e0 */ - public static final Multihash SKEIN1024_1024 = Multihash.of("skein1024-1024", 0xb3e0); + /** Multihash: skein1024-1024, status = draft, code = 0xb3e0 */ + public static final Multihash SKEIN1024_1024 = Multihash.of("skein1024-1024", 0xb3e0, Multihash.Status.Draft); - /** Multihash: skein1024-104, status = Draft, code = 0xb36d */ - public static final Multihash SKEIN1024_104 = Multihash.of("skein1024-104", 0xb36d); + /** Multihash: skein1024-104, status = draft, code = 0xb36d */ + public static final Multihash SKEIN1024_104 = Multihash.of("skein1024-104", 0xb36d, Multihash.Status.Draft); - /** Multihash: skein1024-112, status = Draft, code = 0xb36e */ - public static final Multihash SKEIN1024_112 = Multihash.of("skein1024-112", 0xb36e); + /** Multihash: skein1024-112, status = draft, code = 0xb36e */ + public static final Multihash SKEIN1024_112 = Multihash.of("skein1024-112", 0xb36e, Multihash.Status.Draft); - /** Multihash: skein1024-120, status = Draft, code = 0xb36f */ - public static final Multihash SKEIN1024_120 = Multihash.of("skein1024-120", 0xb36f); + /** Multihash: skein1024-120, status = draft, code = 0xb36f */ + public static final Multihash SKEIN1024_120 = Multihash.of("skein1024-120", 0xb36f, Multihash.Status.Draft); - /** Multihash: skein1024-128, status = Draft, code = 0xb370 */ - public static final Multihash SKEIN1024_128 = Multihash.of("skein1024-128", 0xb370); + /** Multihash: skein1024-128, status = draft, code = 0xb370 */ + public static final Multihash SKEIN1024_128 = Multihash.of("skein1024-128", 0xb370, Multihash.Status.Draft); - /** Multihash: skein1024-136, status = Draft, code = 0xb371 */ - public static final Multihash SKEIN1024_136 = Multihash.of("skein1024-136", 0xb371); + /** Multihash: skein1024-136, status = draft, code = 0xb371 */ + public static final Multihash SKEIN1024_136 = Multihash.of("skein1024-136", 0xb371, Multihash.Status.Draft); - /** Multihash: skein1024-144, status = Draft, code = 0xb372 */ - public static final Multihash SKEIN1024_144 = Multihash.of("skein1024-144", 0xb372); + /** Multihash: skein1024-144, status = draft, code = 0xb372 */ + public static final Multihash SKEIN1024_144 = Multihash.of("skein1024-144", 0xb372, Multihash.Status.Draft); - /** Multihash: skein1024-152, status = Draft, code = 0xb373 */ - public static final Multihash SKEIN1024_152 = Multihash.of("skein1024-152", 0xb373); + /** Multihash: skein1024-152, status = draft, code = 0xb373 */ + public static final Multihash SKEIN1024_152 = Multihash.of("skein1024-152", 0xb373, Multihash.Status.Draft); - /** Multihash: skein1024-16, status = Draft, code = 0xb362 */ - public static final Multihash SKEIN1024_16 = Multihash.of("skein1024-16", 0xb362); + /** Multihash: skein1024-16, status = draft, code = 0xb362 */ + public static final Multihash SKEIN1024_16 = Multihash.of("skein1024-16", 0xb362, Multihash.Status.Draft); - /** Multihash: skein1024-160, status = Draft, code = 0xb374 */ - public static final Multihash SKEIN1024_160 = Multihash.of("skein1024-160", 0xb374); + /** Multihash: skein1024-160, status = draft, code = 0xb374 */ + public static final Multihash SKEIN1024_160 = Multihash.of("skein1024-160", 0xb374, Multihash.Status.Draft); - /** Multihash: skein1024-168, status = Draft, code = 0xb375 */ - public static final Multihash SKEIN1024_168 = Multihash.of("skein1024-168", 0xb375); + /** Multihash: skein1024-168, status = draft, code = 0xb375 */ + public static final Multihash SKEIN1024_168 = Multihash.of("skein1024-168", 0xb375, Multihash.Status.Draft); - /** Multihash: skein1024-176, status = Draft, code = 0xb376 */ - public static final Multihash SKEIN1024_176 = Multihash.of("skein1024-176", 0xb376); + /** Multihash: skein1024-176, status = draft, code = 0xb376 */ + public static final Multihash SKEIN1024_176 = Multihash.of("skein1024-176", 0xb376, Multihash.Status.Draft); - /** Multihash: skein1024-184, status = Draft, code = 0xb377 */ - public static final Multihash SKEIN1024_184 = Multihash.of("skein1024-184", 0xb377); + /** Multihash: skein1024-184, status = draft, code = 0xb377 */ + public static final Multihash SKEIN1024_184 = Multihash.of("skein1024-184", 0xb377, Multihash.Status.Draft); - /** Multihash: skein1024-192, status = Draft, code = 0xb378 */ - public static final Multihash SKEIN1024_192 = Multihash.of("skein1024-192", 0xb378); + /** Multihash: skein1024-192, status = draft, code = 0xb378 */ + public static final Multihash SKEIN1024_192 = Multihash.of("skein1024-192", 0xb378, Multihash.Status.Draft); - /** Multihash: skein1024-200, status = Draft, code = 0xb379 */ - public static final Multihash SKEIN1024_200 = Multihash.of("skein1024-200", 0xb379); + /** Multihash: skein1024-200, status = draft, code = 0xb379 */ + public static final Multihash SKEIN1024_200 = Multihash.of("skein1024-200", 0xb379, Multihash.Status.Draft); - /** Multihash: skein1024-208, status = Draft, code = 0xb37a */ - public static final Multihash SKEIN1024_208 = Multihash.of("skein1024-208", 0xb37a); + /** Multihash: skein1024-208, status = draft, code = 0xb37a */ + public static final Multihash SKEIN1024_208 = Multihash.of("skein1024-208", 0xb37a, Multihash.Status.Draft); - /** Multihash: skein1024-216, status = Draft, code = 0xb37b */ - public static final Multihash SKEIN1024_216 = Multihash.of("skein1024-216", 0xb37b); + /** Multihash: skein1024-216, status = draft, code = 0xb37b */ + public static final Multihash SKEIN1024_216 = Multihash.of("skein1024-216", 0xb37b, Multihash.Status.Draft); - /** Multihash: skein1024-224, status = Draft, code = 0xb37c */ - public static final Multihash SKEIN1024_224 = Multihash.of("skein1024-224", 0xb37c); + /** Multihash: skein1024-224, status = draft, code = 0xb37c */ + public static final Multihash SKEIN1024_224 = Multihash.of("skein1024-224", 0xb37c, Multihash.Status.Draft); - /** Multihash: skein1024-232, status = Draft, code = 0xb37d */ - public static final Multihash SKEIN1024_232 = Multihash.of("skein1024-232", 0xb37d); + /** Multihash: skein1024-232, status = draft, code = 0xb37d */ + public static final Multihash SKEIN1024_232 = Multihash.of("skein1024-232", 0xb37d, Multihash.Status.Draft); - /** Multihash: skein1024-24, status = Draft, code = 0xb363 */ - public static final Multihash SKEIN1024_24 = Multihash.of("skein1024-24", 0xb363); + /** Multihash: skein1024-24, status = draft, code = 0xb363 */ + public static final Multihash SKEIN1024_24 = Multihash.of("skein1024-24", 0xb363, Multihash.Status.Draft); - /** Multihash: skein1024-240, status = Draft, code = 0xb37e */ - public static final Multihash SKEIN1024_240 = Multihash.of("skein1024-240", 0xb37e); + /** Multihash: skein1024-240, status = draft, code = 0xb37e */ + public static final Multihash SKEIN1024_240 = Multihash.of("skein1024-240", 0xb37e, Multihash.Status.Draft); - /** Multihash: skein1024-248, status = Draft, code = 0xb37f */ - public static final Multihash SKEIN1024_248 = Multihash.of("skein1024-248", 0xb37f); + /** Multihash: skein1024-248, status = draft, code = 0xb37f */ + public static final Multihash SKEIN1024_248 = Multihash.of("skein1024-248", 0xb37f, Multihash.Status.Draft); - /** Multihash: skein1024-256, status = Draft, code = 0xb380 */ - public static final Multihash SKEIN1024_256 = Multihash.of("skein1024-256", 0xb380); + /** Multihash: skein1024-256, status = draft, code = 0xb380 */ + public static final Multihash SKEIN1024_256 = Multihash.of("skein1024-256", 0xb380, Multihash.Status.Draft); - /** Multihash: skein1024-264, status = Draft, code = 0xb381 */ - public static final Multihash SKEIN1024_264 = Multihash.of("skein1024-264", 0xb381); + /** Multihash: skein1024-264, status = draft, code = 0xb381 */ + public static final Multihash SKEIN1024_264 = Multihash.of("skein1024-264", 0xb381, Multihash.Status.Draft); - /** Multihash: skein1024-272, status = Draft, code = 0xb382 */ - public static final Multihash SKEIN1024_272 = Multihash.of("skein1024-272", 0xb382); + /** Multihash: skein1024-272, status = draft, code = 0xb382 */ + public static final Multihash SKEIN1024_272 = Multihash.of("skein1024-272", 0xb382, Multihash.Status.Draft); - /** Multihash: skein1024-280, status = Draft, code = 0xb383 */ - public static final Multihash SKEIN1024_280 = Multihash.of("skein1024-280", 0xb383); + /** Multihash: skein1024-280, status = draft, code = 0xb383 */ + public static final Multihash SKEIN1024_280 = Multihash.of("skein1024-280", 0xb383, Multihash.Status.Draft); - /** Multihash: skein1024-288, status = Draft, code = 0xb384 */ - public static final Multihash SKEIN1024_288 = Multihash.of("skein1024-288", 0xb384); + /** Multihash: skein1024-288, status = draft, code = 0xb384 */ + public static final Multihash SKEIN1024_288 = Multihash.of("skein1024-288", 0xb384, Multihash.Status.Draft); - /** Multihash: skein1024-296, status = Draft, code = 0xb385 */ - public static final Multihash SKEIN1024_296 = Multihash.of("skein1024-296", 0xb385); + /** Multihash: skein1024-296, status = draft, code = 0xb385 */ + public static final Multihash SKEIN1024_296 = Multihash.of("skein1024-296", 0xb385, Multihash.Status.Draft); - /** Multihash: skein1024-304, status = Draft, code = 0xb386 */ - public static final Multihash SKEIN1024_304 = Multihash.of("skein1024-304", 0xb386); + /** Multihash: skein1024-304, status = draft, code = 0xb386 */ + public static final Multihash SKEIN1024_304 = Multihash.of("skein1024-304", 0xb386, Multihash.Status.Draft); - /** Multihash: skein1024-312, status = Draft, code = 0xb387 */ - public static final Multihash SKEIN1024_312 = Multihash.of("skein1024-312", 0xb387); + /** Multihash: skein1024-312, status = draft, code = 0xb387 */ + public static final Multihash SKEIN1024_312 = Multihash.of("skein1024-312", 0xb387, Multihash.Status.Draft); - /** Multihash: skein1024-32, status = Draft, code = 0xb364 */ - public static final Multihash SKEIN1024_32 = Multihash.of("skein1024-32", 0xb364); + /** Multihash: skein1024-32, status = draft, code = 0xb364 */ + public static final Multihash SKEIN1024_32 = Multihash.of("skein1024-32", 0xb364, Multihash.Status.Draft); - /** Multihash: skein1024-320, status = Draft, code = 0xb388 */ - public static final Multihash SKEIN1024_320 = Multihash.of("skein1024-320", 0xb388); + /** Multihash: skein1024-320, status = draft, code = 0xb388 */ + public static final Multihash SKEIN1024_320 = Multihash.of("skein1024-320", 0xb388, Multihash.Status.Draft); - /** Multihash: skein1024-328, status = Draft, code = 0xb389 */ - public static final Multihash SKEIN1024_328 = Multihash.of("skein1024-328", 0xb389); + /** Multihash: skein1024-328, status = draft, code = 0xb389 */ + public static final Multihash SKEIN1024_328 = Multihash.of("skein1024-328", 0xb389, Multihash.Status.Draft); - /** Multihash: skein1024-336, status = Draft, code = 0xb38a */ - public static final Multihash SKEIN1024_336 = Multihash.of("skein1024-336", 0xb38a); + /** Multihash: skein1024-336, status = draft, code = 0xb38a */ + public static final Multihash SKEIN1024_336 = Multihash.of("skein1024-336", 0xb38a, Multihash.Status.Draft); - /** Multihash: skein1024-344, status = Draft, code = 0xb38b */ - public static final Multihash SKEIN1024_344 = Multihash.of("skein1024-344", 0xb38b); + /** Multihash: skein1024-344, status = draft, code = 0xb38b */ + public static final Multihash SKEIN1024_344 = Multihash.of("skein1024-344", 0xb38b, Multihash.Status.Draft); - /** Multihash: skein1024-352, status = Draft, code = 0xb38c */ - public static final Multihash SKEIN1024_352 = Multihash.of("skein1024-352", 0xb38c); + /** Multihash: skein1024-352, status = draft, code = 0xb38c */ + public static final Multihash SKEIN1024_352 = Multihash.of("skein1024-352", 0xb38c, Multihash.Status.Draft); - /** Multihash: skein1024-360, status = Draft, code = 0xb38d */ - public static final Multihash SKEIN1024_360 = Multihash.of("skein1024-360", 0xb38d); + /** Multihash: skein1024-360, status = draft, code = 0xb38d */ + public static final Multihash SKEIN1024_360 = Multihash.of("skein1024-360", 0xb38d, Multihash.Status.Draft); - /** Multihash: skein1024-368, status = Draft, code = 0xb38e */ - public static final Multihash SKEIN1024_368 = Multihash.of("skein1024-368", 0xb38e); + /** Multihash: skein1024-368, status = draft, code = 0xb38e */ + public static final Multihash SKEIN1024_368 = Multihash.of("skein1024-368", 0xb38e, Multihash.Status.Draft); - /** Multihash: skein1024-376, status = Draft, code = 0xb38f */ - public static final Multihash SKEIN1024_376 = Multihash.of("skein1024-376", 0xb38f); + /** Multihash: skein1024-376, status = draft, code = 0xb38f */ + public static final Multihash SKEIN1024_376 = Multihash.of("skein1024-376", 0xb38f, Multihash.Status.Draft); - /** Multihash: skein1024-384, status = Draft, code = 0xb390 */ - public static final Multihash SKEIN1024_384 = Multihash.of("skein1024-384", 0xb390); + /** Multihash: skein1024-384, status = draft, code = 0xb390 */ + public static final Multihash SKEIN1024_384 = Multihash.of("skein1024-384", 0xb390, Multihash.Status.Draft); - /** Multihash: skein1024-392, status = Draft, code = 0xb391 */ - public static final Multihash SKEIN1024_392 = Multihash.of("skein1024-392", 0xb391); + /** Multihash: skein1024-392, status = draft, code = 0xb391 */ + public static final Multihash SKEIN1024_392 = Multihash.of("skein1024-392", 0xb391, Multihash.Status.Draft); - /** Multihash: skein1024-40, status = Draft, code = 0xb365 */ - public static final Multihash SKEIN1024_40 = Multihash.of("skein1024-40", 0xb365); + /** Multihash: skein1024-40, status = draft, code = 0xb365 */ + public static final Multihash SKEIN1024_40 = Multihash.of("skein1024-40", 0xb365, Multihash.Status.Draft); - /** Multihash: skein1024-400, status = Draft, code = 0xb392 */ - public static final Multihash SKEIN1024_400 = Multihash.of("skein1024-400", 0xb392); + /** Multihash: skein1024-400, status = draft, code = 0xb392 */ + public static final Multihash SKEIN1024_400 = Multihash.of("skein1024-400", 0xb392, Multihash.Status.Draft); - /** Multihash: skein1024-408, status = Draft, code = 0xb393 */ - public static final Multihash SKEIN1024_408 = Multihash.of("skein1024-408", 0xb393); + /** Multihash: skein1024-408, status = draft, code = 0xb393 */ + public static final Multihash SKEIN1024_408 = Multihash.of("skein1024-408", 0xb393, Multihash.Status.Draft); - /** Multihash: skein1024-416, status = Draft, code = 0xb394 */ - public static final Multihash SKEIN1024_416 = Multihash.of("skein1024-416", 0xb394); + /** Multihash: skein1024-416, status = draft, code = 0xb394 */ + public static final Multihash SKEIN1024_416 = Multihash.of("skein1024-416", 0xb394, Multihash.Status.Draft); - /** Multihash: skein1024-424, status = Draft, code = 0xb395 */ - public static final Multihash SKEIN1024_424 = Multihash.of("skein1024-424", 0xb395); + /** Multihash: skein1024-424, status = draft, code = 0xb395 */ + public static final Multihash SKEIN1024_424 = Multihash.of("skein1024-424", 0xb395, Multihash.Status.Draft); - /** Multihash: skein1024-432, status = Draft, code = 0xb396 */ - public static final Multihash SKEIN1024_432 = Multihash.of("skein1024-432", 0xb396); + /** Multihash: skein1024-432, status = draft, code = 0xb396 */ + public static final Multihash SKEIN1024_432 = Multihash.of("skein1024-432", 0xb396, Multihash.Status.Draft); - /** Multihash: skein1024-440, status = Draft, code = 0xb397 */ - public static final Multihash SKEIN1024_440 = Multihash.of("skein1024-440", 0xb397); + /** Multihash: skein1024-440, status = draft, code = 0xb397 */ + public static final Multihash SKEIN1024_440 = Multihash.of("skein1024-440", 0xb397, Multihash.Status.Draft); - /** Multihash: skein1024-448, status = Draft, code = 0xb398 */ - public static final Multihash SKEIN1024_448 = Multihash.of("skein1024-448", 0xb398); + /** Multihash: skein1024-448, status = draft, code = 0xb398 */ + public static final Multihash SKEIN1024_448 = Multihash.of("skein1024-448", 0xb398, Multihash.Status.Draft); - /** Multihash: skein1024-456, status = Draft, code = 0xb399 */ - public static final Multihash SKEIN1024_456 = Multihash.of("skein1024-456", 0xb399); + /** Multihash: skein1024-456, status = draft, code = 0xb399 */ + public static final Multihash SKEIN1024_456 = Multihash.of("skein1024-456", 0xb399, Multihash.Status.Draft); - /** Multihash: skein1024-464, status = Draft, code = 0xb39a */ - public static final Multihash SKEIN1024_464 = Multihash.of("skein1024-464", 0xb39a); + /** Multihash: skein1024-464, status = draft, code = 0xb39a */ + public static final Multihash SKEIN1024_464 = Multihash.of("skein1024-464", 0xb39a, Multihash.Status.Draft); - /** Multihash: skein1024-472, status = Draft, code = 0xb39b */ - public static final Multihash SKEIN1024_472 = Multihash.of("skein1024-472", 0xb39b); + /** Multihash: skein1024-472, status = draft, code = 0xb39b */ + public static final Multihash SKEIN1024_472 = Multihash.of("skein1024-472", 0xb39b, Multihash.Status.Draft); - /** Multihash: skein1024-48, status = Draft, code = 0xb366 */ - public static final Multihash SKEIN1024_48 = Multihash.of("skein1024-48", 0xb366); + /** Multihash: skein1024-48, status = draft, code = 0xb366 */ + public static final Multihash SKEIN1024_48 = Multihash.of("skein1024-48", 0xb366, Multihash.Status.Draft); - /** Multihash: skein1024-480, status = Draft, code = 0xb39c */ - public static final Multihash SKEIN1024_480 = Multihash.of("skein1024-480", 0xb39c); + /** Multihash: skein1024-480, status = draft, code = 0xb39c */ + public static final Multihash SKEIN1024_480 = Multihash.of("skein1024-480", 0xb39c, Multihash.Status.Draft); - /** Multihash: skein1024-488, status = Draft, code = 0xb39d */ - public static final Multihash SKEIN1024_488 = Multihash.of("skein1024-488", 0xb39d); + /** Multihash: skein1024-488, status = draft, code = 0xb39d */ + public static final Multihash SKEIN1024_488 = Multihash.of("skein1024-488", 0xb39d, Multihash.Status.Draft); - /** Multihash: skein1024-496, status = Draft, code = 0xb39e */ - public static final Multihash SKEIN1024_496 = Multihash.of("skein1024-496", 0xb39e); + /** Multihash: skein1024-496, status = draft, code = 0xb39e */ + public static final Multihash SKEIN1024_496 = Multihash.of("skein1024-496", 0xb39e, Multihash.Status.Draft); - /** Multihash: skein1024-504, status = Draft, code = 0xb39f */ - public static final Multihash SKEIN1024_504 = Multihash.of("skein1024-504", 0xb39f); + /** Multihash: skein1024-504, status = draft, code = 0xb39f */ + public static final Multihash SKEIN1024_504 = Multihash.of("skein1024-504", 0xb39f, Multihash.Status.Draft); - /** Multihash: skein1024-512, status = Draft, code = 0xb3a0 */ - public static final Multihash SKEIN1024_512 = Multihash.of("skein1024-512", 0xb3a0); + /** Multihash: skein1024-512, status = draft, code = 0xb3a0 */ + public static final Multihash SKEIN1024_512 = Multihash.of("skein1024-512", 0xb3a0, Multihash.Status.Draft); - /** Multihash: skein1024-520, status = Draft, code = 0xb3a1 */ - public static final Multihash SKEIN1024_520 = Multihash.of("skein1024-520", 0xb3a1); + /** Multihash: skein1024-520, status = draft, code = 0xb3a1 */ + public static final Multihash SKEIN1024_520 = Multihash.of("skein1024-520", 0xb3a1, Multihash.Status.Draft); - /** Multihash: skein1024-528, status = Draft, code = 0xb3a2 */ - public static final Multihash SKEIN1024_528 = Multihash.of("skein1024-528", 0xb3a2); + /** Multihash: skein1024-528, status = draft, code = 0xb3a2 */ + public static final Multihash SKEIN1024_528 = Multihash.of("skein1024-528", 0xb3a2, Multihash.Status.Draft); - /** Multihash: skein1024-536, status = Draft, code = 0xb3a3 */ - public static final Multihash SKEIN1024_536 = Multihash.of("skein1024-536", 0xb3a3); + /** Multihash: skein1024-536, status = draft, code = 0xb3a3 */ + public static final Multihash SKEIN1024_536 = Multihash.of("skein1024-536", 0xb3a3, Multihash.Status.Draft); - /** Multihash: skein1024-544, status = Draft, code = 0xb3a4 */ - public static final Multihash SKEIN1024_544 = Multihash.of("skein1024-544", 0xb3a4); + /** Multihash: skein1024-544, status = draft, code = 0xb3a4 */ + public static final Multihash SKEIN1024_544 = Multihash.of("skein1024-544", 0xb3a4, Multihash.Status.Draft); - /** Multihash: skein1024-552, status = Draft, code = 0xb3a5 */ - public static final Multihash SKEIN1024_552 = Multihash.of("skein1024-552", 0xb3a5); + /** Multihash: skein1024-552, status = draft, code = 0xb3a5 */ + public static final Multihash SKEIN1024_552 = Multihash.of("skein1024-552", 0xb3a5, Multihash.Status.Draft); - /** Multihash: skein1024-56, status = Draft, code = 0xb367 */ - public static final Multihash SKEIN1024_56 = Multihash.of("skein1024-56", 0xb367); + /** Multihash: skein1024-56, status = draft, code = 0xb367 */ + public static final Multihash SKEIN1024_56 = Multihash.of("skein1024-56", 0xb367, Multihash.Status.Draft); - /** Multihash: skein1024-560, status = Draft, code = 0xb3a6 */ - public static final Multihash SKEIN1024_560 = Multihash.of("skein1024-560", 0xb3a6); + /** Multihash: skein1024-560, status = draft, code = 0xb3a6 */ + public static final Multihash SKEIN1024_560 = Multihash.of("skein1024-560", 0xb3a6, Multihash.Status.Draft); - /** Multihash: skein1024-568, status = Draft, code = 0xb3a7 */ - public static final Multihash SKEIN1024_568 = Multihash.of("skein1024-568", 0xb3a7); + /** Multihash: skein1024-568, status = draft, code = 0xb3a7 */ + public static final Multihash SKEIN1024_568 = Multihash.of("skein1024-568", 0xb3a7, Multihash.Status.Draft); - /** Multihash: skein1024-576, status = Draft, code = 0xb3a8 */ - public static final Multihash SKEIN1024_576 = Multihash.of("skein1024-576", 0xb3a8); + /** Multihash: skein1024-576, status = draft, code = 0xb3a8 */ + public static final Multihash SKEIN1024_576 = Multihash.of("skein1024-576", 0xb3a8, Multihash.Status.Draft); - /** Multihash: skein1024-584, status = Draft, code = 0xb3a9 */ - public static final Multihash SKEIN1024_584 = Multihash.of("skein1024-584", 0xb3a9); + /** Multihash: skein1024-584, status = draft, code = 0xb3a9 */ + public static final Multihash SKEIN1024_584 = Multihash.of("skein1024-584", 0xb3a9, Multihash.Status.Draft); - /** Multihash: skein1024-592, status = Draft, code = 0xb3aa */ - public static final Multihash SKEIN1024_592 = Multihash.of("skein1024-592", 0xb3aa); + /** Multihash: skein1024-592, status = draft, code = 0xb3aa */ + public static final Multihash SKEIN1024_592 = Multihash.of("skein1024-592", 0xb3aa, Multihash.Status.Draft); - /** Multihash: skein1024-600, status = Draft, code = 0xb3ab */ - public static final Multihash SKEIN1024_600 = Multihash.of("skein1024-600", 0xb3ab); + /** Multihash: skein1024-600, status = draft, code = 0xb3ab */ + public static final Multihash SKEIN1024_600 = Multihash.of("skein1024-600", 0xb3ab, Multihash.Status.Draft); - /** Multihash: skein1024-608, status = Draft, code = 0xb3ac */ - public static final Multihash SKEIN1024_608 = Multihash.of("skein1024-608", 0xb3ac); + /** Multihash: skein1024-608, status = draft, code = 0xb3ac */ + public static final Multihash SKEIN1024_608 = Multihash.of("skein1024-608", 0xb3ac, Multihash.Status.Draft); - /** Multihash: skein1024-616, status = Draft, code = 0xb3ad */ - public static final Multihash SKEIN1024_616 = Multihash.of("skein1024-616", 0xb3ad); + /** Multihash: skein1024-616, status = draft, code = 0xb3ad */ + public static final Multihash SKEIN1024_616 = Multihash.of("skein1024-616", 0xb3ad, Multihash.Status.Draft); - /** Multihash: skein1024-624, status = Draft, code = 0xb3ae */ - public static final Multihash SKEIN1024_624 = Multihash.of("skein1024-624", 0xb3ae); + /** Multihash: skein1024-624, status = draft, code = 0xb3ae */ + public static final Multihash SKEIN1024_624 = Multihash.of("skein1024-624", 0xb3ae, Multihash.Status.Draft); - /** Multihash: skein1024-632, status = Draft, code = 0xb3af */ - public static final Multihash SKEIN1024_632 = Multihash.of("skein1024-632", 0xb3af); + /** Multihash: skein1024-632, status = draft, code = 0xb3af */ + public static final Multihash SKEIN1024_632 = Multihash.of("skein1024-632", 0xb3af, Multihash.Status.Draft); - /** Multihash: skein1024-64, status = Draft, code = 0xb368 */ - public static final Multihash SKEIN1024_64 = Multihash.of("skein1024-64", 0xb368); + /** Multihash: skein1024-64, status = draft, code = 0xb368 */ + public static final Multihash SKEIN1024_64 = Multihash.of("skein1024-64", 0xb368, Multihash.Status.Draft); - /** Multihash: skein1024-640, status = Draft, code = 0xb3b0 */ - public static final Multihash SKEIN1024_640 = Multihash.of("skein1024-640", 0xb3b0); + /** Multihash: skein1024-640, status = draft, code = 0xb3b0 */ + public static final Multihash SKEIN1024_640 = Multihash.of("skein1024-640", 0xb3b0, Multihash.Status.Draft); - /** Multihash: skein1024-648, status = Draft, code = 0xb3b1 */ - public static final Multihash SKEIN1024_648 = Multihash.of("skein1024-648", 0xb3b1); + /** Multihash: skein1024-648, status = draft, code = 0xb3b1 */ + public static final Multihash SKEIN1024_648 = Multihash.of("skein1024-648", 0xb3b1, Multihash.Status.Draft); - /** Multihash: skein1024-656, status = Draft, code = 0xb3b2 */ - public static final Multihash SKEIN1024_656 = Multihash.of("skein1024-656", 0xb3b2); + /** Multihash: skein1024-656, status = draft, code = 0xb3b2 */ + public static final Multihash SKEIN1024_656 = Multihash.of("skein1024-656", 0xb3b2, Multihash.Status.Draft); - /** Multihash: skein1024-664, status = Draft, code = 0xb3b3 */ - public static final Multihash SKEIN1024_664 = Multihash.of("skein1024-664", 0xb3b3); + /** Multihash: skein1024-664, status = draft, code = 0xb3b3 */ + public static final Multihash SKEIN1024_664 = Multihash.of("skein1024-664", 0xb3b3, Multihash.Status.Draft); - /** Multihash: skein1024-672, status = Draft, code = 0xb3b4 */ - public static final Multihash SKEIN1024_672 = Multihash.of("skein1024-672", 0xb3b4); + /** Multihash: skein1024-672, status = draft, code = 0xb3b4 */ + public static final Multihash SKEIN1024_672 = Multihash.of("skein1024-672", 0xb3b4, Multihash.Status.Draft); - /** Multihash: skein1024-680, status = Draft, code = 0xb3b5 */ - public static final Multihash SKEIN1024_680 = Multihash.of("skein1024-680", 0xb3b5); + /** Multihash: skein1024-680, status = draft, code = 0xb3b5 */ + public static final Multihash SKEIN1024_680 = Multihash.of("skein1024-680", 0xb3b5, Multihash.Status.Draft); - /** Multihash: skein1024-688, status = Draft, code = 0xb3b6 */ - public static final Multihash SKEIN1024_688 = Multihash.of("skein1024-688", 0xb3b6); + /** Multihash: skein1024-688, status = draft, code = 0xb3b6 */ + public static final Multihash SKEIN1024_688 = Multihash.of("skein1024-688", 0xb3b6, Multihash.Status.Draft); - /** Multihash: skein1024-696, status = Draft, code = 0xb3b7 */ - public static final Multihash SKEIN1024_696 = Multihash.of("skein1024-696", 0xb3b7); + /** Multihash: skein1024-696, status = draft, code = 0xb3b7 */ + public static final Multihash SKEIN1024_696 = Multihash.of("skein1024-696", 0xb3b7, Multihash.Status.Draft); - /** Multihash: skein1024-704, status = Draft, code = 0xb3b8 */ - public static final Multihash SKEIN1024_704 = Multihash.of("skein1024-704", 0xb3b8); + /** Multihash: skein1024-704, status = draft, code = 0xb3b8 */ + public static final Multihash SKEIN1024_704 = Multihash.of("skein1024-704", 0xb3b8, Multihash.Status.Draft); - /** Multihash: skein1024-712, status = Draft, code = 0xb3b9 */ - public static final Multihash SKEIN1024_712 = Multihash.of("skein1024-712", 0xb3b9); + /** Multihash: skein1024-712, status = draft, code = 0xb3b9 */ + public static final Multihash SKEIN1024_712 = Multihash.of("skein1024-712", 0xb3b9, Multihash.Status.Draft); - /** Multihash: skein1024-72, status = Draft, code = 0xb369 */ - public static final Multihash SKEIN1024_72 = Multihash.of("skein1024-72", 0xb369); + /** Multihash: skein1024-72, status = draft, code = 0xb369 */ + public static final Multihash SKEIN1024_72 = Multihash.of("skein1024-72", 0xb369, Multihash.Status.Draft); - /** Multihash: skein1024-720, status = Draft, code = 0xb3ba */ - public static final Multihash SKEIN1024_720 = Multihash.of("skein1024-720", 0xb3ba); + /** Multihash: skein1024-720, status = draft, code = 0xb3ba */ + public static final Multihash SKEIN1024_720 = Multihash.of("skein1024-720", 0xb3ba, Multihash.Status.Draft); - /** Multihash: skein1024-728, status = Draft, code = 0xb3bb */ - public static final Multihash SKEIN1024_728 = Multihash.of("skein1024-728", 0xb3bb); + /** Multihash: skein1024-728, status = draft, code = 0xb3bb */ + public static final Multihash SKEIN1024_728 = Multihash.of("skein1024-728", 0xb3bb, Multihash.Status.Draft); - /** Multihash: skein1024-736, status = Draft, code = 0xb3bc */ - public static final Multihash SKEIN1024_736 = Multihash.of("skein1024-736", 0xb3bc); + /** Multihash: skein1024-736, status = draft, code = 0xb3bc */ + public static final Multihash SKEIN1024_736 = Multihash.of("skein1024-736", 0xb3bc, Multihash.Status.Draft); - /** Multihash: skein1024-744, status = Draft, code = 0xb3bd */ - public static final Multihash SKEIN1024_744 = Multihash.of("skein1024-744", 0xb3bd); + /** Multihash: skein1024-744, status = draft, code = 0xb3bd */ + public static final Multihash SKEIN1024_744 = Multihash.of("skein1024-744", 0xb3bd, Multihash.Status.Draft); - /** Multihash: skein1024-752, status = Draft, code = 0xb3be */ - public static final Multihash SKEIN1024_752 = Multihash.of("skein1024-752", 0xb3be); + /** Multihash: skein1024-752, status = draft, code = 0xb3be */ + public static final Multihash SKEIN1024_752 = Multihash.of("skein1024-752", 0xb3be, Multihash.Status.Draft); - /** Multihash: skein1024-760, status = Draft, code = 0xb3bf */ - public static final Multihash SKEIN1024_760 = Multihash.of("skein1024-760", 0xb3bf); + /** Multihash: skein1024-760, status = draft, code = 0xb3bf */ + public static final Multihash SKEIN1024_760 = Multihash.of("skein1024-760", 0xb3bf, Multihash.Status.Draft); - /** Multihash: skein1024-768, status = Draft, code = 0xb3c0 */ - public static final Multihash SKEIN1024_768 = Multihash.of("skein1024-768", 0xb3c0); + /** Multihash: skein1024-768, status = draft, code = 0xb3c0 */ + public static final Multihash SKEIN1024_768 = Multihash.of("skein1024-768", 0xb3c0, Multihash.Status.Draft); - /** Multihash: skein1024-776, status = Draft, code = 0xb3c1 */ - public static final Multihash SKEIN1024_776 = Multihash.of("skein1024-776", 0xb3c1); + /** Multihash: skein1024-776, status = draft, code = 0xb3c1 */ + public static final Multihash SKEIN1024_776 = Multihash.of("skein1024-776", 0xb3c1, Multihash.Status.Draft); - /** Multihash: skein1024-784, status = Draft, code = 0xb3c2 */ - public static final Multihash SKEIN1024_784 = Multihash.of("skein1024-784", 0xb3c2); + /** Multihash: skein1024-784, status = draft, code = 0xb3c2 */ + public static final Multihash SKEIN1024_784 = Multihash.of("skein1024-784", 0xb3c2, Multihash.Status.Draft); - /** Multihash: skein1024-792, status = Draft, code = 0xb3c3 */ - public static final Multihash SKEIN1024_792 = Multihash.of("skein1024-792", 0xb3c3); + /** Multihash: skein1024-792, status = draft, code = 0xb3c3 */ + public static final Multihash SKEIN1024_792 = Multihash.of("skein1024-792", 0xb3c3, Multihash.Status.Draft); - /** Multihash: skein1024-8, Skein1024 consists of 128 output lengths that give different hashes, status = Draft, code = 0xb361 */ - public static final Multihash SKEIN1024_8 = Multihash.of("skein1024-8", 0xb361); + /** Multihash: skein1024-8, Skein1024 consists of 128 output lengths that give different hashes, status = draft, code = 0xb361 */ + public static final Multihash SKEIN1024_8 = Multihash.of("skein1024-8", 0xb361, Multihash.Status.Draft); - /** Multihash: skein1024-80, status = Draft, code = 0xb36a */ - public static final Multihash SKEIN1024_80 = Multihash.of("skein1024-80", 0xb36a); + /** Multihash: skein1024-80, status = draft, code = 0xb36a */ + public static final Multihash SKEIN1024_80 = Multihash.of("skein1024-80", 0xb36a, Multihash.Status.Draft); - /** Multihash: skein1024-800, status = Draft, code = 0xb3c4 */ - public static final Multihash SKEIN1024_800 = Multihash.of("skein1024-800", 0xb3c4); + /** Multihash: skein1024-800, status = draft, code = 0xb3c4 */ + public static final Multihash SKEIN1024_800 = Multihash.of("skein1024-800", 0xb3c4, Multihash.Status.Draft); - /** Multihash: skein1024-808, status = Draft, code = 0xb3c5 */ - public static final Multihash SKEIN1024_808 = Multihash.of("skein1024-808", 0xb3c5); + /** Multihash: skein1024-808, status = draft, code = 0xb3c5 */ + public static final Multihash SKEIN1024_808 = Multihash.of("skein1024-808", 0xb3c5, Multihash.Status.Draft); - /** Multihash: skein1024-816, status = Draft, code = 0xb3c6 */ - public static final Multihash SKEIN1024_816 = Multihash.of("skein1024-816", 0xb3c6); + /** Multihash: skein1024-816, status = draft, code = 0xb3c6 */ + public static final Multihash SKEIN1024_816 = Multihash.of("skein1024-816", 0xb3c6, Multihash.Status.Draft); - /** Multihash: skein1024-824, status = Draft, code = 0xb3c7 */ - public static final Multihash SKEIN1024_824 = Multihash.of("skein1024-824", 0xb3c7); + /** Multihash: skein1024-824, status = draft, code = 0xb3c7 */ + public static final Multihash SKEIN1024_824 = Multihash.of("skein1024-824", 0xb3c7, Multihash.Status.Draft); - /** Multihash: skein1024-832, status = Draft, code = 0xb3c8 */ - public static final Multihash SKEIN1024_832 = Multihash.of("skein1024-832", 0xb3c8); + /** Multihash: skein1024-832, status = draft, code = 0xb3c8 */ + public static final Multihash SKEIN1024_832 = Multihash.of("skein1024-832", 0xb3c8, Multihash.Status.Draft); - /** Multihash: skein1024-840, status = Draft, code = 0xb3c9 */ - public static final Multihash SKEIN1024_840 = Multihash.of("skein1024-840", 0xb3c9); + /** Multihash: skein1024-840, status = draft, code = 0xb3c9 */ + public static final Multihash SKEIN1024_840 = Multihash.of("skein1024-840", 0xb3c9, Multihash.Status.Draft); - /** Multihash: skein1024-848, status = Draft, code = 0xb3ca */ - public static final Multihash SKEIN1024_848 = Multihash.of("skein1024-848", 0xb3ca); + /** Multihash: skein1024-848, status = draft, code = 0xb3ca */ + public static final Multihash SKEIN1024_848 = Multihash.of("skein1024-848", 0xb3ca, Multihash.Status.Draft); - /** Multihash: skein1024-856, status = Draft, code = 0xb3cb */ - public static final Multihash SKEIN1024_856 = Multihash.of("skein1024-856", 0xb3cb); + /** Multihash: skein1024-856, status = draft, code = 0xb3cb */ + public static final Multihash SKEIN1024_856 = Multihash.of("skein1024-856", 0xb3cb, Multihash.Status.Draft); - /** Multihash: skein1024-864, status = Draft, code = 0xb3cc */ - public static final Multihash SKEIN1024_864 = Multihash.of("skein1024-864", 0xb3cc); + /** Multihash: skein1024-864, status = draft, code = 0xb3cc */ + public static final Multihash SKEIN1024_864 = Multihash.of("skein1024-864", 0xb3cc, Multihash.Status.Draft); - /** Multihash: skein1024-872, status = Draft, code = 0xb3cd */ - public static final Multihash SKEIN1024_872 = Multihash.of("skein1024-872", 0xb3cd); + /** Multihash: skein1024-872, status = draft, code = 0xb3cd */ + public static final Multihash SKEIN1024_872 = Multihash.of("skein1024-872", 0xb3cd, Multihash.Status.Draft); - /** Multihash: skein1024-88, status = Draft, code = 0xb36b */ - public static final Multihash SKEIN1024_88 = Multihash.of("skein1024-88", 0xb36b); + /** Multihash: skein1024-88, status = draft, code = 0xb36b */ + public static final Multihash SKEIN1024_88 = Multihash.of("skein1024-88", 0xb36b, Multihash.Status.Draft); - /** Multihash: skein1024-880, status = Draft, code = 0xb3ce */ - public static final Multihash SKEIN1024_880 = Multihash.of("skein1024-880", 0xb3ce); + /** Multihash: skein1024-880, status = draft, code = 0xb3ce */ + public static final Multihash SKEIN1024_880 = Multihash.of("skein1024-880", 0xb3ce, Multihash.Status.Draft); - /** Multihash: skein1024-888, status = Draft, code = 0xb3cf */ - public static final Multihash SKEIN1024_888 = Multihash.of("skein1024-888", 0xb3cf); + /** Multihash: skein1024-888, status = draft, code = 0xb3cf */ + public static final Multihash SKEIN1024_888 = Multihash.of("skein1024-888", 0xb3cf, Multihash.Status.Draft); - /** Multihash: skein1024-896, status = Draft, code = 0xb3d0 */ - public static final Multihash SKEIN1024_896 = Multihash.of("skein1024-896", 0xb3d0); + /** Multihash: skein1024-896, status = draft, code = 0xb3d0 */ + public static final Multihash SKEIN1024_896 = Multihash.of("skein1024-896", 0xb3d0, Multihash.Status.Draft); - /** Multihash: skein1024-904, status = Draft, code = 0xb3d1 */ - public static final Multihash SKEIN1024_904 = Multihash.of("skein1024-904", 0xb3d1); + /** Multihash: skein1024-904, status = draft, code = 0xb3d1 */ + public static final Multihash SKEIN1024_904 = Multihash.of("skein1024-904", 0xb3d1, Multihash.Status.Draft); - /** Multihash: skein1024-912, status = Draft, code = 0xb3d2 */ - public static final Multihash SKEIN1024_912 = Multihash.of("skein1024-912", 0xb3d2); + /** Multihash: skein1024-912, status = draft, code = 0xb3d2 */ + public static final Multihash SKEIN1024_912 = Multihash.of("skein1024-912", 0xb3d2, Multihash.Status.Draft); - /** Multihash: skein1024-920, status = Draft, code = 0xb3d3 */ - public static final Multihash SKEIN1024_920 = Multihash.of("skein1024-920", 0xb3d3); + /** Multihash: skein1024-920, status = draft, code = 0xb3d3 */ + public static final Multihash SKEIN1024_920 = Multihash.of("skein1024-920", 0xb3d3, Multihash.Status.Draft); - /** Multihash: skein1024-928, status = Draft, code = 0xb3d4 */ - public static final Multihash SKEIN1024_928 = Multihash.of("skein1024-928", 0xb3d4); + /** Multihash: skein1024-928, status = draft, code = 0xb3d4 */ + public static final Multihash SKEIN1024_928 = Multihash.of("skein1024-928", 0xb3d4, Multihash.Status.Draft); - /** Multihash: skein1024-936, status = Draft, code = 0xb3d5 */ - public static final Multihash SKEIN1024_936 = Multihash.of("skein1024-936", 0xb3d5); + /** Multihash: skein1024-936, status = draft, code = 0xb3d5 */ + public static final Multihash SKEIN1024_936 = Multihash.of("skein1024-936", 0xb3d5, Multihash.Status.Draft); - /** Multihash: skein1024-944, status = Draft, code = 0xb3d6 */ - public static final Multihash SKEIN1024_944 = Multihash.of("skein1024-944", 0xb3d6); + /** Multihash: skein1024-944, status = draft, code = 0xb3d6 */ + public static final Multihash SKEIN1024_944 = Multihash.of("skein1024-944", 0xb3d6, Multihash.Status.Draft); - /** Multihash: skein1024-952, status = Draft, code = 0xb3d7 */ - public static final Multihash SKEIN1024_952 = Multihash.of("skein1024-952", 0xb3d7); + /** Multihash: skein1024-952, status = draft, code = 0xb3d7 */ + public static final Multihash SKEIN1024_952 = Multihash.of("skein1024-952", 0xb3d7, Multihash.Status.Draft); - /** Multihash: skein1024-96, status = Draft, code = 0xb36c */ - public static final Multihash SKEIN1024_96 = Multihash.of("skein1024-96", 0xb36c); + /** Multihash: skein1024-96, status = draft, code = 0xb36c */ + public static final Multihash SKEIN1024_96 = Multihash.of("skein1024-96", 0xb36c, Multihash.Status.Draft); - /** Multihash: skein1024-960, status = Draft, code = 0xb3d8 */ - public static final Multihash SKEIN1024_960 = Multihash.of("skein1024-960", 0xb3d8); + /** Multihash: skein1024-960, status = draft, code = 0xb3d8 */ + public static final Multihash SKEIN1024_960 = Multihash.of("skein1024-960", 0xb3d8, Multihash.Status.Draft); - /** Multihash: skein1024-968, status = Draft, code = 0xb3d9 */ - public static final Multihash SKEIN1024_968 = Multihash.of("skein1024-968", 0xb3d9); + /** Multihash: skein1024-968, status = draft, code = 0xb3d9 */ + public static final Multihash SKEIN1024_968 = Multihash.of("skein1024-968", 0xb3d9, Multihash.Status.Draft); - /** Multihash: skein1024-976, status = Draft, code = 0xb3da */ - public static final Multihash SKEIN1024_976 = Multihash.of("skein1024-976", 0xb3da); + /** Multihash: skein1024-976, status = draft, code = 0xb3da */ + public static final Multihash SKEIN1024_976 = Multihash.of("skein1024-976", 0xb3da, Multihash.Status.Draft); - /** Multihash: skein1024-984, status = Draft, code = 0xb3db */ - public static final Multihash SKEIN1024_984 = Multihash.of("skein1024-984", 0xb3db); + /** Multihash: skein1024-984, status = draft, code = 0xb3db */ + public static final Multihash SKEIN1024_984 = Multihash.of("skein1024-984", 0xb3db, Multihash.Status.Draft); - /** Multihash: skein1024-992, status = Draft, code = 0xb3dc */ - public static final Multihash SKEIN1024_992 = Multihash.of("skein1024-992", 0xb3dc); + /** Multihash: skein1024-992, status = draft, code = 0xb3dc */ + public static final Multihash SKEIN1024_992 = Multihash.of("skein1024-992", 0xb3dc, Multihash.Status.Draft); - /** Multihash: skein256-104, status = Draft, code = 0xb30d */ - public static final Multihash SKEIN256_104 = Multihash.of("skein256-104", 0xb30d); + /** Multihash: skein256-104, status = draft, code = 0xb30d */ + public static final Multihash SKEIN256_104 = Multihash.of("skein256-104", 0xb30d, Multihash.Status.Draft); - /** Multihash: skein256-112, status = Draft, code = 0xb30e */ - public static final Multihash SKEIN256_112 = Multihash.of("skein256-112", 0xb30e); + /** Multihash: skein256-112, status = draft, code = 0xb30e */ + public static final Multihash SKEIN256_112 = Multihash.of("skein256-112", 0xb30e, Multihash.Status.Draft); - /** Multihash: skein256-120, status = Draft, code = 0xb30f */ - public static final Multihash SKEIN256_120 = Multihash.of("skein256-120", 0xb30f); + /** Multihash: skein256-120, status = draft, code = 0xb30f */ + public static final Multihash SKEIN256_120 = Multihash.of("skein256-120", 0xb30f, Multihash.Status.Draft); - /** Multihash: skein256-128, status = Draft, code = 0xb310 */ - public static final Multihash SKEIN256_128 = Multihash.of("skein256-128", 0xb310); + /** Multihash: skein256-128, status = draft, code = 0xb310 */ + public static final Multihash SKEIN256_128 = Multihash.of("skein256-128", 0xb310, Multihash.Status.Draft); - /** Multihash: skein256-136, status = Draft, code = 0xb311 */ - public static final Multihash SKEIN256_136 = Multihash.of("skein256-136", 0xb311); + /** Multihash: skein256-136, status = draft, code = 0xb311 */ + public static final Multihash SKEIN256_136 = Multihash.of("skein256-136", 0xb311, Multihash.Status.Draft); - /** Multihash: skein256-144, status = Draft, code = 0xb312 */ - public static final Multihash SKEIN256_144 = Multihash.of("skein256-144", 0xb312); + /** Multihash: skein256-144, status = draft, code = 0xb312 */ + public static final Multihash SKEIN256_144 = Multihash.of("skein256-144", 0xb312, Multihash.Status.Draft); - /** Multihash: skein256-152, status = Draft, code = 0xb313 */ - public static final Multihash SKEIN256_152 = Multihash.of("skein256-152", 0xb313); + /** Multihash: skein256-152, status = draft, code = 0xb313 */ + public static final Multihash SKEIN256_152 = Multihash.of("skein256-152", 0xb313, Multihash.Status.Draft); - /** Multihash: skein256-16, status = Draft, code = 0xb302 */ - public static final Multihash SKEIN256_16 = Multihash.of("skein256-16", 0xb302); + /** Multihash: skein256-16, status = draft, code = 0xb302 */ + public static final Multihash SKEIN256_16 = Multihash.of("skein256-16", 0xb302, Multihash.Status.Draft); - /** Multihash: skein256-160, status = Draft, code = 0xb314 */ - public static final Multihash SKEIN256_160 = Multihash.of("skein256-160", 0xb314); + /** Multihash: skein256-160, status = draft, code = 0xb314 */ + public static final Multihash SKEIN256_160 = Multihash.of("skein256-160", 0xb314, Multihash.Status.Draft); - /** Multihash: skein256-168, status = Draft, code = 0xb315 */ - public static final Multihash SKEIN256_168 = Multihash.of("skein256-168", 0xb315); + /** Multihash: skein256-168, status = draft, code = 0xb315 */ + public static final Multihash SKEIN256_168 = Multihash.of("skein256-168", 0xb315, Multihash.Status.Draft); - /** Multihash: skein256-176, status = Draft, code = 0xb316 */ - public static final Multihash SKEIN256_176 = Multihash.of("skein256-176", 0xb316); + /** Multihash: skein256-176, status = draft, code = 0xb316 */ + public static final Multihash SKEIN256_176 = Multihash.of("skein256-176", 0xb316, Multihash.Status.Draft); - /** Multihash: skein256-184, status = Draft, code = 0xb317 */ - public static final Multihash SKEIN256_184 = Multihash.of("skein256-184", 0xb317); + /** Multihash: skein256-184, status = draft, code = 0xb317 */ + public static final Multihash SKEIN256_184 = Multihash.of("skein256-184", 0xb317, Multihash.Status.Draft); - /** Multihash: skein256-192, status = Draft, code = 0xb318 */ - public static final Multihash SKEIN256_192 = Multihash.of("skein256-192", 0xb318); + /** Multihash: skein256-192, status = draft, code = 0xb318 */ + public static final Multihash SKEIN256_192 = Multihash.of("skein256-192", 0xb318, Multihash.Status.Draft); - /** Multihash: skein256-200, status = Draft, code = 0xb319 */ - public static final Multihash SKEIN256_200 = Multihash.of("skein256-200", 0xb319); + /** Multihash: skein256-200, status = draft, code = 0xb319 */ + public static final Multihash SKEIN256_200 = Multihash.of("skein256-200", 0xb319, Multihash.Status.Draft); - /** Multihash: skein256-208, status = Draft, code = 0xb31a */ - public static final Multihash SKEIN256_208 = Multihash.of("skein256-208", 0xb31a); + /** Multihash: skein256-208, status = draft, code = 0xb31a */ + public static final Multihash SKEIN256_208 = Multihash.of("skein256-208", 0xb31a, Multihash.Status.Draft); - /** Multihash: skein256-216, status = Draft, code = 0xb31b */ - public static final Multihash SKEIN256_216 = Multihash.of("skein256-216", 0xb31b); + /** Multihash: skein256-216, status = draft, code = 0xb31b */ + public static final Multihash SKEIN256_216 = Multihash.of("skein256-216", 0xb31b, Multihash.Status.Draft); - /** Multihash: skein256-224, status = Draft, code = 0xb31c */ - public static final Multihash SKEIN256_224 = Multihash.of("skein256-224", 0xb31c); + /** Multihash: skein256-224, status = draft, code = 0xb31c */ + public static final Multihash SKEIN256_224 = Multihash.of("skein256-224", 0xb31c, Multihash.Status.Draft); - /** Multihash: skein256-232, status = Draft, code = 0xb31d */ - public static final Multihash SKEIN256_232 = Multihash.of("skein256-232", 0xb31d); + /** Multihash: skein256-232, status = draft, code = 0xb31d */ + public static final Multihash SKEIN256_232 = Multihash.of("skein256-232", 0xb31d, Multihash.Status.Draft); - /** Multihash: skein256-24, status = Draft, code = 0xb303 */ - public static final Multihash SKEIN256_24 = Multihash.of("skein256-24", 0xb303); + /** Multihash: skein256-24, status = draft, code = 0xb303 */ + public static final Multihash SKEIN256_24 = Multihash.of("skein256-24", 0xb303, Multihash.Status.Draft); - /** Multihash: skein256-240, status = Draft, code = 0xb31e */ - public static final Multihash SKEIN256_240 = Multihash.of("skein256-240", 0xb31e); + /** Multihash: skein256-240, status = draft, code = 0xb31e */ + public static final Multihash SKEIN256_240 = Multihash.of("skein256-240", 0xb31e, Multihash.Status.Draft); - /** Multihash: skein256-248, status = Draft, code = 0xb31f */ - public static final Multihash SKEIN256_248 = Multihash.of("skein256-248", 0xb31f); + /** Multihash: skein256-248, status = draft, code = 0xb31f */ + public static final Multihash SKEIN256_248 = Multihash.of("skein256-248", 0xb31f, Multihash.Status.Draft); - /** Multihash: skein256-256, status = Draft, code = 0xb320 */ - public static final Multihash SKEIN256_256 = Multihash.of("skein256-256", 0xb320); + /** Multihash: skein256-256, status = draft, code = 0xb320 */ + public static final Multihash SKEIN256_256 = Multihash.of("skein256-256", 0xb320, Multihash.Status.Draft); - /** Multihash: skein256-32, status = Draft, code = 0xb304 */ - public static final Multihash SKEIN256_32 = Multihash.of("skein256-32", 0xb304); + /** Multihash: skein256-32, status = draft, code = 0xb304 */ + public static final Multihash SKEIN256_32 = Multihash.of("skein256-32", 0xb304, Multihash.Status.Draft); - /** Multihash: skein256-40, status = Draft, code = 0xb305 */ - public static final Multihash SKEIN256_40 = Multihash.of("skein256-40", 0xb305); + /** Multihash: skein256-40, status = draft, code = 0xb305 */ + public static final Multihash SKEIN256_40 = Multihash.of("skein256-40", 0xb305, Multihash.Status.Draft); - /** Multihash: skein256-48, status = Draft, code = 0xb306 */ - public static final Multihash SKEIN256_48 = Multihash.of("skein256-48", 0xb306); + /** Multihash: skein256-48, status = draft, code = 0xb306 */ + public static final Multihash SKEIN256_48 = Multihash.of("skein256-48", 0xb306, Multihash.Status.Draft); - /** Multihash: skein256-56, status = Draft, code = 0xb307 */ - public static final Multihash SKEIN256_56 = Multihash.of("skein256-56", 0xb307); + /** Multihash: skein256-56, status = draft, code = 0xb307 */ + public static final Multihash SKEIN256_56 = Multihash.of("skein256-56", 0xb307, Multihash.Status.Draft); - /** Multihash: skein256-64, status = Draft, code = 0xb308 */ - public static final Multihash SKEIN256_64 = Multihash.of("skein256-64", 0xb308); + /** Multihash: skein256-64, status = draft, code = 0xb308 */ + public static final Multihash SKEIN256_64 = Multihash.of("skein256-64", 0xb308, Multihash.Status.Draft); - /** Multihash: skein256-72, status = Draft, code = 0xb309 */ - public static final Multihash SKEIN256_72 = Multihash.of("skein256-72", 0xb309); + /** Multihash: skein256-72, status = draft, code = 0xb309 */ + public static final Multihash SKEIN256_72 = Multihash.of("skein256-72", 0xb309, Multihash.Status.Draft); - /** Multihash: skein256-8, Skein256 consists of 32 output lengths that give different hashes, status = Draft, code = 0xb301 */ - public static final Multihash SKEIN256_8 = Multihash.of("skein256-8", 0xb301); + /** Multihash: skein256-8, Skein256 consists of 32 output lengths that give different hashes, status = draft, code = 0xb301 */ + public static final Multihash SKEIN256_8 = Multihash.of("skein256-8", 0xb301, Multihash.Status.Draft); - /** Multihash: skein256-80, status = Draft, code = 0xb30a */ - public static final Multihash SKEIN256_80 = Multihash.of("skein256-80", 0xb30a); + /** Multihash: skein256-80, status = draft, code = 0xb30a */ + public static final Multihash SKEIN256_80 = Multihash.of("skein256-80", 0xb30a, Multihash.Status.Draft); - /** Multihash: skein256-88, status = Draft, code = 0xb30b */ - public static final Multihash SKEIN256_88 = Multihash.of("skein256-88", 0xb30b); + /** Multihash: skein256-88, status = draft, code = 0xb30b */ + public static final Multihash SKEIN256_88 = Multihash.of("skein256-88", 0xb30b, Multihash.Status.Draft); - /** Multihash: skein256-96, status = Draft, code = 0xb30c */ - public static final Multihash SKEIN256_96 = Multihash.of("skein256-96", 0xb30c); + /** Multihash: skein256-96, status = draft, code = 0xb30c */ + public static final Multihash SKEIN256_96 = Multihash.of("skein256-96", 0xb30c, Multihash.Status.Draft); - /** Multihash: skein512-104, status = Draft, code = 0xb32d */ - public static final Multihash SKEIN512_104 = Multihash.of("skein512-104", 0xb32d); + /** Multihash: skein512-104, status = draft, code = 0xb32d */ + public static final Multihash SKEIN512_104 = Multihash.of("skein512-104", 0xb32d, Multihash.Status.Draft); - /** Multihash: skein512-112, status = Draft, code = 0xb32e */ - public static final Multihash SKEIN512_112 = Multihash.of("skein512-112", 0xb32e); + /** Multihash: skein512-112, status = draft, code = 0xb32e */ + public static final Multihash SKEIN512_112 = Multihash.of("skein512-112", 0xb32e, Multihash.Status.Draft); - /** Multihash: skein512-120, status = Draft, code = 0xb32f */ - public static final Multihash SKEIN512_120 = Multihash.of("skein512-120", 0xb32f); + /** Multihash: skein512-120, status = draft, code = 0xb32f */ + public static final Multihash SKEIN512_120 = Multihash.of("skein512-120", 0xb32f, Multihash.Status.Draft); - /** Multihash: skein512-128, status = Draft, code = 0xb330 */ - public static final Multihash SKEIN512_128 = Multihash.of("skein512-128", 0xb330); + /** Multihash: skein512-128, status = draft, code = 0xb330 */ + public static final Multihash SKEIN512_128 = Multihash.of("skein512-128", 0xb330, Multihash.Status.Draft); - /** Multihash: skein512-136, status = Draft, code = 0xb331 */ - public static final Multihash SKEIN512_136 = Multihash.of("skein512-136", 0xb331); + /** Multihash: skein512-136, status = draft, code = 0xb331 */ + public static final Multihash SKEIN512_136 = Multihash.of("skein512-136", 0xb331, Multihash.Status.Draft); - /** Multihash: skein512-144, status = Draft, code = 0xb332 */ - public static final Multihash SKEIN512_144 = Multihash.of("skein512-144", 0xb332); + /** Multihash: skein512-144, status = draft, code = 0xb332 */ + public static final Multihash SKEIN512_144 = Multihash.of("skein512-144", 0xb332, Multihash.Status.Draft); - /** Multihash: skein512-152, status = Draft, code = 0xb333 */ - public static final Multihash SKEIN512_152 = Multihash.of("skein512-152", 0xb333); + /** Multihash: skein512-152, status = draft, code = 0xb333 */ + public static final Multihash SKEIN512_152 = Multihash.of("skein512-152", 0xb333, Multihash.Status.Draft); - /** Multihash: skein512-16, status = Draft, code = 0xb322 */ - public static final Multihash SKEIN512_16 = Multihash.of("skein512-16", 0xb322); + /** Multihash: skein512-16, status = draft, code = 0xb322 */ + public static final Multihash SKEIN512_16 = Multihash.of("skein512-16", 0xb322, Multihash.Status.Draft); - /** Multihash: skein512-160, status = Draft, code = 0xb334 */ - public static final Multihash SKEIN512_160 = Multihash.of("skein512-160", 0xb334); + /** Multihash: skein512-160, status = draft, code = 0xb334 */ + public static final Multihash SKEIN512_160 = Multihash.of("skein512-160", 0xb334, Multihash.Status.Draft); - /** Multihash: skein512-168, status = Draft, code = 0xb335 */ - public static final Multihash SKEIN512_168 = Multihash.of("skein512-168", 0xb335); + /** Multihash: skein512-168, status = draft, code = 0xb335 */ + public static final Multihash SKEIN512_168 = Multihash.of("skein512-168", 0xb335, Multihash.Status.Draft); - /** Multihash: skein512-176, status = Draft, code = 0xb336 */ - public static final Multihash SKEIN512_176 = Multihash.of("skein512-176", 0xb336); + /** Multihash: skein512-176, status = draft, code = 0xb336 */ + public static final Multihash SKEIN512_176 = Multihash.of("skein512-176", 0xb336, Multihash.Status.Draft); - /** Multihash: skein512-184, status = Draft, code = 0xb337 */ - public static final Multihash SKEIN512_184 = Multihash.of("skein512-184", 0xb337); + /** Multihash: skein512-184, status = draft, code = 0xb337 */ + public static final Multihash SKEIN512_184 = Multihash.of("skein512-184", 0xb337, Multihash.Status.Draft); - /** Multihash: skein512-192, status = Draft, code = 0xb338 */ - public static final Multihash SKEIN512_192 = Multihash.of("skein512-192", 0xb338); + /** Multihash: skein512-192, status = draft, code = 0xb338 */ + public static final Multihash SKEIN512_192 = Multihash.of("skein512-192", 0xb338, Multihash.Status.Draft); - /** Multihash: skein512-200, status = Draft, code = 0xb339 */ - public static final Multihash SKEIN512_200 = Multihash.of("skein512-200", 0xb339); + /** Multihash: skein512-200, status = draft, code = 0xb339 */ + public static final Multihash SKEIN512_200 = Multihash.of("skein512-200", 0xb339, Multihash.Status.Draft); - /** Multihash: skein512-208, status = Draft, code = 0xb33a */ - public static final Multihash SKEIN512_208 = Multihash.of("skein512-208", 0xb33a); + /** Multihash: skein512-208, status = draft, code = 0xb33a */ + public static final Multihash SKEIN512_208 = Multihash.of("skein512-208", 0xb33a, Multihash.Status.Draft); - /** Multihash: skein512-216, status = Draft, code = 0xb33b */ - public static final Multihash SKEIN512_216 = Multihash.of("skein512-216", 0xb33b); + /** Multihash: skein512-216, status = draft, code = 0xb33b */ + public static final Multihash SKEIN512_216 = Multihash.of("skein512-216", 0xb33b, Multihash.Status.Draft); - /** Multihash: skein512-224, status = Draft, code = 0xb33c */ - public static final Multihash SKEIN512_224 = Multihash.of("skein512-224", 0xb33c); + /** Multihash: skein512-224, status = draft, code = 0xb33c */ + public static final Multihash SKEIN512_224 = Multihash.of("skein512-224", 0xb33c, Multihash.Status.Draft); - /** Multihash: skein512-232, status = Draft, code = 0xb33d */ - public static final Multihash SKEIN512_232 = Multihash.of("skein512-232", 0xb33d); + /** Multihash: skein512-232, status = draft, code = 0xb33d */ + public static final Multihash SKEIN512_232 = Multihash.of("skein512-232", 0xb33d, Multihash.Status.Draft); - /** Multihash: skein512-24, status = Draft, code = 0xb323 */ - public static final Multihash SKEIN512_24 = Multihash.of("skein512-24", 0xb323); + /** Multihash: skein512-24, status = draft, code = 0xb323 */ + public static final Multihash SKEIN512_24 = Multihash.of("skein512-24", 0xb323, Multihash.Status.Draft); - /** Multihash: skein512-240, status = Draft, code = 0xb33e */ - public static final Multihash SKEIN512_240 = Multihash.of("skein512-240", 0xb33e); + /** Multihash: skein512-240, status = draft, code = 0xb33e */ + public static final Multihash SKEIN512_240 = Multihash.of("skein512-240", 0xb33e, Multihash.Status.Draft); - /** Multihash: skein512-248, status = Draft, code = 0xb33f */ - public static final Multihash SKEIN512_248 = Multihash.of("skein512-248", 0xb33f); + /** Multihash: skein512-248, status = draft, code = 0xb33f */ + public static final Multihash SKEIN512_248 = Multihash.of("skein512-248", 0xb33f, Multihash.Status.Draft); - /** Multihash: skein512-256, status = Draft, code = 0xb340 */ - public static final Multihash SKEIN512_256 = Multihash.of("skein512-256", 0xb340); + /** Multihash: skein512-256, status = draft, code = 0xb340 */ + public static final Multihash SKEIN512_256 = Multihash.of("skein512-256", 0xb340, Multihash.Status.Draft); - /** Multihash: skein512-264, status = Draft, code = 0xb341 */ - public static final Multihash SKEIN512_264 = Multihash.of("skein512-264", 0xb341); + /** Multihash: skein512-264, status = draft, code = 0xb341 */ + public static final Multihash SKEIN512_264 = Multihash.of("skein512-264", 0xb341, Multihash.Status.Draft); - /** Multihash: skein512-272, status = Draft, code = 0xb342 */ - public static final Multihash SKEIN512_272 = Multihash.of("skein512-272", 0xb342); + /** Multihash: skein512-272, status = draft, code = 0xb342 */ + public static final Multihash SKEIN512_272 = Multihash.of("skein512-272", 0xb342, Multihash.Status.Draft); - /** Multihash: skein512-280, status = Draft, code = 0xb343 */ - public static final Multihash SKEIN512_280 = Multihash.of("skein512-280", 0xb343); + /** Multihash: skein512-280, status = draft, code = 0xb343 */ + public static final Multihash SKEIN512_280 = Multihash.of("skein512-280", 0xb343, Multihash.Status.Draft); - /** Multihash: skein512-288, status = Draft, code = 0xb344 */ - public static final Multihash SKEIN512_288 = Multihash.of("skein512-288", 0xb344); + /** Multihash: skein512-288, status = draft, code = 0xb344 */ + public static final Multihash SKEIN512_288 = Multihash.of("skein512-288", 0xb344, Multihash.Status.Draft); - /** Multihash: skein512-296, status = Draft, code = 0xb345 */ - public static final Multihash SKEIN512_296 = Multihash.of("skein512-296", 0xb345); + /** Multihash: skein512-296, status = draft, code = 0xb345 */ + public static final Multihash SKEIN512_296 = Multihash.of("skein512-296", 0xb345, Multihash.Status.Draft); - /** Multihash: skein512-304, status = Draft, code = 0xb346 */ - public static final Multihash SKEIN512_304 = Multihash.of("skein512-304", 0xb346); + /** Multihash: skein512-304, status = draft, code = 0xb346 */ + public static final Multihash SKEIN512_304 = Multihash.of("skein512-304", 0xb346, Multihash.Status.Draft); - /** Multihash: skein512-312, status = Draft, code = 0xb347 */ - public static final Multihash SKEIN512_312 = Multihash.of("skein512-312", 0xb347); + /** Multihash: skein512-312, status = draft, code = 0xb347 */ + public static final Multihash SKEIN512_312 = Multihash.of("skein512-312", 0xb347, Multihash.Status.Draft); - /** Multihash: skein512-32, status = Draft, code = 0xb324 */ - public static final Multihash SKEIN512_32 = Multihash.of("skein512-32", 0xb324); + /** Multihash: skein512-32, status = draft, code = 0xb324 */ + public static final Multihash SKEIN512_32 = Multihash.of("skein512-32", 0xb324, Multihash.Status.Draft); - /** Multihash: skein512-320, status = Draft, code = 0xb348 */ - public static final Multihash SKEIN512_320 = Multihash.of("skein512-320", 0xb348); + /** Multihash: skein512-320, status = draft, code = 0xb348 */ + public static final Multihash SKEIN512_320 = Multihash.of("skein512-320", 0xb348, Multihash.Status.Draft); - /** Multihash: skein512-328, status = Draft, code = 0xb349 */ - public static final Multihash SKEIN512_328 = Multihash.of("skein512-328", 0xb349); + /** Multihash: skein512-328, status = draft, code = 0xb349 */ + public static final Multihash SKEIN512_328 = Multihash.of("skein512-328", 0xb349, Multihash.Status.Draft); - /** Multihash: skein512-336, status = Draft, code = 0xb34a */ - public static final Multihash SKEIN512_336 = Multihash.of("skein512-336", 0xb34a); + /** Multihash: skein512-336, status = draft, code = 0xb34a */ + public static final Multihash SKEIN512_336 = Multihash.of("skein512-336", 0xb34a, Multihash.Status.Draft); - /** Multihash: skein512-344, status = Draft, code = 0xb34b */ - public static final Multihash SKEIN512_344 = Multihash.of("skein512-344", 0xb34b); + /** Multihash: skein512-344, status = draft, code = 0xb34b */ + public static final Multihash SKEIN512_344 = Multihash.of("skein512-344", 0xb34b, Multihash.Status.Draft); - /** Multihash: skein512-352, status = Draft, code = 0xb34c */ - public static final Multihash SKEIN512_352 = Multihash.of("skein512-352", 0xb34c); + /** Multihash: skein512-352, status = draft, code = 0xb34c */ + public static final Multihash SKEIN512_352 = Multihash.of("skein512-352", 0xb34c, Multihash.Status.Draft); - /** Multihash: skein512-360, status = Draft, code = 0xb34d */ - public static final Multihash SKEIN512_360 = Multihash.of("skein512-360", 0xb34d); + /** Multihash: skein512-360, status = draft, code = 0xb34d */ + public static final Multihash SKEIN512_360 = Multihash.of("skein512-360", 0xb34d, Multihash.Status.Draft); - /** Multihash: skein512-368, status = Draft, code = 0xb34e */ - public static final Multihash SKEIN512_368 = Multihash.of("skein512-368", 0xb34e); + /** Multihash: skein512-368, status = draft, code = 0xb34e */ + public static final Multihash SKEIN512_368 = Multihash.of("skein512-368", 0xb34e, Multihash.Status.Draft); - /** Multihash: skein512-376, status = Draft, code = 0xb34f */ - public static final Multihash SKEIN512_376 = Multihash.of("skein512-376", 0xb34f); + /** Multihash: skein512-376, status = draft, code = 0xb34f */ + public static final Multihash SKEIN512_376 = Multihash.of("skein512-376", 0xb34f, Multihash.Status.Draft); - /** Multihash: skein512-384, status = Draft, code = 0xb350 */ - public static final Multihash SKEIN512_384 = Multihash.of("skein512-384", 0xb350); + /** Multihash: skein512-384, status = draft, code = 0xb350 */ + public static final Multihash SKEIN512_384 = Multihash.of("skein512-384", 0xb350, Multihash.Status.Draft); - /** Multihash: skein512-392, status = Draft, code = 0xb351 */ - public static final Multihash SKEIN512_392 = Multihash.of("skein512-392", 0xb351); + /** Multihash: skein512-392, status = draft, code = 0xb351 */ + public static final Multihash SKEIN512_392 = Multihash.of("skein512-392", 0xb351, Multihash.Status.Draft); - /** Multihash: skein512-40, status = Draft, code = 0xb325 */ - public static final Multihash SKEIN512_40 = Multihash.of("skein512-40", 0xb325); + /** Multihash: skein512-40, status = draft, code = 0xb325 */ + public static final Multihash SKEIN512_40 = Multihash.of("skein512-40", 0xb325, Multihash.Status.Draft); - /** Multihash: skein512-400, status = Draft, code = 0xb352 */ - public static final Multihash SKEIN512_400 = Multihash.of("skein512-400", 0xb352); + /** Multihash: skein512-400, status = draft, code = 0xb352 */ + public static final Multihash SKEIN512_400 = Multihash.of("skein512-400", 0xb352, Multihash.Status.Draft); - /** Multihash: skein512-408, status = Draft, code = 0xb353 */ - public static final Multihash SKEIN512_408 = Multihash.of("skein512-408", 0xb353); + /** Multihash: skein512-408, status = draft, code = 0xb353 */ + public static final Multihash SKEIN512_408 = Multihash.of("skein512-408", 0xb353, Multihash.Status.Draft); - /** Multihash: skein512-416, status = Draft, code = 0xb354 */ - public static final Multihash SKEIN512_416 = Multihash.of("skein512-416", 0xb354); + /** Multihash: skein512-416, status = draft, code = 0xb354 */ + public static final Multihash SKEIN512_416 = Multihash.of("skein512-416", 0xb354, Multihash.Status.Draft); - /** Multihash: skein512-424, status = Draft, code = 0xb355 */ - public static final Multihash SKEIN512_424 = Multihash.of("skein512-424", 0xb355); + /** Multihash: skein512-424, status = draft, code = 0xb355 */ + public static final Multihash SKEIN512_424 = Multihash.of("skein512-424", 0xb355, Multihash.Status.Draft); - /** Multihash: skein512-432, status = Draft, code = 0xb356 */ - public static final Multihash SKEIN512_432 = Multihash.of("skein512-432", 0xb356); + /** Multihash: skein512-432, status = draft, code = 0xb356 */ + public static final Multihash SKEIN512_432 = Multihash.of("skein512-432", 0xb356, Multihash.Status.Draft); - /** Multihash: skein512-440, status = Draft, code = 0xb357 */ - public static final Multihash SKEIN512_440 = Multihash.of("skein512-440", 0xb357); + /** Multihash: skein512-440, status = draft, code = 0xb357 */ + public static final Multihash SKEIN512_440 = Multihash.of("skein512-440", 0xb357, Multihash.Status.Draft); - /** Multihash: skein512-448, status = Draft, code = 0xb358 */ - public static final Multihash SKEIN512_448 = Multihash.of("skein512-448", 0xb358); + /** Multihash: skein512-448, status = draft, code = 0xb358 */ + public static final Multihash SKEIN512_448 = Multihash.of("skein512-448", 0xb358, Multihash.Status.Draft); - /** Multihash: skein512-456, status = Draft, code = 0xb359 */ - public static final Multihash SKEIN512_456 = Multihash.of("skein512-456", 0xb359); + /** Multihash: skein512-456, status = draft, code = 0xb359 */ + public static final Multihash SKEIN512_456 = Multihash.of("skein512-456", 0xb359, Multihash.Status.Draft); - /** Multihash: skein512-464, status = Draft, code = 0xb35a */ - public static final Multihash SKEIN512_464 = Multihash.of("skein512-464", 0xb35a); + /** Multihash: skein512-464, status = draft, code = 0xb35a */ + public static final Multihash SKEIN512_464 = Multihash.of("skein512-464", 0xb35a, Multihash.Status.Draft); - /** Multihash: skein512-472, status = Draft, code = 0xb35b */ - public static final Multihash SKEIN512_472 = Multihash.of("skein512-472", 0xb35b); + /** Multihash: skein512-472, status = draft, code = 0xb35b */ + public static final Multihash SKEIN512_472 = Multihash.of("skein512-472", 0xb35b, Multihash.Status.Draft); - /** Multihash: skein512-48, status = Draft, code = 0xb326 */ - public static final Multihash SKEIN512_48 = Multihash.of("skein512-48", 0xb326); + /** Multihash: skein512-48, status = draft, code = 0xb326 */ + public static final Multihash SKEIN512_48 = Multihash.of("skein512-48", 0xb326, Multihash.Status.Draft); - /** Multihash: skein512-480, status = Draft, code = 0xb35c */ - public static final Multihash SKEIN512_480 = Multihash.of("skein512-480", 0xb35c); + /** Multihash: skein512-480, status = draft, code = 0xb35c */ + public static final Multihash SKEIN512_480 = Multihash.of("skein512-480", 0xb35c, Multihash.Status.Draft); - /** Multihash: skein512-488, status = Draft, code = 0xb35d */ - public static final Multihash SKEIN512_488 = Multihash.of("skein512-488", 0xb35d); + /** Multihash: skein512-488, status = draft, code = 0xb35d */ + public static final Multihash SKEIN512_488 = Multihash.of("skein512-488", 0xb35d, Multihash.Status.Draft); - /** Multihash: skein512-496, status = Draft, code = 0xb35e */ - public static final Multihash SKEIN512_496 = Multihash.of("skein512-496", 0xb35e); + /** Multihash: skein512-496, status = draft, code = 0xb35e */ + public static final Multihash SKEIN512_496 = Multihash.of("skein512-496", 0xb35e, Multihash.Status.Draft); - /** Multihash: skein512-504, status = Draft, code = 0xb35f */ - public static final Multihash SKEIN512_504 = Multihash.of("skein512-504", 0xb35f); + /** Multihash: skein512-504, status = draft, code = 0xb35f */ + public static final Multihash SKEIN512_504 = Multihash.of("skein512-504", 0xb35f, Multihash.Status.Draft); - /** Multihash: skein512-512, status = Draft, code = 0xb360 */ - public static final Multihash SKEIN512_512 = Multihash.of("skein512-512", 0xb360); + /** Multihash: skein512-512, status = draft, code = 0xb360 */ + public static final Multihash SKEIN512_512 = Multihash.of("skein512-512", 0xb360, Multihash.Status.Draft); - /** Multihash: skein512-56, status = Draft, code = 0xb327 */ - public static final Multihash SKEIN512_56 = Multihash.of("skein512-56", 0xb327); + /** Multihash: skein512-56, status = draft, code = 0xb327 */ + public static final Multihash SKEIN512_56 = Multihash.of("skein512-56", 0xb327, Multihash.Status.Draft); - /** Multihash: skein512-64, status = Draft, code = 0xb328 */ - public static final Multihash SKEIN512_64 = Multihash.of("skein512-64", 0xb328); + /** Multihash: skein512-64, status = draft, code = 0xb328 */ + public static final Multihash SKEIN512_64 = Multihash.of("skein512-64", 0xb328, Multihash.Status.Draft); - /** Multihash: skein512-72, status = Draft, code = 0xb329 */ - public static final Multihash SKEIN512_72 = Multihash.of("skein512-72", 0xb329); + /** Multihash: skein512-72, status = draft, code = 0xb329 */ + public static final Multihash SKEIN512_72 = Multihash.of("skein512-72", 0xb329, Multihash.Status.Draft); - /** Multihash: skein512-8, Skein512 consists of 64 output lengths that give different hashes, status = Draft, code = 0xb321 */ - public static final Multihash SKEIN512_8 = Multihash.of("skein512-8", 0xb321); + /** Multihash: skein512-8, Skein512 consists of 64 output lengths that give different hashes, status = draft, code = 0xb321 */ + public static final Multihash SKEIN512_8 = Multihash.of("skein512-8", 0xb321, Multihash.Status.Draft); - /** Multihash: skein512-80, status = Draft, code = 0xb32a */ - public static final Multihash SKEIN512_80 = Multihash.of("skein512-80", 0xb32a); + /** Multihash: skein512-80, status = draft, code = 0xb32a */ + public static final Multihash SKEIN512_80 = Multihash.of("skein512-80", 0xb32a, Multihash.Status.Draft); - /** Multihash: skein512-88, status = Draft, code = 0xb32b */ - public static final Multihash SKEIN512_88 = Multihash.of("skein512-88", 0xb32b); + /** Multihash: skein512-88, status = draft, code = 0xb32b */ + public static final Multihash SKEIN512_88 = Multihash.of("skein512-88", 0xb32b, Multihash.Status.Draft); - /** Multihash: skein512-96, status = Draft, code = 0xb32c */ - public static final Multihash SKEIN512_96 = Multihash.of("skein512-96", 0xb32c); + /** Multihash: skein512-96, status = draft, code = 0xb32c */ + public static final Multihash SKEIN512_96 = Multihash.of("skein512-96", 0xb32c, Multihash.Status.Draft); - /** Multihash: sm3-256, status = Draft, code = 0x534d */ - public static final Multihash SM3_256 = Multihash.of("sm3-256", 0x534d); + /** Multihash: sm3-256, status = draft, code = 0x534d */ + public static final Multihash SM3_256 = Multihash.of("sm3-256", 0x534d, Multihash.Status.Draft); - /** Multihash: ssz-sha2-256-bmt, SSZ Merkle tree root using SHA2-256 as the hashing function and SSZ serialization for the block binary, status = Draft, code = 0xb502 */ - public static final Multihash SSZ_SHA2_256_BMT = Multihash.of("ssz-sha2-256-bmt", 0xb502); + /** Multihash: ssz-sha2-256-bmt, SSZ Merkle tree root using SHA2-256 as the hashing function and SSZ serialization for the block binary, status = draft, code = 0xb502 */ + public static final Multihash SSZ_SHA2_256_BMT = Multihash.of("ssz-sha2-256-bmt", 0xb502, Multihash.Status.Draft); - /** Multihash: x11, status = Draft, code = 0x1100 */ - public static final Multihash X11 = Multihash.of("x11", 0x1100); + /** Multihash: x11, status = draft, code = 0x1100 */ + public static final Multihash X11 = Multihash.of("x11", 0x1100, Multihash.Status.Draft); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java b/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java index bf450b1..5b3774a 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java @@ -6,47 +6,47 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class NamespaceCodec { - /** Namespace: arweave-ns, Arweave Namespace, status = Draft, code = 0xb29910 */ - public static final Multicodec ARWEAVE_NS = Multicodec.of("arweave-ns", Tag.Namespace, 0xb29910); + /** Namespace: arweave-ns, Arweave Namespace, status = draft, code = 0xb29910 */ + public static final Multicodec ARWEAVE_NS = Multicodec.of("arweave-ns", Tag.Namespace, 0xb29910, Multicodec.Status.Draft); - /** Namespace: dnslink, DNSLink path, status = Permanent, code = 0xe8 */ - public static final Multicodec DNSLINK = Multicodec.of("dnslink", Tag.Namespace, 0xe8); + /** Namespace: dnslink, DNSLink path, status = permanent, code = 0xe8 */ + public static final Multicodec DNSLINK = Multicodec.of("dnslink", Tag.Namespace, 0xe8, Multicodec.Status.Permanent); - /** Namespace: ipfs, IPFS path, status = Draft, code = 0xe3 */ - public static final Multicodec IPFS = Multicodec.of("ipfs", Tag.Namespace, 0xe3); + /** Namespace: ipfs, IPFS path, status = draft, code = 0xe3 */ + public static final Multicodec IPFS = Multicodec.of("ipfs", Tag.Namespace, 0xe3, Multicodec.Status.Draft); - /** Namespace: ipld, IPLD path, status = Draft, code = 0xe2 */ - public static final Multicodec IPLD = Multicodec.of("ipld", Tag.Namespace, 0xe2); + /** Namespace: ipld, IPLD path, status = draft, code = 0xe2 */ + public static final Multicodec IPLD = Multicodec.of("ipld", Tag.Namespace, 0xe2, Multicodec.Status.Draft); - /** Namespace: ipns, IPNS path, status = Draft, code = 0xe5 */ - public static final Multicodec IPNS = Multicodec.of("ipns", Tag.Namespace, 0xe5); + /** Namespace: ipns, IPNS path, status = draft, code = 0xe5 */ + public static final Multicodec IPNS = Multicodec.of("ipns", Tag.Namespace, 0xe5, Multicodec.Status.Draft); - /** Namespace: kumandra-ns, Kumandra Network Namespace, status = Draft, code = 0xb49910 */ - public static final Multicodec KUMANDRA_NS = Multicodec.of("kumandra-ns", Tag.Namespace, 0xb49910); + /** Namespace: kumandra-ns, Kumandra Network Namespace, status = draft, code = 0xb49910 */ + public static final Multicodec KUMANDRA_NS = Multicodec.of("kumandra-ns", Tag.Namespace, 0xb49910, Multicodec.Status.Draft); - /** Namespace: lbry, LBRY Address, status = Draft, code = 0x8c */ - public static final Multicodec LBRY = Multicodec.of("lbry", Tag.Namespace, 0x8c); + /** Namespace: lbry, LBRY Address, status = draft, code = 0x8c */ + public static final Multicodec LBRY = Multicodec.of("lbry", Tag.Namespace, 0x8c, Multicodec.Status.Draft); - /** Namespace: path, Namespace for string paths. Corresponds to `/` in ASCII., status = Permanent, code = 0x2f */ - public static final Multicodec PATH = Multicodec.of("path", Tag.Namespace, 0x2f); + /** Namespace: path, Namespace for string paths. Corresponds to `/` in ASCII., status = permanent, code = 0x2f */ + public static final Multicodec PATH = Multicodec.of("path", Tag.Namespace, 0x2f, Multicodec.Status.Permanent); - /** Namespace: skynet-ns, Skynet Namespace, status = Draft, code = 0xb19910 */ - public static final Multicodec SKYNET_NS = Multicodec.of("skynet-ns", Tag.Namespace, 0xb19910); + /** Namespace: skynet-ns, Skynet Namespace, status = draft, code = 0xb19910 */ + public static final Multicodec SKYNET_NS = Multicodec.of("skynet-ns", Tag.Namespace, 0xb19910, Multicodec.Status.Draft); - /** Namespace: streamid, Ceramic Stream Id, status = Draft, code = 0xce */ - public static final Multicodec STREAMID = Multicodec.of("streamid", Tag.Namespace, 0xce); + /** Namespace: streamid, Ceramic Stream Id, status = draft, code = 0xce */ + public static final Multicodec STREAMID = Multicodec.of("streamid", Tag.Namespace, 0xce, Multicodec.Status.Draft); - /** Namespace: subspace-ns, Subspace Network Namespace, status = Draft, code = 0xb39910 */ - public static final Multicodec SUBSPACE_NS = Multicodec.of("subspace-ns", Tag.Namespace, 0xb39910); + /** Namespace: subspace-ns, Subspace Network Namespace, status = draft, code = 0xb39910 */ + public static final Multicodec SUBSPACE_NS = Multicodec.of("subspace-ns", Tag.Namespace, 0xb39910, Multicodec.Status.Draft); - /** Namespace: swarm, Swarm path, status = Draft, code = 0xe4 */ - public static final Multicodec SWARM = Multicodec.of("swarm", Tag.Namespace, 0xe4); + /** Namespace: swarm, Swarm path, status = draft, code = 0xe4 */ + public static final Multicodec SWARM = Multicodec.of("swarm", Tag.Namespace, 0xe4, Multicodec.Status.Draft); - /** Namespace: zeronet, ZeroNet site address, status = Draft, code = 0xe6 */ - public static final Multicodec ZERONET = Multicodec.of("zeronet", Tag.Namespace, 0xe6); + /** Namespace: zeronet, ZeroNet site address, status = draft, code = 0xe6 */ + public static final Multicodec ZERONET = Multicodec.of("zeronet", Tag.Namespace, 0xe6, Multicodec.Status.Draft); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java b/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java index 77f9e5b..6470785 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java @@ -6,44 +6,44 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class SerializationCodec { - /** Serialization: bencode, bencode, status = Draft, code = 0x63 */ - public static final Multicodec BENCODE = Multicodec.of("bencode", Tag.Serialization, 0x63); + /** Serialization: bencode, bencode, status = draft, code = 0x63 */ + public static final Multicodec BENCODE = Multicodec.of("bencode", Tag.Serialization, 0x63, Multicodec.Status.Draft); - /** Serialization: car, Content Addressable aRchive (CAR), status = Draft, code = 0x202 */ - public static final Multicodec CAR = Multicodec.of("car", Tag.Serialization, 0x202); + /** Serialization: car, Content Addressable aRchive (CAR), status = draft, code = 0x202 */ + public static final Multicodec CAR = Multicodec.of("car", Tag.Serialization, 0x202, Multicodec.Status.Draft); - /** Serialization: car-index-sorted, CARv2 IndexSorted index format, status = Draft, code = 0x400 */ - public static final Multicodec CAR_INDEX_SORTED = Multicodec.of("car-index-sorted", Tag.Serialization, 0x400); + /** Serialization: car-index-sorted, CARv2 IndexSorted index format, status = draft, code = 0x400 */ + public static final Multicodec CAR_INDEX_SORTED = Multicodec.of("car-index-sorted", Tag.Serialization, 0x400, Multicodec.Status.Draft); - /** Serialization: car-multihash-index-sorted, CARv2 MultihashIndexSorted index format, status = Draft, code = 0x401 */ - public static final Multicodec CAR_MULTIHASH_INDEX_SORTED = Multicodec.of("car-multihash-index-sorted", Tag.Serialization, 0x401); + /** Serialization: car-multihash-index-sorted, CARv2 MultihashIndexSorted index format, status = draft, code = 0x401 */ + public static final Multicodec CAR_MULTIHASH_INDEX_SORTED = Multicodec.of("car-multihash-index-sorted", Tag.Serialization, 0x401, Multicodec.Status.Draft); - /** Serialization: ipns-record, Signed IPNS Record, status = Permanent, code = 0x300 */ - public static final Multicodec IPNS_RECORD = Multicodec.of("ipns-record", Tag.Serialization, 0x300); + /** Serialization: ipns-record, Signed IPNS Record, status = permanent, code = 0x300 */ + public static final Multicodec IPNS_RECORD = Multicodec.of("ipns-record", Tag.Serialization, 0x300, Multicodec.Status.Permanent); - /** Serialization: messagepack, MessagePack, status = Draft, code = 0x201 */ - public static final Multicodec MESSAGEPACK = Multicodec.of("messagepack", Tag.Serialization, 0x201); + /** Serialization: messagepack, MessagePack, status = draft, code = 0x201 */ + public static final Multicodec MESSAGEPACK = Multicodec.of("messagepack", Tag.Serialization, 0x201, Multicodec.Status.Draft); - /** Serialization: protobuf, Protocol Buffers, status = Draft, code = 0x50 */ - public static final Multicodec PROTOBUF = Multicodec.of("protobuf", Tag.Serialization, 0x50); + /** Serialization: protobuf, Protocol Buffers, status = draft, code = 0x50 */ + public static final Multicodec PROTOBUF = Multicodec.of("protobuf", Tag.Serialization, 0x50, Multicodec.Status.Draft); - /** Serialization: provenance-log, Verifiable and permissioned append-only log, status = Draft, code = 0x1208 */ - public static final Multicodec PROVENANCE_LOG = Multicodec.of("provenance-log", Tag.Serialization, 0x1208); + /** Serialization: provenance-log, Verifiable and permissioned append-only log, status = draft, code = 0x1208 */ + public static final Multicodec PROVENANCE_LOG = Multicodec.of("provenance-log", Tag.Serialization, 0x1208, Multicodec.Status.Draft); - /** Serialization: provenance-log-entry, Verifiable and permissioned append-only log entry, status = Draft, code = 0x1209 */ - public static final Multicodec PROVENANCE_LOG_ENTRY = Multicodec.of("provenance-log-entry", Tag.Serialization, 0x1209); + /** Serialization: provenance-log-entry, Verifiable and permissioned append-only log entry, status = draft, code = 0x1209 */ + public static final Multicodec PROVENANCE_LOG_ENTRY = Multicodec.of("provenance-log-entry", Tag.Serialization, 0x1209, Multicodec.Status.Draft); - /** Serialization: provenance-log-script, Verifiable and permissioned append-only log script, status = Draft, code = 0x120a */ - public static final Multicodec PROVENANCE_LOG_SCRIPT = Multicodec.of("provenance-log-script", Tag.Serialization, 0x120a); + /** Serialization: provenance-log-script, Verifiable and permissioned append-only log script, status = draft, code = 0x120a */ + public static final Multicodec PROVENANCE_LOG_SCRIPT = Multicodec.of("provenance-log-script", Tag.Serialization, 0x120a, Multicodec.Status.Draft); - /** Serialization: rlp, recursive length prefix, status = Draft, code = 0x60 */ - public static final Multicodec RLP = Multicodec.of("rlp", Tag.Serialization, 0x60); + /** Serialization: rlp, recursive length prefix, status = draft, code = 0x60 */ + public static final Multicodec RLP = Multicodec.of("rlp", Tag.Serialization, 0x60, Multicodec.Status.Draft); - /** Serialization: ssz, SimpleSerialize (SSZ) serialization, status = Draft, code = 0xb501 */ - public static final Multicodec SSZ = Multicodec.of("ssz", Tag.Serialization, 0xb501); + /** Serialization: ssz, SimpleSerialize (SSZ) serialization, status = draft, code = 0xb501 */ + public static final Multicodec SSZ = Multicodec.of("ssz", Tag.Serialization, 0xb501, Multicodec.Status.Draft); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java b/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java index 41810c2..38b4a6a 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java @@ -6,17 +6,17 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class TransportCodec { - /** Transport: transport-bitswap, Bitswap datatransfer, status = Draft, code = 0x900 */ - public static final Multicodec TRANSPORT_BITSWAP = Multicodec.of("transport-bitswap", Tag.Transport, 0x900); + /** Transport: transport-bitswap, Bitswap datatransfer, status = draft, code = 0x900 */ + public static final Multicodec TRANSPORT_BITSWAP = Multicodec.of("transport-bitswap", Tag.Transport, 0x900, Multicodec.Status.Draft); - /** Transport: transport-graphsync-filecoinv1, Filecoin graphsync datatransfer, status = Draft, code = 0x910 */ - public static final Multicodec TRANSPORT_GRAPHSYNC_FILECOINV1 = Multicodec.of("transport-graphsync-filecoinv1", Tag.Transport, 0x910); + /** Transport: transport-graphsync-filecoinv1, Filecoin graphsync datatransfer, status = draft, code = 0x910 */ + public static final Multicodec TRANSPORT_GRAPHSYNC_FILECOINV1 = Multicodec.of("transport-graphsync-filecoinv1", Tag.Transport, 0x910, Multicodec.Status.Draft); - /** Transport: transport-ipfs-gateway-http, HTTP IPFS Gateway trustless datatransfer, status = Draft, code = 0x920 */ - public static final Multicodec TRANSPORT_IPFS_GATEWAY_HTTP = Multicodec.of("transport-ipfs-gateway-http", Tag.Transport, 0x920); + /** Transport: transport-ipfs-gateway-http, HTTP IPFS Gateway trustless datatransfer, status = draft, code = 0x920 */ + public static final Multicodec TRANSPORT_IPFS_GATEWAY_HTTP = Multicodec.of("transport-ipfs-gateway-http", Tag.Transport, 0x920, Multicodec.Status.Draft); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java b/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java index b831ba5..9056a1e 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java @@ -6,38 +6,38 @@ import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; -/** Multicodec Registry - generated: Wed Oct 02 02:08:33 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ public class VarsigCodec { - /** Varsig: bls-12381-g1-sig, G1 signature for BLS-12381-G2, status = Draft, code = 0xd0ea */ - public static final Multicodec BLS_12381_G1_SIG = Multicodec.of("bls-12381-g1-sig", Tag.Varsig, 0xd0ea); + /** Varsig: bls-12381-g1-sig, G1 signature for BLS-12381-G2, status = draft, code = 0xd0ea */ + public static final Multicodec BLS_12381_G1_SIG = Multicodec.of("bls-12381-g1-sig", Tag.Varsig, 0xd0ea, Multicodec.Status.Draft); - /** Varsig: bls-12381-g2-sig, G2 signature for BLS-12381-G1, status = Draft, code = 0xd0eb */ - public static final Multicodec BLS_12381_G2_SIG = Multicodec.of("bls-12381-g2-sig", Tag.Varsig, 0xd0eb); + /** Varsig: bls-12381-g2-sig, G2 signature for BLS-12381-G1, status = draft, code = 0xd0eb */ + public static final Multicodec BLS_12381_G2_SIG = Multicodec.of("bls-12381-g2-sig", Tag.Varsig, 0xd0eb, Multicodec.Status.Draft); - /** Varsig: eddsa, Edwards-Curve Digital Signature Algorithm, status = Draft, code = 0xd0ed */ - public static final Multicodec EDDSA = Multicodec.of("eddsa", Tag.Varsig, 0xd0ed); + /** Varsig: eddsa, Edwards-Curve Digital Signature Algorithm, status = draft, code = 0xd0ed */ + public static final Multicodec EDDSA = Multicodec.of("eddsa", Tag.Varsig, 0xd0ed, Multicodec.Status.Draft); - /** Varsig: eip-191, EIP-191 Ethereum Signed Data Standard, status = Draft, code = 0xd191 */ - public static final Multicodec EIP_191 = Multicodec.of("eip-191", Tag.Varsig, 0xd191); + /** Varsig: eip-191, EIP-191 Ethereum Signed Data Standard, status = draft, code = 0xd191 */ + public static final Multicodec EIP_191 = Multicodec.of("eip-191", Tag.Varsig, 0xd191, Multicodec.Status.Draft); - /** Varsig: es256, ES256 Signature Algorithm, status = Draft, code = 0xd01200 */ - public static final Multicodec ES256 = Multicodec.of("es256", Tag.Varsig, 0xd01200); + /** Varsig: es256, ES256 Signature Algorithm, status = draft, code = 0xd01200 */ + public static final Multicodec ES256 = Multicodec.of("es256", Tag.Varsig, 0xd01200, Multicodec.Status.Draft); - /** Varsig: es256k, ES256K Siganture Algorithm (secp256k1), status = Draft, code = 0xd0e7 */ - public static final Multicodec ES256K = Multicodec.of("es256k", Tag.Varsig, 0xd0e7); + /** Varsig: es256k, ES256K Siganture Algorithm (secp256k1), status = draft, code = 0xd0e7 */ + public static final Multicodec ES256K = Multicodec.of("es256k", Tag.Varsig, 0xd0e7, Multicodec.Status.Draft); - /** Varsig: es284, ES384 Signature Algorithm, status = Draft, code = 0xd01201 */ - public static final Multicodec ES284 = Multicodec.of("es284", Tag.Varsig, 0xd01201); + /** Varsig: es284, ES384 Signature Algorithm, status = draft, code = 0xd01201 */ + public static final Multicodec ES284 = Multicodec.of("es284", Tag.Varsig, 0xd01201, Multicodec.Status.Draft); - /** Varsig: es512, ES512 Signature Algorithm, status = Draft, code = 0xd01202 */ - public static final Multicodec ES512 = Multicodec.of("es512", Tag.Varsig, 0xd01202); + /** Varsig: es512, ES512 Signature Algorithm, status = draft, code = 0xd01202 */ + public static final Multicodec ES512 = Multicodec.of("es512", Tag.Varsig, 0xd01202, Multicodec.Status.Draft); - /** Varsig: nonstandard-sig, Namespace for all not yet standard signature algorithms, status = Deprecated, code = 0xd000 */ - public static final Multicodec NONSTANDARD_SIG = Multicodec.of("nonstandard-sig", Tag.Varsig, 0xd000); + /** Varsig: nonstandard-sig, Namespace for all not yet standard signature algorithms, status = deprecated, code = 0xd000 */ + public static final Multicodec NONSTANDARD_SIG = Multicodec.of("nonstandard-sig", Tag.Varsig, 0xd000, Multicodec.Status.Deprecated); - /** Varsig: rs256, RS256 Signature Algorithm, status = Draft, code = 0xd01205 */ - public static final Multicodec RS256 = Multicodec.of("rs256", Tag.Varsig, 0xd01205); + /** Varsig: rs256, RS256 Signature Algorithm, status = draft, code = 0xd01205 */ + public static final Multicodec RS256 = Multicodec.of("rs256", Tag.Varsig, 0xd01205, Multicodec.Status.Draft); protected static final Map ALL = new TreeMap<>(); From bca07773cdceeb4d231f2828bbc805522dbdcaee Mon Sep 17 00:00:00 2001 From: Filip Date: Wed, 2 Oct 2024 16:27:34 +0200 Subject: [PATCH 11/11] Improve generated code --- .../com/apicatalog/multicodec/CodecDef.java | 4 +- .../com/apicatalog/multicodec/CodecTag.java | 8 +- .../apicatalog/multicodec/codec/CidCodec.java | 4 +- .../multicodec/codec/HashCodec.java | 4 +- .../apicatalog/multicodec/codec/KeyCodec.java | 4 +- .../multicodec/codec/MultiaddrCodec.java | 4 +- .../multicodec/codec/MultiformatCodec.java | 4 +- .../multicodec/codec/MultihashCodec.java | 713 +++++++++--------- .../multicodec/codec/NamespaceCodec.java | 4 +- .../multicodec/codec/SerializationCodec.java | 4 +- .../multicodec/codec/TransportCodec.java | 4 +- .../multicodec/codec/VarsigCodec.java | 4 +- 12 files changed, 381 insertions(+), 380 deletions(-) diff --git a/src/gen/java/com/apicatalog/multicodec/CodecDef.java b/src/gen/java/com/apicatalog/multicodec/CodecDef.java index 20fa28c..2e97dbd 100644 --- a/src/gen/java/com/apicatalog/multicodec/CodecDef.java +++ b/src/gen/java/com/apicatalog/multicodec/CodecDef.java @@ -65,9 +65,7 @@ public final void writeCode(PrintWriter writer, Class clazz) { } writer.print(String.format("0x%x", code)); if (status != null) { - writer.print(", "); - writer.print(clazz.getSimpleName()); - writer.print(".Status."); + writer.print(", Multicodec.Status."); writer.print(status); } writer.println(");"); diff --git a/src/gen/java/com/apicatalog/multicodec/CodecTag.java b/src/gen/java/com/apicatalog/multicodec/CodecTag.java index 66846c2..9009e1e 100644 --- a/src/gen/java/com/apicatalog/multicodec/CodecTag.java +++ b/src/gen/java/com/apicatalog/multicodec/CodecTag.java @@ -25,12 +25,14 @@ public static void generate(final String tag, final String className, final Clas writer.println("import java.util.TreeMap;"); writer.println("import java.util.Map;"); writer.println(); - writer.print("import "); - writer.print(clazz.getCanonicalName()); - writer.println(";"); if (Multicodec.class.equals(clazz)) { writer.println("import com.apicatalog.multicodec.Multicodec.Tag;"); + } else { + writer.println("import com.apicatalog.multicodec.Multicodec;"); } + writer.print("import "); + writer.print(clazz.getCanonicalName()); + writer.println(";"); writer.println(); writer.print("/** Multicodec Registry - generated: "); writer.print(new Date().toString()); diff --git a/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java b/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java index 4687b29..21552cf 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/CidCodec.java @@ -3,10 +3,10 @@ import java.util.TreeMap; import java.util.Map; -import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.Multicodec; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class CidCodec { /** Cid: cidv1, CIDv1, status = permanent, code = 0x1 */ diff --git a/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java b/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java index 654bf0e..74572ef 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/HashCodec.java @@ -3,10 +3,10 @@ import java.util.TreeMap; import java.util.Map; -import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.Multicodec; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class HashCodec { /** Hash: crc32, CRC-32 non-cryptographic hash algorithm (IEEE 802.3), status = draft, code = 0x132 */ diff --git a/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java b/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java index ab91b0b..32132a1 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/KeyCodec.java @@ -3,10 +3,10 @@ import java.util.TreeMap; import java.util.Map; -import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.Multicodec; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class KeyCodec { /** Key: aes-128, 128-bit AES symmetric key, status = draft, code = 0xa0 */ diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java index 19175ef..9ff3c41 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultiaddrCodec.java @@ -3,10 +3,10 @@ import java.util.TreeMap; import java.util.Map; -import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.Multicodec; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class MultiaddrCodec { /** Multiaddr: certhash, TLS certificate's fingerprint as a multihash, status = draft, code = 0x1d2 */ diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java index 7ccdd42..67577ee 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultiformatCodec.java @@ -3,10 +3,10 @@ import java.util.TreeMap; import java.util.Map; -import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.Multicodec; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class MultiformatCodec { /** Multiformat: caip-50, CAIP-50 multi-chain account id, status = draft, code = 0xca */ diff --git a/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java b/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java index efcaab7..70a11f9 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/MultihashCodec.java @@ -3,1075 +3,1076 @@ import java.util.TreeMap; import java.util.Map; +import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multihash.Multihash; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class MultihashCodec { /** Multihash: bcrypt-pbkdf, Bcrypt-PBKDF key derivation function, status = draft, code = 0xd00d */ - public static final Multihash BCRYPT_PBKDF = Multihash.of("bcrypt-pbkdf", 0xd00d, Multihash.Status.Draft); + public static final Multihash BCRYPT_PBKDF = Multihash.of("bcrypt-pbkdf", 0xd00d, Multicodec.Status.Draft); /** Multihash: blake2b-104, status = draft, code = 0xb20d */ - public static final Multihash BLAKE2B_104 = Multihash.of("blake2b-104", 0xb20d, Multihash.Status.Draft); + public static final Multihash BLAKE2B_104 = Multihash.of("blake2b-104", 0xb20d, Multicodec.Status.Draft); /** Multihash: blake2b-112, status = draft, code = 0xb20e */ - public static final Multihash BLAKE2B_112 = Multihash.of("blake2b-112", 0xb20e, Multihash.Status.Draft); + public static final Multihash BLAKE2B_112 = Multihash.of("blake2b-112", 0xb20e, Multicodec.Status.Draft); /** Multihash: blake2b-120, status = draft, code = 0xb20f */ - public static final Multihash BLAKE2B_120 = Multihash.of("blake2b-120", 0xb20f, Multihash.Status.Draft); + public static final Multihash BLAKE2B_120 = Multihash.of("blake2b-120", 0xb20f, Multicodec.Status.Draft); /** Multihash: blake2b-128, status = draft, code = 0xb210 */ - public static final Multihash BLAKE2B_128 = Multihash.of("blake2b-128", 0xb210, Multihash.Status.Draft); + public static final Multihash BLAKE2B_128 = Multihash.of("blake2b-128", 0xb210, Multicodec.Status.Draft); /** Multihash: blake2b-136, status = draft, code = 0xb211 */ - public static final Multihash BLAKE2B_136 = Multihash.of("blake2b-136", 0xb211, Multihash.Status.Draft); + public static final Multihash BLAKE2B_136 = Multihash.of("blake2b-136", 0xb211, Multicodec.Status.Draft); /** Multihash: blake2b-144, status = draft, code = 0xb212 */ - public static final Multihash BLAKE2B_144 = Multihash.of("blake2b-144", 0xb212, Multihash.Status.Draft); + public static final Multihash BLAKE2B_144 = Multihash.of("blake2b-144", 0xb212, Multicodec.Status.Draft); /** Multihash: blake2b-152, status = draft, code = 0xb213 */ - public static final Multihash BLAKE2B_152 = Multihash.of("blake2b-152", 0xb213, Multihash.Status.Draft); + public static final Multihash BLAKE2B_152 = Multihash.of("blake2b-152", 0xb213, Multicodec.Status.Draft); /** Multihash: blake2b-16, status = draft, code = 0xb202 */ - public static final Multihash BLAKE2B_16 = Multihash.of("blake2b-16", 0xb202, Multihash.Status.Draft); + public static final Multihash BLAKE2B_16 = Multihash.of("blake2b-16", 0xb202, Multicodec.Status.Draft); /** Multihash: blake2b-160, status = draft, code = 0xb214 */ - public static final Multihash BLAKE2B_160 = Multihash.of("blake2b-160", 0xb214, Multihash.Status.Draft); + public static final Multihash BLAKE2B_160 = Multihash.of("blake2b-160", 0xb214, Multicodec.Status.Draft); /** Multihash: blake2b-168, status = draft, code = 0xb215 */ - public static final Multihash BLAKE2B_168 = Multihash.of("blake2b-168", 0xb215, Multihash.Status.Draft); + public static final Multihash BLAKE2B_168 = Multihash.of("blake2b-168", 0xb215, Multicodec.Status.Draft); /** Multihash: blake2b-176, status = draft, code = 0xb216 */ - public static final Multihash BLAKE2B_176 = Multihash.of("blake2b-176", 0xb216, Multihash.Status.Draft); + public static final Multihash BLAKE2B_176 = Multihash.of("blake2b-176", 0xb216, Multicodec.Status.Draft); /** Multihash: blake2b-184, status = draft, code = 0xb217 */ - public static final Multihash BLAKE2B_184 = Multihash.of("blake2b-184", 0xb217, Multihash.Status.Draft); + public static final Multihash BLAKE2B_184 = Multihash.of("blake2b-184", 0xb217, Multicodec.Status.Draft); /** Multihash: blake2b-192, status = draft, code = 0xb218 */ - public static final Multihash BLAKE2B_192 = Multihash.of("blake2b-192", 0xb218, Multihash.Status.Draft); + public static final Multihash BLAKE2B_192 = Multihash.of("blake2b-192", 0xb218, Multicodec.Status.Draft); /** Multihash: blake2b-200, status = draft, code = 0xb219 */ - public static final Multihash BLAKE2B_200 = Multihash.of("blake2b-200", 0xb219, Multihash.Status.Draft); + public static final Multihash BLAKE2B_200 = Multihash.of("blake2b-200", 0xb219, Multicodec.Status.Draft); /** Multihash: blake2b-208, status = draft, code = 0xb21a */ - public static final Multihash BLAKE2B_208 = Multihash.of("blake2b-208", 0xb21a, Multihash.Status.Draft); + public static final Multihash BLAKE2B_208 = Multihash.of("blake2b-208", 0xb21a, Multicodec.Status.Draft); /** Multihash: blake2b-216, status = draft, code = 0xb21b */ - public static final Multihash BLAKE2B_216 = Multihash.of("blake2b-216", 0xb21b, Multihash.Status.Draft); + public static final Multihash BLAKE2B_216 = Multihash.of("blake2b-216", 0xb21b, Multicodec.Status.Draft); /** Multihash: blake2b-224, status = draft, code = 0xb21c */ - public static final Multihash BLAKE2B_224 = Multihash.of("blake2b-224", 0xb21c, Multihash.Status.Draft); + public static final Multihash BLAKE2B_224 = Multihash.of("blake2b-224", 0xb21c, Multicodec.Status.Draft); /** Multihash: blake2b-232, status = draft, code = 0xb21d */ - public static final Multihash BLAKE2B_232 = Multihash.of("blake2b-232", 0xb21d, Multihash.Status.Draft); + public static final Multihash BLAKE2B_232 = Multihash.of("blake2b-232", 0xb21d, Multicodec.Status.Draft); /** Multihash: blake2b-24, status = draft, code = 0xb203 */ - public static final Multihash BLAKE2B_24 = Multihash.of("blake2b-24", 0xb203, Multihash.Status.Draft); + public static final Multihash BLAKE2B_24 = Multihash.of("blake2b-24", 0xb203, Multicodec.Status.Draft); /** Multihash: blake2b-240, status = draft, code = 0xb21e */ - public static final Multihash BLAKE2B_240 = Multihash.of("blake2b-240", 0xb21e, Multihash.Status.Draft); + public static final Multihash BLAKE2B_240 = Multihash.of("blake2b-240", 0xb21e, Multicodec.Status.Draft); /** Multihash: blake2b-248, status = draft, code = 0xb21f */ - public static final Multihash BLAKE2B_248 = Multihash.of("blake2b-248", 0xb21f, Multihash.Status.Draft); + public static final Multihash BLAKE2B_248 = Multihash.of("blake2b-248", 0xb21f, Multicodec.Status.Draft); /** Multihash: blake2b-256, status = permanent, code = 0xb220 */ - public static final Multihash BLAKE2B_256 = Multihash.of("blake2b-256", 0xb220, Multihash.Status.Permanent); + public static final Multihash BLAKE2B_256 = Multihash.of("blake2b-256", 0xb220, Multicodec.Status.Permanent); /** Multihash: blake2b-264, status = draft, code = 0xb221 */ - public static final Multihash BLAKE2B_264 = Multihash.of("blake2b-264", 0xb221, Multihash.Status.Draft); + public static final Multihash BLAKE2B_264 = Multihash.of("blake2b-264", 0xb221, Multicodec.Status.Draft); /** Multihash: blake2b-272, status = draft, code = 0xb222 */ - public static final Multihash BLAKE2B_272 = Multihash.of("blake2b-272", 0xb222, Multihash.Status.Draft); + public static final Multihash BLAKE2B_272 = Multihash.of("blake2b-272", 0xb222, Multicodec.Status.Draft); /** Multihash: blake2b-280, status = draft, code = 0xb223 */ - public static final Multihash BLAKE2B_280 = Multihash.of("blake2b-280", 0xb223, Multihash.Status.Draft); + public static final Multihash BLAKE2B_280 = Multihash.of("blake2b-280", 0xb223, Multicodec.Status.Draft); /** Multihash: blake2b-288, status = draft, code = 0xb224 */ - public static final Multihash BLAKE2B_288 = Multihash.of("blake2b-288", 0xb224, Multihash.Status.Draft); + public static final Multihash BLAKE2B_288 = Multihash.of("blake2b-288", 0xb224, Multicodec.Status.Draft); /** Multihash: blake2b-296, status = draft, code = 0xb225 */ - public static final Multihash BLAKE2B_296 = Multihash.of("blake2b-296", 0xb225, Multihash.Status.Draft); + public static final Multihash BLAKE2B_296 = Multihash.of("blake2b-296", 0xb225, Multicodec.Status.Draft); /** Multihash: blake2b-304, status = draft, code = 0xb226 */ - public static final Multihash BLAKE2B_304 = Multihash.of("blake2b-304", 0xb226, Multihash.Status.Draft); + public static final Multihash BLAKE2B_304 = Multihash.of("blake2b-304", 0xb226, Multicodec.Status.Draft); /** Multihash: blake2b-312, status = draft, code = 0xb227 */ - public static final Multihash BLAKE2B_312 = Multihash.of("blake2b-312", 0xb227, Multihash.Status.Draft); + public static final Multihash BLAKE2B_312 = Multihash.of("blake2b-312", 0xb227, Multicodec.Status.Draft); /** Multihash: blake2b-32, status = draft, code = 0xb204 */ - public static final Multihash BLAKE2B_32 = Multihash.of("blake2b-32", 0xb204, Multihash.Status.Draft); + public static final Multihash BLAKE2B_32 = Multihash.of("blake2b-32", 0xb204, Multicodec.Status.Draft); /** Multihash: blake2b-320, status = draft, code = 0xb228 */ - public static final Multihash BLAKE2B_320 = Multihash.of("blake2b-320", 0xb228, Multihash.Status.Draft); + public static final Multihash BLAKE2B_320 = Multihash.of("blake2b-320", 0xb228, Multicodec.Status.Draft); /** Multihash: blake2b-328, status = draft, code = 0xb229 */ - public static final Multihash BLAKE2B_328 = Multihash.of("blake2b-328", 0xb229, Multihash.Status.Draft); + public static final Multihash BLAKE2B_328 = Multihash.of("blake2b-328", 0xb229, Multicodec.Status.Draft); /** Multihash: blake2b-336, status = draft, code = 0xb22a */ - public static final Multihash BLAKE2B_336 = Multihash.of("blake2b-336", 0xb22a, Multihash.Status.Draft); + public static final Multihash BLAKE2B_336 = Multihash.of("blake2b-336", 0xb22a, Multicodec.Status.Draft); /** Multihash: blake2b-344, status = draft, code = 0xb22b */ - public static final Multihash BLAKE2B_344 = Multihash.of("blake2b-344", 0xb22b, Multihash.Status.Draft); + public static final Multihash BLAKE2B_344 = Multihash.of("blake2b-344", 0xb22b, Multicodec.Status.Draft); /** Multihash: blake2b-352, status = draft, code = 0xb22c */ - public static final Multihash BLAKE2B_352 = Multihash.of("blake2b-352", 0xb22c, Multihash.Status.Draft); + public static final Multihash BLAKE2B_352 = Multihash.of("blake2b-352", 0xb22c, Multicodec.Status.Draft); /** Multihash: blake2b-360, status = draft, code = 0xb22d */ - public static final Multihash BLAKE2B_360 = Multihash.of("blake2b-360", 0xb22d, Multihash.Status.Draft); + public static final Multihash BLAKE2B_360 = Multihash.of("blake2b-360", 0xb22d, Multicodec.Status.Draft); /** Multihash: blake2b-368, status = draft, code = 0xb22e */ - public static final Multihash BLAKE2B_368 = Multihash.of("blake2b-368", 0xb22e, Multihash.Status.Draft); + public static final Multihash BLAKE2B_368 = Multihash.of("blake2b-368", 0xb22e, Multicodec.Status.Draft); /** Multihash: blake2b-376, status = draft, code = 0xb22f */ - public static final Multihash BLAKE2B_376 = Multihash.of("blake2b-376", 0xb22f, Multihash.Status.Draft); + public static final Multihash BLAKE2B_376 = Multihash.of("blake2b-376", 0xb22f, Multicodec.Status.Draft); /** Multihash: blake2b-384, status = draft, code = 0xb230 */ - public static final Multihash BLAKE2B_384 = Multihash.of("blake2b-384", 0xb230, Multihash.Status.Draft); + public static final Multihash BLAKE2B_384 = Multihash.of("blake2b-384", 0xb230, Multicodec.Status.Draft); /** Multihash: blake2b-392, status = draft, code = 0xb231 */ - public static final Multihash BLAKE2B_392 = Multihash.of("blake2b-392", 0xb231, Multihash.Status.Draft); + public static final Multihash BLAKE2B_392 = Multihash.of("blake2b-392", 0xb231, Multicodec.Status.Draft); /** Multihash: blake2b-40, status = draft, code = 0xb205 */ - public static final Multihash BLAKE2B_40 = Multihash.of("blake2b-40", 0xb205, Multihash.Status.Draft); + public static final Multihash BLAKE2B_40 = Multihash.of("blake2b-40", 0xb205, Multicodec.Status.Draft); /** Multihash: blake2b-400, status = draft, code = 0xb232 */ - public static final Multihash BLAKE2B_400 = Multihash.of("blake2b-400", 0xb232, Multihash.Status.Draft); + public static final Multihash BLAKE2B_400 = Multihash.of("blake2b-400", 0xb232, Multicodec.Status.Draft); /** Multihash: blake2b-408, status = draft, code = 0xb233 */ - public static final Multihash BLAKE2B_408 = Multihash.of("blake2b-408", 0xb233, Multihash.Status.Draft); + public static final Multihash BLAKE2B_408 = Multihash.of("blake2b-408", 0xb233, Multicodec.Status.Draft); /** Multihash: blake2b-416, status = draft, code = 0xb234 */ - public static final Multihash BLAKE2B_416 = Multihash.of("blake2b-416", 0xb234, Multihash.Status.Draft); + public static final Multihash BLAKE2B_416 = Multihash.of("blake2b-416", 0xb234, Multicodec.Status.Draft); /** Multihash: blake2b-424, status = draft, code = 0xb235 */ - public static final Multihash BLAKE2B_424 = Multihash.of("blake2b-424", 0xb235, Multihash.Status.Draft); + public static final Multihash BLAKE2B_424 = Multihash.of("blake2b-424", 0xb235, Multicodec.Status.Draft); /** Multihash: blake2b-432, status = draft, code = 0xb236 */ - public static final Multihash BLAKE2B_432 = Multihash.of("blake2b-432", 0xb236, Multihash.Status.Draft); + public static final Multihash BLAKE2B_432 = Multihash.of("blake2b-432", 0xb236, Multicodec.Status.Draft); /** Multihash: blake2b-440, status = draft, code = 0xb237 */ - public static final Multihash BLAKE2B_440 = Multihash.of("blake2b-440", 0xb237, Multihash.Status.Draft); + public static final Multihash BLAKE2B_440 = Multihash.of("blake2b-440", 0xb237, Multicodec.Status.Draft); /** Multihash: blake2b-448, status = draft, code = 0xb238 */ - public static final Multihash BLAKE2B_448 = Multihash.of("blake2b-448", 0xb238, Multihash.Status.Draft); + public static final Multihash BLAKE2B_448 = Multihash.of("blake2b-448", 0xb238, Multicodec.Status.Draft); /** Multihash: blake2b-456, status = draft, code = 0xb239 */ - public static final Multihash BLAKE2B_456 = Multihash.of("blake2b-456", 0xb239, Multihash.Status.Draft); + public static final Multihash BLAKE2B_456 = Multihash.of("blake2b-456", 0xb239, Multicodec.Status.Draft); /** Multihash: blake2b-464, status = draft, code = 0xb23a */ - public static final Multihash BLAKE2B_464 = Multihash.of("blake2b-464", 0xb23a, Multihash.Status.Draft); + public static final Multihash BLAKE2B_464 = Multihash.of("blake2b-464", 0xb23a, Multicodec.Status.Draft); /** Multihash: blake2b-472, status = draft, code = 0xb23b */ - public static final Multihash BLAKE2B_472 = Multihash.of("blake2b-472", 0xb23b, Multihash.Status.Draft); + public static final Multihash BLAKE2B_472 = Multihash.of("blake2b-472", 0xb23b, Multicodec.Status.Draft); /** Multihash: blake2b-48, status = draft, code = 0xb206 */ - public static final Multihash BLAKE2B_48 = Multihash.of("blake2b-48", 0xb206, Multihash.Status.Draft); + public static final Multihash BLAKE2B_48 = Multihash.of("blake2b-48", 0xb206, Multicodec.Status.Draft); /** Multihash: blake2b-480, status = draft, code = 0xb23c */ - public static final Multihash BLAKE2B_480 = Multihash.of("blake2b-480", 0xb23c, Multihash.Status.Draft); + public static final Multihash BLAKE2B_480 = Multihash.of("blake2b-480", 0xb23c, Multicodec.Status.Draft); /** Multihash: blake2b-488, status = draft, code = 0xb23d */ - public static final Multihash BLAKE2B_488 = Multihash.of("blake2b-488", 0xb23d, Multihash.Status.Draft); + public static final Multihash BLAKE2B_488 = Multihash.of("blake2b-488", 0xb23d, Multicodec.Status.Draft); /** Multihash: blake2b-496, status = draft, code = 0xb23e */ - public static final Multihash BLAKE2B_496 = Multihash.of("blake2b-496", 0xb23e, Multihash.Status.Draft); + public static final Multihash BLAKE2B_496 = Multihash.of("blake2b-496", 0xb23e, Multicodec.Status.Draft); /** Multihash: blake2b-504, status = draft, code = 0xb23f */ - public static final Multihash BLAKE2B_504 = Multihash.of("blake2b-504", 0xb23f, Multihash.Status.Draft); + public static final Multihash BLAKE2B_504 = Multihash.of("blake2b-504", 0xb23f, Multicodec.Status.Draft); /** Multihash: blake2b-512, status = draft, code = 0xb240 */ - public static final Multihash BLAKE2B_512 = Multihash.of("blake2b-512", 0xb240, Multihash.Status.Draft); + public static final Multihash BLAKE2B_512 = Multihash.of("blake2b-512", 0xb240, Multicodec.Status.Draft); /** Multihash: blake2b-56, status = draft, code = 0xb207 */ - public static final Multihash BLAKE2B_56 = Multihash.of("blake2b-56", 0xb207, Multihash.Status.Draft); + public static final Multihash BLAKE2B_56 = Multihash.of("blake2b-56", 0xb207, Multicodec.Status.Draft); /** Multihash: blake2b-64, status = draft, code = 0xb208 */ - public static final Multihash BLAKE2B_64 = Multihash.of("blake2b-64", 0xb208, Multihash.Status.Draft); + public static final Multihash BLAKE2B_64 = Multihash.of("blake2b-64", 0xb208, Multicodec.Status.Draft); /** Multihash: blake2b-72, status = draft, code = 0xb209 */ - public static final Multihash BLAKE2B_72 = Multihash.of("blake2b-72", 0xb209, Multihash.Status.Draft); + public static final Multihash BLAKE2B_72 = Multihash.of("blake2b-72", 0xb209, Multicodec.Status.Draft); /** Multihash: blake2b-8, Blake2b consists of 64 output lengths that give different hashes, status = draft, code = 0xb201 */ - public static final Multihash BLAKE2B_8 = Multihash.of("blake2b-8", 0xb201, Multihash.Status.Draft); + public static final Multihash BLAKE2B_8 = Multihash.of("blake2b-8", 0xb201, Multicodec.Status.Draft); /** Multihash: blake2b-80, status = draft, code = 0xb20a */ - public static final Multihash BLAKE2B_80 = Multihash.of("blake2b-80", 0xb20a, Multihash.Status.Draft); + public static final Multihash BLAKE2B_80 = Multihash.of("blake2b-80", 0xb20a, Multicodec.Status.Draft); /** Multihash: blake2b-88, status = draft, code = 0xb20b */ - public static final Multihash BLAKE2B_88 = Multihash.of("blake2b-88", 0xb20b, Multihash.Status.Draft); + public static final Multihash BLAKE2B_88 = Multihash.of("blake2b-88", 0xb20b, Multicodec.Status.Draft); /** Multihash: blake2b-96, status = draft, code = 0xb20c */ - public static final Multihash BLAKE2B_96 = Multihash.of("blake2b-96", 0xb20c, Multihash.Status.Draft); + public static final Multihash BLAKE2B_96 = Multihash.of("blake2b-96", 0xb20c, Multicodec.Status.Draft); /** Multihash: blake2s-104, status = draft, code = 0xb24d */ - public static final Multihash BLAKE2S_104 = Multihash.of("blake2s-104", 0xb24d, Multihash.Status.Draft); + public static final Multihash BLAKE2S_104 = Multihash.of("blake2s-104", 0xb24d, Multicodec.Status.Draft); /** Multihash: blake2s-112, status = draft, code = 0xb24e */ - public static final Multihash BLAKE2S_112 = Multihash.of("blake2s-112", 0xb24e, Multihash.Status.Draft); + public static final Multihash BLAKE2S_112 = Multihash.of("blake2s-112", 0xb24e, Multicodec.Status.Draft); /** Multihash: blake2s-120, status = draft, code = 0xb24f */ - public static final Multihash BLAKE2S_120 = Multihash.of("blake2s-120", 0xb24f, Multihash.Status.Draft); + public static final Multihash BLAKE2S_120 = Multihash.of("blake2s-120", 0xb24f, Multicodec.Status.Draft); /** Multihash: blake2s-128, status = draft, code = 0xb250 */ - public static final Multihash BLAKE2S_128 = Multihash.of("blake2s-128", 0xb250, Multihash.Status.Draft); + public static final Multihash BLAKE2S_128 = Multihash.of("blake2s-128", 0xb250, Multicodec.Status.Draft); /** Multihash: blake2s-136, status = draft, code = 0xb251 */ - public static final Multihash BLAKE2S_136 = Multihash.of("blake2s-136", 0xb251, Multihash.Status.Draft); + public static final Multihash BLAKE2S_136 = Multihash.of("blake2s-136", 0xb251, Multicodec.Status.Draft); /** Multihash: blake2s-144, status = draft, code = 0xb252 */ - public static final Multihash BLAKE2S_144 = Multihash.of("blake2s-144", 0xb252, Multihash.Status.Draft); + public static final Multihash BLAKE2S_144 = Multihash.of("blake2s-144", 0xb252, Multicodec.Status.Draft); /** Multihash: blake2s-152, status = draft, code = 0xb253 */ - public static final Multihash BLAKE2S_152 = Multihash.of("blake2s-152", 0xb253, Multihash.Status.Draft); + public static final Multihash BLAKE2S_152 = Multihash.of("blake2s-152", 0xb253, Multicodec.Status.Draft); /** Multihash: blake2s-16, status = draft, code = 0xb242 */ - public static final Multihash BLAKE2S_16 = Multihash.of("blake2s-16", 0xb242, Multihash.Status.Draft); + public static final Multihash BLAKE2S_16 = Multihash.of("blake2s-16", 0xb242, Multicodec.Status.Draft); /** Multihash: blake2s-160, status = draft, code = 0xb254 */ - public static final Multihash BLAKE2S_160 = Multihash.of("blake2s-160", 0xb254, Multihash.Status.Draft); + public static final Multihash BLAKE2S_160 = Multihash.of("blake2s-160", 0xb254, Multicodec.Status.Draft); /** Multihash: blake2s-168, status = draft, code = 0xb255 */ - public static final Multihash BLAKE2S_168 = Multihash.of("blake2s-168", 0xb255, Multihash.Status.Draft); + public static final Multihash BLAKE2S_168 = Multihash.of("blake2s-168", 0xb255, Multicodec.Status.Draft); /** Multihash: blake2s-176, status = draft, code = 0xb256 */ - public static final Multihash BLAKE2S_176 = Multihash.of("blake2s-176", 0xb256, Multihash.Status.Draft); + public static final Multihash BLAKE2S_176 = Multihash.of("blake2s-176", 0xb256, Multicodec.Status.Draft); /** Multihash: blake2s-184, status = draft, code = 0xb257 */ - public static final Multihash BLAKE2S_184 = Multihash.of("blake2s-184", 0xb257, Multihash.Status.Draft); + public static final Multihash BLAKE2S_184 = Multihash.of("blake2s-184", 0xb257, Multicodec.Status.Draft); /** Multihash: blake2s-192, status = draft, code = 0xb258 */ - public static final Multihash BLAKE2S_192 = Multihash.of("blake2s-192", 0xb258, Multihash.Status.Draft); + public static final Multihash BLAKE2S_192 = Multihash.of("blake2s-192", 0xb258, Multicodec.Status.Draft); /** Multihash: blake2s-200, status = draft, code = 0xb259 */ - public static final Multihash BLAKE2S_200 = Multihash.of("blake2s-200", 0xb259, Multihash.Status.Draft); + public static final Multihash BLAKE2S_200 = Multihash.of("blake2s-200", 0xb259, Multicodec.Status.Draft); /** Multihash: blake2s-208, status = draft, code = 0xb25a */ - public static final Multihash BLAKE2S_208 = Multihash.of("blake2s-208", 0xb25a, Multihash.Status.Draft); + public static final Multihash BLAKE2S_208 = Multihash.of("blake2s-208", 0xb25a, Multicodec.Status.Draft); /** Multihash: blake2s-216, status = draft, code = 0xb25b */ - public static final Multihash BLAKE2S_216 = Multihash.of("blake2s-216", 0xb25b, Multihash.Status.Draft); + public static final Multihash BLAKE2S_216 = Multihash.of("blake2s-216", 0xb25b, Multicodec.Status.Draft); /** Multihash: blake2s-224, status = draft, code = 0xb25c */ - public static final Multihash BLAKE2S_224 = Multihash.of("blake2s-224", 0xb25c, Multihash.Status.Draft); + public static final Multihash BLAKE2S_224 = Multihash.of("blake2s-224", 0xb25c, Multicodec.Status.Draft); /** Multihash: blake2s-232, status = draft, code = 0xb25d */ - public static final Multihash BLAKE2S_232 = Multihash.of("blake2s-232", 0xb25d, Multihash.Status.Draft); + public static final Multihash BLAKE2S_232 = Multihash.of("blake2s-232", 0xb25d, Multicodec.Status.Draft); /** Multihash: blake2s-24, status = draft, code = 0xb243 */ - public static final Multihash BLAKE2S_24 = Multihash.of("blake2s-24", 0xb243, Multihash.Status.Draft); + public static final Multihash BLAKE2S_24 = Multihash.of("blake2s-24", 0xb243, Multicodec.Status.Draft); /** Multihash: blake2s-240, status = draft, code = 0xb25e */ - public static final Multihash BLAKE2S_240 = Multihash.of("blake2s-240", 0xb25e, Multihash.Status.Draft); + public static final Multihash BLAKE2S_240 = Multihash.of("blake2s-240", 0xb25e, Multicodec.Status.Draft); /** Multihash: blake2s-248, status = draft, code = 0xb25f */ - public static final Multihash BLAKE2S_248 = Multihash.of("blake2s-248", 0xb25f, Multihash.Status.Draft); + public static final Multihash BLAKE2S_248 = Multihash.of("blake2s-248", 0xb25f, Multicodec.Status.Draft); /** Multihash: blake2s-256, status = draft, code = 0xb260 */ - public static final Multihash BLAKE2S_256 = Multihash.of("blake2s-256", 0xb260, Multihash.Status.Draft); + public static final Multihash BLAKE2S_256 = Multihash.of("blake2s-256", 0xb260, Multicodec.Status.Draft); /** Multihash: blake2s-32, status = draft, code = 0xb244 */ - public static final Multihash BLAKE2S_32 = Multihash.of("blake2s-32", 0xb244, Multihash.Status.Draft); + public static final Multihash BLAKE2S_32 = Multihash.of("blake2s-32", 0xb244, Multicodec.Status.Draft); /** Multihash: blake2s-40, status = draft, code = 0xb245 */ - public static final Multihash BLAKE2S_40 = Multihash.of("blake2s-40", 0xb245, Multihash.Status.Draft); + public static final Multihash BLAKE2S_40 = Multihash.of("blake2s-40", 0xb245, Multicodec.Status.Draft); /** Multihash: blake2s-48, status = draft, code = 0xb246 */ - public static final Multihash BLAKE2S_48 = Multihash.of("blake2s-48", 0xb246, Multihash.Status.Draft); + public static final Multihash BLAKE2S_48 = Multihash.of("blake2s-48", 0xb246, Multicodec.Status.Draft); /** Multihash: blake2s-56, status = draft, code = 0xb247 */ - public static final Multihash BLAKE2S_56 = Multihash.of("blake2s-56", 0xb247, Multihash.Status.Draft); + public static final Multihash BLAKE2S_56 = Multihash.of("blake2s-56", 0xb247, Multicodec.Status.Draft); /** Multihash: blake2s-64, status = draft, code = 0xb248 */ - public static final Multihash BLAKE2S_64 = Multihash.of("blake2s-64", 0xb248, Multihash.Status.Draft); + public static final Multihash BLAKE2S_64 = Multihash.of("blake2s-64", 0xb248, Multicodec.Status.Draft); /** Multihash: blake2s-72, status = draft, code = 0xb249 */ - public static final Multihash BLAKE2S_72 = Multihash.of("blake2s-72", 0xb249, Multihash.Status.Draft); + public static final Multihash BLAKE2S_72 = Multihash.of("blake2s-72", 0xb249, Multicodec.Status.Draft); /** Multihash: blake2s-8, Blake2s consists of 32 output lengths that give different hashes, status = draft, code = 0xb241 */ - public static final Multihash BLAKE2S_8 = Multihash.of("blake2s-8", 0xb241, Multihash.Status.Draft); + public static final Multihash BLAKE2S_8 = Multihash.of("blake2s-8", 0xb241, Multicodec.Status.Draft); /** Multihash: blake2s-80, status = draft, code = 0xb24a */ - public static final Multihash BLAKE2S_80 = Multihash.of("blake2s-80", 0xb24a, Multihash.Status.Draft); + public static final Multihash BLAKE2S_80 = Multihash.of("blake2s-80", 0xb24a, Multicodec.Status.Draft); /** Multihash: blake2s-88, status = draft, code = 0xb24b */ - public static final Multihash BLAKE2S_88 = Multihash.of("blake2s-88", 0xb24b, Multihash.Status.Draft); + public static final Multihash BLAKE2S_88 = Multihash.of("blake2s-88", 0xb24b, Multicodec.Status.Draft); /** Multihash: blake2s-96, status = draft, code = 0xb24c */ - public static final Multihash BLAKE2S_96 = Multihash.of("blake2s-96", 0xb24c, Multihash.Status.Draft); + public static final Multihash BLAKE2S_96 = Multihash.of("blake2s-96", 0xb24c, Multicodec.Status.Draft); /** Multihash: blake3, BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes., status = draft, code = 0x1e */ - public static final Multihash BLAKE3 = Multihash.of("blake3", 0x1e, Multihash.Status.Draft); + public static final Multihash BLAKE3 = Multihash.of("blake3", 0x1e, Multicodec.Status.Draft); /** Multihash: dbl-sha2-256, status = draft, code = 0x56 */ - public static final Multihash DBL_SHA2_256 = Multihash.of("dbl-sha2-256", 0x56, Multihash.Status.Draft); + public static final Multihash DBL_SHA2_256 = Multihash.of("dbl-sha2-256", 0x56, Multicodec.Status.Draft); /** Multihash: identity, raw binary, status = permanent, code = 0x0 */ - public static final Multihash IDENTITY = Multihash.of("identity", 0x0, Multihash.Status.Permanent); + public static final Multihash IDENTITY = Multihash.of("identity", 0x0, Multicodec.Status.Permanent); /** Multihash: kangarootwelve, KangarooTwelve is an extendable-output hash function based on Keccak-p, status = draft, code = 0x1d01 */ - public static final Multihash KANGAROOTWELVE = Multihash.of("kangarootwelve", 0x1d01, Multihash.Status.Draft); + public static final Multihash KANGAROOTWELVE = Multihash.of("kangarootwelve", 0x1d01, Multicodec.Status.Draft); /** Multihash: keccak-224, keccak has variable output length. The number specifies the core length, status = draft, code = 0x1a */ - public static final Multihash KECCAK_224 = Multihash.of("keccak-224", 0x1a, Multihash.Status.Draft); + public static final Multihash KECCAK_224 = Multihash.of("keccak-224", 0x1a, Multicodec.Status.Draft); /** Multihash: keccak-256, status = draft, code = 0x1b */ - public static final Multihash KECCAK_256 = Multihash.of("keccak-256", 0x1b, Multihash.Status.Draft); + public static final Multihash KECCAK_256 = Multihash.of("keccak-256", 0x1b, Multicodec.Status.Draft); /** Multihash: keccak-384, status = draft, code = 0x1c */ - public static final Multihash KECCAK_384 = Multihash.of("keccak-384", 0x1c, Multihash.Status.Draft); + public static final Multihash KECCAK_384 = Multihash.of("keccak-384", 0x1c, Multicodec.Status.Draft); /** Multihash: keccak-512, status = draft, code = 0x1d */ - public static final Multihash KECCAK_512 = Multihash.of("keccak-512", 0x1d, Multihash.Status.Draft); + public static final Multihash KECCAK_512 = Multihash.of("keccak-512", 0x1d, Multicodec.Status.Draft); /** Multihash: md4, status = draft, code = 0xd4 */ - public static final Multihash MD4 = Multihash.of("md4", 0xd4, Multihash.Status.Draft); + public static final Multihash MD4 = Multihash.of("md4", 0xd4, Multicodec.Status.Draft); /** Multihash: md5, status = draft, code = 0xd5 */ - public static final Multihash MD5 = Multihash.of("md5", 0xd5, Multihash.Status.Draft); + public static final Multihash MD5 = Multihash.of("md5", 0xd5, Multicodec.Status.Draft); /** Multihash: poseidon-bls12_381-a2-fc1, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters, status = permanent, code = 0xb401 */ - public static final Multihash POSEIDON_BLS12_381_A2_FC1 = Multihash.of("poseidon-bls12_381-a2-fc1", 0xb401, Multihash.Status.Permanent); + public static final Multihash POSEIDON_BLS12_381_A2_FC1 = Multihash.of("poseidon-bls12_381-a2-fc1", 0xb401, Multicodec.Status.Permanent); /** Multihash: poseidon-bls12_381-a2-fc1-sc, Poseidon using BLS12-381 and arity of 2 with Filecoin parameters - high-security variant, status = draft, code = 0xb402 */ - public static final Multihash POSEIDON_BLS12_381_A2_FC1_SC = Multihash.of("poseidon-bls12_381-a2-fc1-sc", 0xb402, Multihash.Status.Draft); + public static final Multihash POSEIDON_BLS12_381_A2_FC1_SC = Multihash.of("poseidon-bls12_381-a2-fc1-sc", 0xb402, Multicodec.Status.Draft); /** Multihash: ripemd-128, status = draft, code = 0x1052 */ - public static final Multihash RIPEMD_128 = Multihash.of("ripemd-128", 0x1052, Multihash.Status.Draft); + public static final Multihash RIPEMD_128 = Multihash.of("ripemd-128", 0x1052, Multicodec.Status.Draft); /** Multihash: ripemd-160, status = draft, code = 0x1053 */ - public static final Multihash RIPEMD_160 = Multihash.of("ripemd-160", 0x1053, Multihash.Status.Draft); + public static final Multihash RIPEMD_160 = Multihash.of("ripemd-160", 0x1053, Multicodec.Status.Draft); /** Multihash: ripemd-256, status = draft, code = 0x1054 */ - public static final Multihash RIPEMD_256 = Multihash.of("ripemd-256", 0x1054, Multihash.Status.Draft); + public static final Multihash RIPEMD_256 = Multihash.of("ripemd-256", 0x1054, Multicodec.Status.Draft); /** Multihash: ripemd-320, status = draft, code = 0x1055 */ - public static final Multihash RIPEMD_320 = Multihash.of("ripemd-320", 0x1055, Multihash.Status.Draft); + public static final Multihash RIPEMD_320 = Multihash.of("ripemd-320", 0x1055, Multicodec.Status.Draft); /** Multihash: sha1, status = permanent, code = 0x11 */ - public static final Multihash SHA1 = Multihash.of("sha1", 0x11, Multihash.Status.Permanent); + public static final Multihash SHA1 = Multihash.of("sha1", 0x11, Multicodec.Status.Permanent); /** Multihash: sha2-224, aka SHA-224; as specified by FIPS 180-4., status = permanent, code = 0x1013 */ - public static final Multihash SHA2_224 = Multihash.of("sha2-224", 0x1013, Multihash.Status.Permanent); + public static final Multihash SHA2_224 = Multihash.of("sha2-224", 0x1013, Multicodec.Status.Permanent); /** Multihash: sha2-256, status = permanent, code = 0x12 */ - public static final Multihash SHA2_256 = Multihash.of("sha2-256", 0x12, Multihash.Status.Permanent); + public static final Multihash SHA2_256 = Multihash.of("sha2-256", 0x12, Multicodec.Status.Permanent); /** Multihash: sha2-256-chunked, Hash of concatenated SHA2-256 digests of 8*2^n MiB source chunks; n = ceil(log2(source_size/(10^4 * 8MiB))), status = draft, code = 0xb510 */ - public static final Multihash SHA2_256_CHUNKED = Multihash.of("sha2-256-chunked", 0xb510, Multihash.Status.Draft); + public static final Multihash SHA2_256_CHUNKED = Multihash.of("sha2-256-chunked", 0xb510, Multicodec.Status.Draft); /** Multihash: sha2-256-trunc254-padded, SHA2-256 with the two most significant bits from the last byte zeroed (as via a mask with 0b00111111) - used for proving trees as in Filecoin, status = permanent, code = 0x1012 */ - public static final Multihash SHA2_256_TRUNC254_PADDED = Multihash.of("sha2-256-trunc254-padded", 0x1012, Multihash.Status.Permanent); + public static final Multihash SHA2_256_TRUNC254_PADDED = Multihash.of("sha2-256-trunc254-padded", 0x1012, Multicodec.Status.Permanent); /** Multihash: sha2-384, aka SHA-384; as specified by FIPS 180-4., status = permanent, code = 0x20 */ - public static final Multihash SHA2_384 = Multihash.of("sha2-384", 0x20, Multihash.Status.Permanent); + public static final Multihash SHA2_384 = Multihash.of("sha2-384", 0x20, Multicodec.Status.Permanent); /** Multihash: sha2-512, status = permanent, code = 0x13 */ - public static final Multihash SHA2_512 = Multihash.of("sha2-512", 0x13, Multihash.Status.Permanent); + public static final Multihash SHA2_512 = Multihash.of("sha2-512", 0x13, Multicodec.Status.Permanent); /** Multihash: sha2-512-224, aka SHA-512/224; as specified by FIPS 180-4., status = permanent, code = 0x1014 */ - public static final Multihash SHA2_512_224 = Multihash.of("sha2-512-224", 0x1014, Multihash.Status.Permanent); + public static final Multihash SHA2_512_224 = Multihash.of("sha2-512-224", 0x1014, Multicodec.Status.Permanent); /** Multihash: sha2-512-256, aka SHA-512/256; as specified by FIPS 180-4., status = permanent, code = 0x1015 */ - public static final Multihash SHA2_512_256 = Multihash.of("sha2-512-256", 0x1015, Multihash.Status.Permanent); + public static final Multihash SHA2_512_256 = Multihash.of("sha2-512-256", 0x1015, Multicodec.Status.Permanent); /** Multihash: sha3-224, status = permanent, code = 0x17 */ - public static final Multihash SHA3_224 = Multihash.of("sha3-224", 0x17, Multihash.Status.Permanent); + public static final Multihash SHA3_224 = Multihash.of("sha3-224", 0x17, Multicodec.Status.Permanent); /** Multihash: sha3-256, status = permanent, code = 0x16 */ - public static final Multihash SHA3_256 = Multihash.of("sha3-256", 0x16, Multihash.Status.Permanent); + public static final Multihash SHA3_256 = Multihash.of("sha3-256", 0x16, Multicodec.Status.Permanent); /** Multihash: sha3-384, status = permanent, code = 0x15 */ - public static final Multihash SHA3_384 = Multihash.of("sha3-384", 0x15, Multihash.Status.Permanent); + public static final Multihash SHA3_384 = Multihash.of("sha3-384", 0x15, Multicodec.Status.Permanent); /** Multihash: sha3-512, status = permanent, code = 0x14 */ - public static final Multihash SHA3_512 = Multihash.of("sha3-512", 0x14, Multihash.Status.Permanent); + public static final Multihash SHA3_512 = Multihash.of("sha3-512", 0x14, Multicodec.Status.Permanent); /** Multihash: shake-128, status = draft, code = 0x18 */ - public static final Multihash SHAKE_128 = Multihash.of("shake-128", 0x18, Multihash.Status.Draft); + public static final Multihash SHAKE_128 = Multihash.of("shake-128", 0x18, Multicodec.Status.Draft); /** Multihash: shake-256, status = draft, code = 0x19 */ - public static final Multihash SHAKE_256 = Multihash.of("shake-256", 0x19, Multihash.Status.Draft); + public static final Multihash SHAKE_256 = Multihash.of("shake-256", 0x19, Multicodec.Status.Draft); /** Multihash: skein1024-1000, status = draft, code = 0xb3dd */ - public static final Multihash SKEIN1024_1000 = Multihash.of("skein1024-1000", 0xb3dd, Multihash.Status.Draft); + public static final Multihash SKEIN1024_1000 = Multihash.of("skein1024-1000", 0xb3dd, Multicodec.Status.Draft); /** Multihash: skein1024-1008, status = draft, code = 0xb3de */ - public static final Multihash SKEIN1024_1008 = Multihash.of("skein1024-1008", 0xb3de, Multihash.Status.Draft); + public static final Multihash SKEIN1024_1008 = Multihash.of("skein1024-1008", 0xb3de, Multicodec.Status.Draft); /** Multihash: skein1024-1016, status = draft, code = 0xb3df */ - public static final Multihash SKEIN1024_1016 = Multihash.of("skein1024-1016", 0xb3df, Multihash.Status.Draft); + public static final Multihash SKEIN1024_1016 = Multihash.of("skein1024-1016", 0xb3df, Multicodec.Status.Draft); /** Multihash: skein1024-1024, status = draft, code = 0xb3e0 */ - public static final Multihash SKEIN1024_1024 = Multihash.of("skein1024-1024", 0xb3e0, Multihash.Status.Draft); + public static final Multihash SKEIN1024_1024 = Multihash.of("skein1024-1024", 0xb3e0, Multicodec.Status.Draft); /** Multihash: skein1024-104, status = draft, code = 0xb36d */ - public static final Multihash SKEIN1024_104 = Multihash.of("skein1024-104", 0xb36d, Multihash.Status.Draft); + public static final Multihash SKEIN1024_104 = Multihash.of("skein1024-104", 0xb36d, Multicodec.Status.Draft); /** Multihash: skein1024-112, status = draft, code = 0xb36e */ - public static final Multihash SKEIN1024_112 = Multihash.of("skein1024-112", 0xb36e, Multihash.Status.Draft); + public static final Multihash SKEIN1024_112 = Multihash.of("skein1024-112", 0xb36e, Multicodec.Status.Draft); /** Multihash: skein1024-120, status = draft, code = 0xb36f */ - public static final Multihash SKEIN1024_120 = Multihash.of("skein1024-120", 0xb36f, Multihash.Status.Draft); + public static final Multihash SKEIN1024_120 = Multihash.of("skein1024-120", 0xb36f, Multicodec.Status.Draft); /** Multihash: skein1024-128, status = draft, code = 0xb370 */ - public static final Multihash SKEIN1024_128 = Multihash.of("skein1024-128", 0xb370, Multihash.Status.Draft); + public static final Multihash SKEIN1024_128 = Multihash.of("skein1024-128", 0xb370, Multicodec.Status.Draft); /** Multihash: skein1024-136, status = draft, code = 0xb371 */ - public static final Multihash SKEIN1024_136 = Multihash.of("skein1024-136", 0xb371, Multihash.Status.Draft); + public static final Multihash SKEIN1024_136 = Multihash.of("skein1024-136", 0xb371, Multicodec.Status.Draft); /** Multihash: skein1024-144, status = draft, code = 0xb372 */ - public static final Multihash SKEIN1024_144 = Multihash.of("skein1024-144", 0xb372, Multihash.Status.Draft); + public static final Multihash SKEIN1024_144 = Multihash.of("skein1024-144", 0xb372, Multicodec.Status.Draft); /** Multihash: skein1024-152, status = draft, code = 0xb373 */ - public static final Multihash SKEIN1024_152 = Multihash.of("skein1024-152", 0xb373, Multihash.Status.Draft); + public static final Multihash SKEIN1024_152 = Multihash.of("skein1024-152", 0xb373, Multicodec.Status.Draft); /** Multihash: skein1024-16, status = draft, code = 0xb362 */ - public static final Multihash SKEIN1024_16 = Multihash.of("skein1024-16", 0xb362, Multihash.Status.Draft); + public static final Multihash SKEIN1024_16 = Multihash.of("skein1024-16", 0xb362, Multicodec.Status.Draft); /** Multihash: skein1024-160, status = draft, code = 0xb374 */ - public static final Multihash SKEIN1024_160 = Multihash.of("skein1024-160", 0xb374, Multihash.Status.Draft); + public static final Multihash SKEIN1024_160 = Multihash.of("skein1024-160", 0xb374, Multicodec.Status.Draft); /** Multihash: skein1024-168, status = draft, code = 0xb375 */ - public static final Multihash SKEIN1024_168 = Multihash.of("skein1024-168", 0xb375, Multihash.Status.Draft); + public static final Multihash SKEIN1024_168 = Multihash.of("skein1024-168", 0xb375, Multicodec.Status.Draft); /** Multihash: skein1024-176, status = draft, code = 0xb376 */ - public static final Multihash SKEIN1024_176 = Multihash.of("skein1024-176", 0xb376, Multihash.Status.Draft); + public static final Multihash SKEIN1024_176 = Multihash.of("skein1024-176", 0xb376, Multicodec.Status.Draft); /** Multihash: skein1024-184, status = draft, code = 0xb377 */ - public static final Multihash SKEIN1024_184 = Multihash.of("skein1024-184", 0xb377, Multihash.Status.Draft); + public static final Multihash SKEIN1024_184 = Multihash.of("skein1024-184", 0xb377, Multicodec.Status.Draft); /** Multihash: skein1024-192, status = draft, code = 0xb378 */ - public static final Multihash SKEIN1024_192 = Multihash.of("skein1024-192", 0xb378, Multihash.Status.Draft); + public static final Multihash SKEIN1024_192 = Multihash.of("skein1024-192", 0xb378, Multicodec.Status.Draft); /** Multihash: skein1024-200, status = draft, code = 0xb379 */ - public static final Multihash SKEIN1024_200 = Multihash.of("skein1024-200", 0xb379, Multihash.Status.Draft); + public static final Multihash SKEIN1024_200 = Multihash.of("skein1024-200", 0xb379, Multicodec.Status.Draft); /** Multihash: skein1024-208, status = draft, code = 0xb37a */ - public static final Multihash SKEIN1024_208 = Multihash.of("skein1024-208", 0xb37a, Multihash.Status.Draft); + public static final Multihash SKEIN1024_208 = Multihash.of("skein1024-208", 0xb37a, Multicodec.Status.Draft); /** Multihash: skein1024-216, status = draft, code = 0xb37b */ - public static final Multihash SKEIN1024_216 = Multihash.of("skein1024-216", 0xb37b, Multihash.Status.Draft); + public static final Multihash SKEIN1024_216 = Multihash.of("skein1024-216", 0xb37b, Multicodec.Status.Draft); /** Multihash: skein1024-224, status = draft, code = 0xb37c */ - public static final Multihash SKEIN1024_224 = Multihash.of("skein1024-224", 0xb37c, Multihash.Status.Draft); + public static final Multihash SKEIN1024_224 = Multihash.of("skein1024-224", 0xb37c, Multicodec.Status.Draft); /** Multihash: skein1024-232, status = draft, code = 0xb37d */ - public static final Multihash SKEIN1024_232 = Multihash.of("skein1024-232", 0xb37d, Multihash.Status.Draft); + public static final Multihash SKEIN1024_232 = Multihash.of("skein1024-232", 0xb37d, Multicodec.Status.Draft); /** Multihash: skein1024-24, status = draft, code = 0xb363 */ - public static final Multihash SKEIN1024_24 = Multihash.of("skein1024-24", 0xb363, Multihash.Status.Draft); + public static final Multihash SKEIN1024_24 = Multihash.of("skein1024-24", 0xb363, Multicodec.Status.Draft); /** Multihash: skein1024-240, status = draft, code = 0xb37e */ - public static final Multihash SKEIN1024_240 = Multihash.of("skein1024-240", 0xb37e, Multihash.Status.Draft); + public static final Multihash SKEIN1024_240 = Multihash.of("skein1024-240", 0xb37e, Multicodec.Status.Draft); /** Multihash: skein1024-248, status = draft, code = 0xb37f */ - public static final Multihash SKEIN1024_248 = Multihash.of("skein1024-248", 0xb37f, Multihash.Status.Draft); + public static final Multihash SKEIN1024_248 = Multihash.of("skein1024-248", 0xb37f, Multicodec.Status.Draft); /** Multihash: skein1024-256, status = draft, code = 0xb380 */ - public static final Multihash SKEIN1024_256 = Multihash.of("skein1024-256", 0xb380, Multihash.Status.Draft); + public static final Multihash SKEIN1024_256 = Multihash.of("skein1024-256", 0xb380, Multicodec.Status.Draft); /** Multihash: skein1024-264, status = draft, code = 0xb381 */ - public static final Multihash SKEIN1024_264 = Multihash.of("skein1024-264", 0xb381, Multihash.Status.Draft); + public static final Multihash SKEIN1024_264 = Multihash.of("skein1024-264", 0xb381, Multicodec.Status.Draft); /** Multihash: skein1024-272, status = draft, code = 0xb382 */ - public static final Multihash SKEIN1024_272 = Multihash.of("skein1024-272", 0xb382, Multihash.Status.Draft); + public static final Multihash SKEIN1024_272 = Multihash.of("skein1024-272", 0xb382, Multicodec.Status.Draft); /** Multihash: skein1024-280, status = draft, code = 0xb383 */ - public static final Multihash SKEIN1024_280 = Multihash.of("skein1024-280", 0xb383, Multihash.Status.Draft); + public static final Multihash SKEIN1024_280 = Multihash.of("skein1024-280", 0xb383, Multicodec.Status.Draft); /** Multihash: skein1024-288, status = draft, code = 0xb384 */ - public static final Multihash SKEIN1024_288 = Multihash.of("skein1024-288", 0xb384, Multihash.Status.Draft); + public static final Multihash SKEIN1024_288 = Multihash.of("skein1024-288", 0xb384, Multicodec.Status.Draft); /** Multihash: skein1024-296, status = draft, code = 0xb385 */ - public static final Multihash SKEIN1024_296 = Multihash.of("skein1024-296", 0xb385, Multihash.Status.Draft); + public static final Multihash SKEIN1024_296 = Multihash.of("skein1024-296", 0xb385, Multicodec.Status.Draft); /** Multihash: skein1024-304, status = draft, code = 0xb386 */ - public static final Multihash SKEIN1024_304 = Multihash.of("skein1024-304", 0xb386, Multihash.Status.Draft); + public static final Multihash SKEIN1024_304 = Multihash.of("skein1024-304", 0xb386, Multicodec.Status.Draft); /** Multihash: skein1024-312, status = draft, code = 0xb387 */ - public static final Multihash SKEIN1024_312 = Multihash.of("skein1024-312", 0xb387, Multihash.Status.Draft); + public static final Multihash SKEIN1024_312 = Multihash.of("skein1024-312", 0xb387, Multicodec.Status.Draft); /** Multihash: skein1024-32, status = draft, code = 0xb364 */ - public static final Multihash SKEIN1024_32 = Multihash.of("skein1024-32", 0xb364, Multihash.Status.Draft); + public static final Multihash SKEIN1024_32 = Multihash.of("skein1024-32", 0xb364, Multicodec.Status.Draft); /** Multihash: skein1024-320, status = draft, code = 0xb388 */ - public static final Multihash SKEIN1024_320 = Multihash.of("skein1024-320", 0xb388, Multihash.Status.Draft); + public static final Multihash SKEIN1024_320 = Multihash.of("skein1024-320", 0xb388, Multicodec.Status.Draft); /** Multihash: skein1024-328, status = draft, code = 0xb389 */ - public static final Multihash SKEIN1024_328 = Multihash.of("skein1024-328", 0xb389, Multihash.Status.Draft); + public static final Multihash SKEIN1024_328 = Multihash.of("skein1024-328", 0xb389, Multicodec.Status.Draft); /** Multihash: skein1024-336, status = draft, code = 0xb38a */ - public static final Multihash SKEIN1024_336 = Multihash.of("skein1024-336", 0xb38a, Multihash.Status.Draft); + public static final Multihash SKEIN1024_336 = Multihash.of("skein1024-336", 0xb38a, Multicodec.Status.Draft); /** Multihash: skein1024-344, status = draft, code = 0xb38b */ - public static final Multihash SKEIN1024_344 = Multihash.of("skein1024-344", 0xb38b, Multihash.Status.Draft); + public static final Multihash SKEIN1024_344 = Multihash.of("skein1024-344", 0xb38b, Multicodec.Status.Draft); /** Multihash: skein1024-352, status = draft, code = 0xb38c */ - public static final Multihash SKEIN1024_352 = Multihash.of("skein1024-352", 0xb38c, Multihash.Status.Draft); + public static final Multihash SKEIN1024_352 = Multihash.of("skein1024-352", 0xb38c, Multicodec.Status.Draft); /** Multihash: skein1024-360, status = draft, code = 0xb38d */ - public static final Multihash SKEIN1024_360 = Multihash.of("skein1024-360", 0xb38d, Multihash.Status.Draft); + public static final Multihash SKEIN1024_360 = Multihash.of("skein1024-360", 0xb38d, Multicodec.Status.Draft); /** Multihash: skein1024-368, status = draft, code = 0xb38e */ - public static final Multihash SKEIN1024_368 = Multihash.of("skein1024-368", 0xb38e, Multihash.Status.Draft); + public static final Multihash SKEIN1024_368 = Multihash.of("skein1024-368", 0xb38e, Multicodec.Status.Draft); /** Multihash: skein1024-376, status = draft, code = 0xb38f */ - public static final Multihash SKEIN1024_376 = Multihash.of("skein1024-376", 0xb38f, Multihash.Status.Draft); + public static final Multihash SKEIN1024_376 = Multihash.of("skein1024-376", 0xb38f, Multicodec.Status.Draft); /** Multihash: skein1024-384, status = draft, code = 0xb390 */ - public static final Multihash SKEIN1024_384 = Multihash.of("skein1024-384", 0xb390, Multihash.Status.Draft); + public static final Multihash SKEIN1024_384 = Multihash.of("skein1024-384", 0xb390, Multicodec.Status.Draft); /** Multihash: skein1024-392, status = draft, code = 0xb391 */ - public static final Multihash SKEIN1024_392 = Multihash.of("skein1024-392", 0xb391, Multihash.Status.Draft); + public static final Multihash SKEIN1024_392 = Multihash.of("skein1024-392", 0xb391, Multicodec.Status.Draft); /** Multihash: skein1024-40, status = draft, code = 0xb365 */ - public static final Multihash SKEIN1024_40 = Multihash.of("skein1024-40", 0xb365, Multihash.Status.Draft); + public static final Multihash SKEIN1024_40 = Multihash.of("skein1024-40", 0xb365, Multicodec.Status.Draft); /** Multihash: skein1024-400, status = draft, code = 0xb392 */ - public static final Multihash SKEIN1024_400 = Multihash.of("skein1024-400", 0xb392, Multihash.Status.Draft); + public static final Multihash SKEIN1024_400 = Multihash.of("skein1024-400", 0xb392, Multicodec.Status.Draft); /** Multihash: skein1024-408, status = draft, code = 0xb393 */ - public static final Multihash SKEIN1024_408 = Multihash.of("skein1024-408", 0xb393, Multihash.Status.Draft); + public static final Multihash SKEIN1024_408 = Multihash.of("skein1024-408", 0xb393, Multicodec.Status.Draft); /** Multihash: skein1024-416, status = draft, code = 0xb394 */ - public static final Multihash SKEIN1024_416 = Multihash.of("skein1024-416", 0xb394, Multihash.Status.Draft); + public static final Multihash SKEIN1024_416 = Multihash.of("skein1024-416", 0xb394, Multicodec.Status.Draft); /** Multihash: skein1024-424, status = draft, code = 0xb395 */ - public static final Multihash SKEIN1024_424 = Multihash.of("skein1024-424", 0xb395, Multihash.Status.Draft); + public static final Multihash SKEIN1024_424 = Multihash.of("skein1024-424", 0xb395, Multicodec.Status.Draft); /** Multihash: skein1024-432, status = draft, code = 0xb396 */ - public static final Multihash SKEIN1024_432 = Multihash.of("skein1024-432", 0xb396, Multihash.Status.Draft); + public static final Multihash SKEIN1024_432 = Multihash.of("skein1024-432", 0xb396, Multicodec.Status.Draft); /** Multihash: skein1024-440, status = draft, code = 0xb397 */ - public static final Multihash SKEIN1024_440 = Multihash.of("skein1024-440", 0xb397, Multihash.Status.Draft); + public static final Multihash SKEIN1024_440 = Multihash.of("skein1024-440", 0xb397, Multicodec.Status.Draft); /** Multihash: skein1024-448, status = draft, code = 0xb398 */ - public static final Multihash SKEIN1024_448 = Multihash.of("skein1024-448", 0xb398, Multihash.Status.Draft); + public static final Multihash SKEIN1024_448 = Multihash.of("skein1024-448", 0xb398, Multicodec.Status.Draft); /** Multihash: skein1024-456, status = draft, code = 0xb399 */ - public static final Multihash SKEIN1024_456 = Multihash.of("skein1024-456", 0xb399, Multihash.Status.Draft); + public static final Multihash SKEIN1024_456 = Multihash.of("skein1024-456", 0xb399, Multicodec.Status.Draft); /** Multihash: skein1024-464, status = draft, code = 0xb39a */ - public static final Multihash SKEIN1024_464 = Multihash.of("skein1024-464", 0xb39a, Multihash.Status.Draft); + public static final Multihash SKEIN1024_464 = Multihash.of("skein1024-464", 0xb39a, Multicodec.Status.Draft); /** Multihash: skein1024-472, status = draft, code = 0xb39b */ - public static final Multihash SKEIN1024_472 = Multihash.of("skein1024-472", 0xb39b, Multihash.Status.Draft); + public static final Multihash SKEIN1024_472 = Multihash.of("skein1024-472", 0xb39b, Multicodec.Status.Draft); /** Multihash: skein1024-48, status = draft, code = 0xb366 */ - public static final Multihash SKEIN1024_48 = Multihash.of("skein1024-48", 0xb366, Multihash.Status.Draft); + public static final Multihash SKEIN1024_48 = Multihash.of("skein1024-48", 0xb366, Multicodec.Status.Draft); /** Multihash: skein1024-480, status = draft, code = 0xb39c */ - public static final Multihash SKEIN1024_480 = Multihash.of("skein1024-480", 0xb39c, Multihash.Status.Draft); + public static final Multihash SKEIN1024_480 = Multihash.of("skein1024-480", 0xb39c, Multicodec.Status.Draft); /** Multihash: skein1024-488, status = draft, code = 0xb39d */ - public static final Multihash SKEIN1024_488 = Multihash.of("skein1024-488", 0xb39d, Multihash.Status.Draft); + public static final Multihash SKEIN1024_488 = Multihash.of("skein1024-488", 0xb39d, Multicodec.Status.Draft); /** Multihash: skein1024-496, status = draft, code = 0xb39e */ - public static final Multihash SKEIN1024_496 = Multihash.of("skein1024-496", 0xb39e, Multihash.Status.Draft); + public static final Multihash SKEIN1024_496 = Multihash.of("skein1024-496", 0xb39e, Multicodec.Status.Draft); /** Multihash: skein1024-504, status = draft, code = 0xb39f */ - public static final Multihash SKEIN1024_504 = Multihash.of("skein1024-504", 0xb39f, Multihash.Status.Draft); + public static final Multihash SKEIN1024_504 = Multihash.of("skein1024-504", 0xb39f, Multicodec.Status.Draft); /** Multihash: skein1024-512, status = draft, code = 0xb3a0 */ - public static final Multihash SKEIN1024_512 = Multihash.of("skein1024-512", 0xb3a0, Multihash.Status.Draft); + public static final Multihash SKEIN1024_512 = Multihash.of("skein1024-512", 0xb3a0, Multicodec.Status.Draft); /** Multihash: skein1024-520, status = draft, code = 0xb3a1 */ - public static final Multihash SKEIN1024_520 = Multihash.of("skein1024-520", 0xb3a1, Multihash.Status.Draft); + public static final Multihash SKEIN1024_520 = Multihash.of("skein1024-520", 0xb3a1, Multicodec.Status.Draft); /** Multihash: skein1024-528, status = draft, code = 0xb3a2 */ - public static final Multihash SKEIN1024_528 = Multihash.of("skein1024-528", 0xb3a2, Multihash.Status.Draft); + public static final Multihash SKEIN1024_528 = Multihash.of("skein1024-528", 0xb3a2, Multicodec.Status.Draft); /** Multihash: skein1024-536, status = draft, code = 0xb3a3 */ - public static final Multihash SKEIN1024_536 = Multihash.of("skein1024-536", 0xb3a3, Multihash.Status.Draft); + public static final Multihash SKEIN1024_536 = Multihash.of("skein1024-536", 0xb3a3, Multicodec.Status.Draft); /** Multihash: skein1024-544, status = draft, code = 0xb3a4 */ - public static final Multihash SKEIN1024_544 = Multihash.of("skein1024-544", 0xb3a4, Multihash.Status.Draft); + public static final Multihash SKEIN1024_544 = Multihash.of("skein1024-544", 0xb3a4, Multicodec.Status.Draft); /** Multihash: skein1024-552, status = draft, code = 0xb3a5 */ - public static final Multihash SKEIN1024_552 = Multihash.of("skein1024-552", 0xb3a5, Multihash.Status.Draft); + public static final Multihash SKEIN1024_552 = Multihash.of("skein1024-552", 0xb3a5, Multicodec.Status.Draft); /** Multihash: skein1024-56, status = draft, code = 0xb367 */ - public static final Multihash SKEIN1024_56 = Multihash.of("skein1024-56", 0xb367, Multihash.Status.Draft); + public static final Multihash SKEIN1024_56 = Multihash.of("skein1024-56", 0xb367, Multicodec.Status.Draft); /** Multihash: skein1024-560, status = draft, code = 0xb3a6 */ - public static final Multihash SKEIN1024_560 = Multihash.of("skein1024-560", 0xb3a6, Multihash.Status.Draft); + public static final Multihash SKEIN1024_560 = Multihash.of("skein1024-560", 0xb3a6, Multicodec.Status.Draft); /** Multihash: skein1024-568, status = draft, code = 0xb3a7 */ - public static final Multihash SKEIN1024_568 = Multihash.of("skein1024-568", 0xb3a7, Multihash.Status.Draft); + public static final Multihash SKEIN1024_568 = Multihash.of("skein1024-568", 0xb3a7, Multicodec.Status.Draft); /** Multihash: skein1024-576, status = draft, code = 0xb3a8 */ - public static final Multihash SKEIN1024_576 = Multihash.of("skein1024-576", 0xb3a8, Multihash.Status.Draft); + public static final Multihash SKEIN1024_576 = Multihash.of("skein1024-576", 0xb3a8, Multicodec.Status.Draft); /** Multihash: skein1024-584, status = draft, code = 0xb3a9 */ - public static final Multihash SKEIN1024_584 = Multihash.of("skein1024-584", 0xb3a9, Multihash.Status.Draft); + public static final Multihash SKEIN1024_584 = Multihash.of("skein1024-584", 0xb3a9, Multicodec.Status.Draft); /** Multihash: skein1024-592, status = draft, code = 0xb3aa */ - public static final Multihash SKEIN1024_592 = Multihash.of("skein1024-592", 0xb3aa, Multihash.Status.Draft); + public static final Multihash SKEIN1024_592 = Multihash.of("skein1024-592", 0xb3aa, Multicodec.Status.Draft); /** Multihash: skein1024-600, status = draft, code = 0xb3ab */ - public static final Multihash SKEIN1024_600 = Multihash.of("skein1024-600", 0xb3ab, Multihash.Status.Draft); + public static final Multihash SKEIN1024_600 = Multihash.of("skein1024-600", 0xb3ab, Multicodec.Status.Draft); /** Multihash: skein1024-608, status = draft, code = 0xb3ac */ - public static final Multihash SKEIN1024_608 = Multihash.of("skein1024-608", 0xb3ac, Multihash.Status.Draft); + public static final Multihash SKEIN1024_608 = Multihash.of("skein1024-608", 0xb3ac, Multicodec.Status.Draft); /** Multihash: skein1024-616, status = draft, code = 0xb3ad */ - public static final Multihash SKEIN1024_616 = Multihash.of("skein1024-616", 0xb3ad, Multihash.Status.Draft); + public static final Multihash SKEIN1024_616 = Multihash.of("skein1024-616", 0xb3ad, Multicodec.Status.Draft); /** Multihash: skein1024-624, status = draft, code = 0xb3ae */ - public static final Multihash SKEIN1024_624 = Multihash.of("skein1024-624", 0xb3ae, Multihash.Status.Draft); + public static final Multihash SKEIN1024_624 = Multihash.of("skein1024-624", 0xb3ae, Multicodec.Status.Draft); /** Multihash: skein1024-632, status = draft, code = 0xb3af */ - public static final Multihash SKEIN1024_632 = Multihash.of("skein1024-632", 0xb3af, Multihash.Status.Draft); + public static final Multihash SKEIN1024_632 = Multihash.of("skein1024-632", 0xb3af, Multicodec.Status.Draft); /** Multihash: skein1024-64, status = draft, code = 0xb368 */ - public static final Multihash SKEIN1024_64 = Multihash.of("skein1024-64", 0xb368, Multihash.Status.Draft); + public static final Multihash SKEIN1024_64 = Multihash.of("skein1024-64", 0xb368, Multicodec.Status.Draft); /** Multihash: skein1024-640, status = draft, code = 0xb3b0 */ - public static final Multihash SKEIN1024_640 = Multihash.of("skein1024-640", 0xb3b0, Multihash.Status.Draft); + public static final Multihash SKEIN1024_640 = Multihash.of("skein1024-640", 0xb3b0, Multicodec.Status.Draft); /** Multihash: skein1024-648, status = draft, code = 0xb3b1 */ - public static final Multihash SKEIN1024_648 = Multihash.of("skein1024-648", 0xb3b1, Multihash.Status.Draft); + public static final Multihash SKEIN1024_648 = Multihash.of("skein1024-648", 0xb3b1, Multicodec.Status.Draft); /** Multihash: skein1024-656, status = draft, code = 0xb3b2 */ - public static final Multihash SKEIN1024_656 = Multihash.of("skein1024-656", 0xb3b2, Multihash.Status.Draft); + public static final Multihash SKEIN1024_656 = Multihash.of("skein1024-656", 0xb3b2, Multicodec.Status.Draft); /** Multihash: skein1024-664, status = draft, code = 0xb3b3 */ - public static final Multihash SKEIN1024_664 = Multihash.of("skein1024-664", 0xb3b3, Multihash.Status.Draft); + public static final Multihash SKEIN1024_664 = Multihash.of("skein1024-664", 0xb3b3, Multicodec.Status.Draft); /** Multihash: skein1024-672, status = draft, code = 0xb3b4 */ - public static final Multihash SKEIN1024_672 = Multihash.of("skein1024-672", 0xb3b4, Multihash.Status.Draft); + public static final Multihash SKEIN1024_672 = Multihash.of("skein1024-672", 0xb3b4, Multicodec.Status.Draft); /** Multihash: skein1024-680, status = draft, code = 0xb3b5 */ - public static final Multihash SKEIN1024_680 = Multihash.of("skein1024-680", 0xb3b5, Multihash.Status.Draft); + public static final Multihash SKEIN1024_680 = Multihash.of("skein1024-680", 0xb3b5, Multicodec.Status.Draft); /** Multihash: skein1024-688, status = draft, code = 0xb3b6 */ - public static final Multihash SKEIN1024_688 = Multihash.of("skein1024-688", 0xb3b6, Multihash.Status.Draft); + public static final Multihash SKEIN1024_688 = Multihash.of("skein1024-688", 0xb3b6, Multicodec.Status.Draft); /** Multihash: skein1024-696, status = draft, code = 0xb3b7 */ - public static final Multihash SKEIN1024_696 = Multihash.of("skein1024-696", 0xb3b7, Multihash.Status.Draft); + public static final Multihash SKEIN1024_696 = Multihash.of("skein1024-696", 0xb3b7, Multicodec.Status.Draft); /** Multihash: skein1024-704, status = draft, code = 0xb3b8 */ - public static final Multihash SKEIN1024_704 = Multihash.of("skein1024-704", 0xb3b8, Multihash.Status.Draft); + public static final Multihash SKEIN1024_704 = Multihash.of("skein1024-704", 0xb3b8, Multicodec.Status.Draft); /** Multihash: skein1024-712, status = draft, code = 0xb3b9 */ - public static final Multihash SKEIN1024_712 = Multihash.of("skein1024-712", 0xb3b9, Multihash.Status.Draft); + public static final Multihash SKEIN1024_712 = Multihash.of("skein1024-712", 0xb3b9, Multicodec.Status.Draft); /** Multihash: skein1024-72, status = draft, code = 0xb369 */ - public static final Multihash SKEIN1024_72 = Multihash.of("skein1024-72", 0xb369, Multihash.Status.Draft); + public static final Multihash SKEIN1024_72 = Multihash.of("skein1024-72", 0xb369, Multicodec.Status.Draft); /** Multihash: skein1024-720, status = draft, code = 0xb3ba */ - public static final Multihash SKEIN1024_720 = Multihash.of("skein1024-720", 0xb3ba, Multihash.Status.Draft); + public static final Multihash SKEIN1024_720 = Multihash.of("skein1024-720", 0xb3ba, Multicodec.Status.Draft); /** Multihash: skein1024-728, status = draft, code = 0xb3bb */ - public static final Multihash SKEIN1024_728 = Multihash.of("skein1024-728", 0xb3bb, Multihash.Status.Draft); + public static final Multihash SKEIN1024_728 = Multihash.of("skein1024-728", 0xb3bb, Multicodec.Status.Draft); /** Multihash: skein1024-736, status = draft, code = 0xb3bc */ - public static final Multihash SKEIN1024_736 = Multihash.of("skein1024-736", 0xb3bc, Multihash.Status.Draft); + public static final Multihash SKEIN1024_736 = Multihash.of("skein1024-736", 0xb3bc, Multicodec.Status.Draft); /** Multihash: skein1024-744, status = draft, code = 0xb3bd */ - public static final Multihash SKEIN1024_744 = Multihash.of("skein1024-744", 0xb3bd, Multihash.Status.Draft); + public static final Multihash SKEIN1024_744 = Multihash.of("skein1024-744", 0xb3bd, Multicodec.Status.Draft); /** Multihash: skein1024-752, status = draft, code = 0xb3be */ - public static final Multihash SKEIN1024_752 = Multihash.of("skein1024-752", 0xb3be, Multihash.Status.Draft); + public static final Multihash SKEIN1024_752 = Multihash.of("skein1024-752", 0xb3be, Multicodec.Status.Draft); /** Multihash: skein1024-760, status = draft, code = 0xb3bf */ - public static final Multihash SKEIN1024_760 = Multihash.of("skein1024-760", 0xb3bf, Multihash.Status.Draft); + public static final Multihash SKEIN1024_760 = Multihash.of("skein1024-760", 0xb3bf, Multicodec.Status.Draft); /** Multihash: skein1024-768, status = draft, code = 0xb3c0 */ - public static final Multihash SKEIN1024_768 = Multihash.of("skein1024-768", 0xb3c0, Multihash.Status.Draft); + public static final Multihash SKEIN1024_768 = Multihash.of("skein1024-768", 0xb3c0, Multicodec.Status.Draft); /** Multihash: skein1024-776, status = draft, code = 0xb3c1 */ - public static final Multihash SKEIN1024_776 = Multihash.of("skein1024-776", 0xb3c1, Multihash.Status.Draft); + public static final Multihash SKEIN1024_776 = Multihash.of("skein1024-776", 0xb3c1, Multicodec.Status.Draft); /** Multihash: skein1024-784, status = draft, code = 0xb3c2 */ - public static final Multihash SKEIN1024_784 = Multihash.of("skein1024-784", 0xb3c2, Multihash.Status.Draft); + public static final Multihash SKEIN1024_784 = Multihash.of("skein1024-784", 0xb3c2, Multicodec.Status.Draft); /** Multihash: skein1024-792, status = draft, code = 0xb3c3 */ - public static final Multihash SKEIN1024_792 = Multihash.of("skein1024-792", 0xb3c3, Multihash.Status.Draft); + public static final Multihash SKEIN1024_792 = Multihash.of("skein1024-792", 0xb3c3, Multicodec.Status.Draft); /** Multihash: skein1024-8, Skein1024 consists of 128 output lengths that give different hashes, status = draft, code = 0xb361 */ - public static final Multihash SKEIN1024_8 = Multihash.of("skein1024-8", 0xb361, Multihash.Status.Draft); + public static final Multihash SKEIN1024_8 = Multihash.of("skein1024-8", 0xb361, Multicodec.Status.Draft); /** Multihash: skein1024-80, status = draft, code = 0xb36a */ - public static final Multihash SKEIN1024_80 = Multihash.of("skein1024-80", 0xb36a, Multihash.Status.Draft); + public static final Multihash SKEIN1024_80 = Multihash.of("skein1024-80", 0xb36a, Multicodec.Status.Draft); /** Multihash: skein1024-800, status = draft, code = 0xb3c4 */ - public static final Multihash SKEIN1024_800 = Multihash.of("skein1024-800", 0xb3c4, Multihash.Status.Draft); + public static final Multihash SKEIN1024_800 = Multihash.of("skein1024-800", 0xb3c4, Multicodec.Status.Draft); /** Multihash: skein1024-808, status = draft, code = 0xb3c5 */ - public static final Multihash SKEIN1024_808 = Multihash.of("skein1024-808", 0xb3c5, Multihash.Status.Draft); + public static final Multihash SKEIN1024_808 = Multihash.of("skein1024-808", 0xb3c5, Multicodec.Status.Draft); /** Multihash: skein1024-816, status = draft, code = 0xb3c6 */ - public static final Multihash SKEIN1024_816 = Multihash.of("skein1024-816", 0xb3c6, Multihash.Status.Draft); + public static final Multihash SKEIN1024_816 = Multihash.of("skein1024-816", 0xb3c6, Multicodec.Status.Draft); /** Multihash: skein1024-824, status = draft, code = 0xb3c7 */ - public static final Multihash SKEIN1024_824 = Multihash.of("skein1024-824", 0xb3c7, Multihash.Status.Draft); + public static final Multihash SKEIN1024_824 = Multihash.of("skein1024-824", 0xb3c7, Multicodec.Status.Draft); /** Multihash: skein1024-832, status = draft, code = 0xb3c8 */ - public static final Multihash SKEIN1024_832 = Multihash.of("skein1024-832", 0xb3c8, Multihash.Status.Draft); + public static final Multihash SKEIN1024_832 = Multihash.of("skein1024-832", 0xb3c8, Multicodec.Status.Draft); /** Multihash: skein1024-840, status = draft, code = 0xb3c9 */ - public static final Multihash SKEIN1024_840 = Multihash.of("skein1024-840", 0xb3c9, Multihash.Status.Draft); + public static final Multihash SKEIN1024_840 = Multihash.of("skein1024-840", 0xb3c9, Multicodec.Status.Draft); /** Multihash: skein1024-848, status = draft, code = 0xb3ca */ - public static final Multihash SKEIN1024_848 = Multihash.of("skein1024-848", 0xb3ca, Multihash.Status.Draft); + public static final Multihash SKEIN1024_848 = Multihash.of("skein1024-848", 0xb3ca, Multicodec.Status.Draft); /** Multihash: skein1024-856, status = draft, code = 0xb3cb */ - public static final Multihash SKEIN1024_856 = Multihash.of("skein1024-856", 0xb3cb, Multihash.Status.Draft); + public static final Multihash SKEIN1024_856 = Multihash.of("skein1024-856", 0xb3cb, Multicodec.Status.Draft); /** Multihash: skein1024-864, status = draft, code = 0xb3cc */ - public static final Multihash SKEIN1024_864 = Multihash.of("skein1024-864", 0xb3cc, Multihash.Status.Draft); + public static final Multihash SKEIN1024_864 = Multihash.of("skein1024-864", 0xb3cc, Multicodec.Status.Draft); /** Multihash: skein1024-872, status = draft, code = 0xb3cd */ - public static final Multihash SKEIN1024_872 = Multihash.of("skein1024-872", 0xb3cd, Multihash.Status.Draft); + public static final Multihash SKEIN1024_872 = Multihash.of("skein1024-872", 0xb3cd, Multicodec.Status.Draft); /** Multihash: skein1024-88, status = draft, code = 0xb36b */ - public static final Multihash SKEIN1024_88 = Multihash.of("skein1024-88", 0xb36b, Multihash.Status.Draft); + public static final Multihash SKEIN1024_88 = Multihash.of("skein1024-88", 0xb36b, Multicodec.Status.Draft); /** Multihash: skein1024-880, status = draft, code = 0xb3ce */ - public static final Multihash SKEIN1024_880 = Multihash.of("skein1024-880", 0xb3ce, Multihash.Status.Draft); + public static final Multihash SKEIN1024_880 = Multihash.of("skein1024-880", 0xb3ce, Multicodec.Status.Draft); /** Multihash: skein1024-888, status = draft, code = 0xb3cf */ - public static final Multihash SKEIN1024_888 = Multihash.of("skein1024-888", 0xb3cf, Multihash.Status.Draft); + public static final Multihash SKEIN1024_888 = Multihash.of("skein1024-888", 0xb3cf, Multicodec.Status.Draft); /** Multihash: skein1024-896, status = draft, code = 0xb3d0 */ - public static final Multihash SKEIN1024_896 = Multihash.of("skein1024-896", 0xb3d0, Multihash.Status.Draft); + public static final Multihash SKEIN1024_896 = Multihash.of("skein1024-896", 0xb3d0, Multicodec.Status.Draft); /** Multihash: skein1024-904, status = draft, code = 0xb3d1 */ - public static final Multihash SKEIN1024_904 = Multihash.of("skein1024-904", 0xb3d1, Multihash.Status.Draft); + public static final Multihash SKEIN1024_904 = Multihash.of("skein1024-904", 0xb3d1, Multicodec.Status.Draft); /** Multihash: skein1024-912, status = draft, code = 0xb3d2 */ - public static final Multihash SKEIN1024_912 = Multihash.of("skein1024-912", 0xb3d2, Multihash.Status.Draft); + public static final Multihash SKEIN1024_912 = Multihash.of("skein1024-912", 0xb3d2, Multicodec.Status.Draft); /** Multihash: skein1024-920, status = draft, code = 0xb3d3 */ - public static final Multihash SKEIN1024_920 = Multihash.of("skein1024-920", 0xb3d3, Multihash.Status.Draft); + public static final Multihash SKEIN1024_920 = Multihash.of("skein1024-920", 0xb3d3, Multicodec.Status.Draft); /** Multihash: skein1024-928, status = draft, code = 0xb3d4 */ - public static final Multihash SKEIN1024_928 = Multihash.of("skein1024-928", 0xb3d4, Multihash.Status.Draft); + public static final Multihash SKEIN1024_928 = Multihash.of("skein1024-928", 0xb3d4, Multicodec.Status.Draft); /** Multihash: skein1024-936, status = draft, code = 0xb3d5 */ - public static final Multihash SKEIN1024_936 = Multihash.of("skein1024-936", 0xb3d5, Multihash.Status.Draft); + public static final Multihash SKEIN1024_936 = Multihash.of("skein1024-936", 0xb3d5, Multicodec.Status.Draft); /** Multihash: skein1024-944, status = draft, code = 0xb3d6 */ - public static final Multihash SKEIN1024_944 = Multihash.of("skein1024-944", 0xb3d6, Multihash.Status.Draft); + public static final Multihash SKEIN1024_944 = Multihash.of("skein1024-944", 0xb3d6, Multicodec.Status.Draft); /** Multihash: skein1024-952, status = draft, code = 0xb3d7 */ - public static final Multihash SKEIN1024_952 = Multihash.of("skein1024-952", 0xb3d7, Multihash.Status.Draft); + public static final Multihash SKEIN1024_952 = Multihash.of("skein1024-952", 0xb3d7, Multicodec.Status.Draft); /** Multihash: skein1024-96, status = draft, code = 0xb36c */ - public static final Multihash SKEIN1024_96 = Multihash.of("skein1024-96", 0xb36c, Multihash.Status.Draft); + public static final Multihash SKEIN1024_96 = Multihash.of("skein1024-96", 0xb36c, Multicodec.Status.Draft); /** Multihash: skein1024-960, status = draft, code = 0xb3d8 */ - public static final Multihash SKEIN1024_960 = Multihash.of("skein1024-960", 0xb3d8, Multihash.Status.Draft); + public static final Multihash SKEIN1024_960 = Multihash.of("skein1024-960", 0xb3d8, Multicodec.Status.Draft); /** Multihash: skein1024-968, status = draft, code = 0xb3d9 */ - public static final Multihash SKEIN1024_968 = Multihash.of("skein1024-968", 0xb3d9, Multihash.Status.Draft); + public static final Multihash SKEIN1024_968 = Multihash.of("skein1024-968", 0xb3d9, Multicodec.Status.Draft); /** Multihash: skein1024-976, status = draft, code = 0xb3da */ - public static final Multihash SKEIN1024_976 = Multihash.of("skein1024-976", 0xb3da, Multihash.Status.Draft); + public static final Multihash SKEIN1024_976 = Multihash.of("skein1024-976", 0xb3da, Multicodec.Status.Draft); /** Multihash: skein1024-984, status = draft, code = 0xb3db */ - public static final Multihash SKEIN1024_984 = Multihash.of("skein1024-984", 0xb3db, Multihash.Status.Draft); + public static final Multihash SKEIN1024_984 = Multihash.of("skein1024-984", 0xb3db, Multicodec.Status.Draft); /** Multihash: skein1024-992, status = draft, code = 0xb3dc */ - public static final Multihash SKEIN1024_992 = Multihash.of("skein1024-992", 0xb3dc, Multihash.Status.Draft); + public static final Multihash SKEIN1024_992 = Multihash.of("skein1024-992", 0xb3dc, Multicodec.Status.Draft); /** Multihash: skein256-104, status = draft, code = 0xb30d */ - public static final Multihash SKEIN256_104 = Multihash.of("skein256-104", 0xb30d, Multihash.Status.Draft); + public static final Multihash SKEIN256_104 = Multihash.of("skein256-104", 0xb30d, Multicodec.Status.Draft); /** Multihash: skein256-112, status = draft, code = 0xb30e */ - public static final Multihash SKEIN256_112 = Multihash.of("skein256-112", 0xb30e, Multihash.Status.Draft); + public static final Multihash SKEIN256_112 = Multihash.of("skein256-112", 0xb30e, Multicodec.Status.Draft); /** Multihash: skein256-120, status = draft, code = 0xb30f */ - public static final Multihash SKEIN256_120 = Multihash.of("skein256-120", 0xb30f, Multihash.Status.Draft); + public static final Multihash SKEIN256_120 = Multihash.of("skein256-120", 0xb30f, Multicodec.Status.Draft); /** Multihash: skein256-128, status = draft, code = 0xb310 */ - public static final Multihash SKEIN256_128 = Multihash.of("skein256-128", 0xb310, Multihash.Status.Draft); + public static final Multihash SKEIN256_128 = Multihash.of("skein256-128", 0xb310, Multicodec.Status.Draft); /** Multihash: skein256-136, status = draft, code = 0xb311 */ - public static final Multihash SKEIN256_136 = Multihash.of("skein256-136", 0xb311, Multihash.Status.Draft); + public static final Multihash SKEIN256_136 = Multihash.of("skein256-136", 0xb311, Multicodec.Status.Draft); /** Multihash: skein256-144, status = draft, code = 0xb312 */ - public static final Multihash SKEIN256_144 = Multihash.of("skein256-144", 0xb312, Multihash.Status.Draft); + public static final Multihash SKEIN256_144 = Multihash.of("skein256-144", 0xb312, Multicodec.Status.Draft); /** Multihash: skein256-152, status = draft, code = 0xb313 */ - public static final Multihash SKEIN256_152 = Multihash.of("skein256-152", 0xb313, Multihash.Status.Draft); + public static final Multihash SKEIN256_152 = Multihash.of("skein256-152", 0xb313, Multicodec.Status.Draft); /** Multihash: skein256-16, status = draft, code = 0xb302 */ - public static final Multihash SKEIN256_16 = Multihash.of("skein256-16", 0xb302, Multihash.Status.Draft); + public static final Multihash SKEIN256_16 = Multihash.of("skein256-16", 0xb302, Multicodec.Status.Draft); /** Multihash: skein256-160, status = draft, code = 0xb314 */ - public static final Multihash SKEIN256_160 = Multihash.of("skein256-160", 0xb314, Multihash.Status.Draft); + public static final Multihash SKEIN256_160 = Multihash.of("skein256-160", 0xb314, Multicodec.Status.Draft); /** Multihash: skein256-168, status = draft, code = 0xb315 */ - public static final Multihash SKEIN256_168 = Multihash.of("skein256-168", 0xb315, Multihash.Status.Draft); + public static final Multihash SKEIN256_168 = Multihash.of("skein256-168", 0xb315, Multicodec.Status.Draft); /** Multihash: skein256-176, status = draft, code = 0xb316 */ - public static final Multihash SKEIN256_176 = Multihash.of("skein256-176", 0xb316, Multihash.Status.Draft); + public static final Multihash SKEIN256_176 = Multihash.of("skein256-176", 0xb316, Multicodec.Status.Draft); /** Multihash: skein256-184, status = draft, code = 0xb317 */ - public static final Multihash SKEIN256_184 = Multihash.of("skein256-184", 0xb317, Multihash.Status.Draft); + public static final Multihash SKEIN256_184 = Multihash.of("skein256-184", 0xb317, Multicodec.Status.Draft); /** Multihash: skein256-192, status = draft, code = 0xb318 */ - public static final Multihash SKEIN256_192 = Multihash.of("skein256-192", 0xb318, Multihash.Status.Draft); + public static final Multihash SKEIN256_192 = Multihash.of("skein256-192", 0xb318, Multicodec.Status.Draft); /** Multihash: skein256-200, status = draft, code = 0xb319 */ - public static final Multihash SKEIN256_200 = Multihash.of("skein256-200", 0xb319, Multihash.Status.Draft); + public static final Multihash SKEIN256_200 = Multihash.of("skein256-200", 0xb319, Multicodec.Status.Draft); /** Multihash: skein256-208, status = draft, code = 0xb31a */ - public static final Multihash SKEIN256_208 = Multihash.of("skein256-208", 0xb31a, Multihash.Status.Draft); + public static final Multihash SKEIN256_208 = Multihash.of("skein256-208", 0xb31a, Multicodec.Status.Draft); /** Multihash: skein256-216, status = draft, code = 0xb31b */ - public static final Multihash SKEIN256_216 = Multihash.of("skein256-216", 0xb31b, Multihash.Status.Draft); + public static final Multihash SKEIN256_216 = Multihash.of("skein256-216", 0xb31b, Multicodec.Status.Draft); /** Multihash: skein256-224, status = draft, code = 0xb31c */ - public static final Multihash SKEIN256_224 = Multihash.of("skein256-224", 0xb31c, Multihash.Status.Draft); + public static final Multihash SKEIN256_224 = Multihash.of("skein256-224", 0xb31c, Multicodec.Status.Draft); /** Multihash: skein256-232, status = draft, code = 0xb31d */ - public static final Multihash SKEIN256_232 = Multihash.of("skein256-232", 0xb31d, Multihash.Status.Draft); + public static final Multihash SKEIN256_232 = Multihash.of("skein256-232", 0xb31d, Multicodec.Status.Draft); /** Multihash: skein256-24, status = draft, code = 0xb303 */ - public static final Multihash SKEIN256_24 = Multihash.of("skein256-24", 0xb303, Multihash.Status.Draft); + public static final Multihash SKEIN256_24 = Multihash.of("skein256-24", 0xb303, Multicodec.Status.Draft); /** Multihash: skein256-240, status = draft, code = 0xb31e */ - public static final Multihash SKEIN256_240 = Multihash.of("skein256-240", 0xb31e, Multihash.Status.Draft); + public static final Multihash SKEIN256_240 = Multihash.of("skein256-240", 0xb31e, Multicodec.Status.Draft); /** Multihash: skein256-248, status = draft, code = 0xb31f */ - public static final Multihash SKEIN256_248 = Multihash.of("skein256-248", 0xb31f, Multihash.Status.Draft); + public static final Multihash SKEIN256_248 = Multihash.of("skein256-248", 0xb31f, Multicodec.Status.Draft); /** Multihash: skein256-256, status = draft, code = 0xb320 */ - public static final Multihash SKEIN256_256 = Multihash.of("skein256-256", 0xb320, Multihash.Status.Draft); + public static final Multihash SKEIN256_256 = Multihash.of("skein256-256", 0xb320, Multicodec.Status.Draft); /** Multihash: skein256-32, status = draft, code = 0xb304 */ - public static final Multihash SKEIN256_32 = Multihash.of("skein256-32", 0xb304, Multihash.Status.Draft); + public static final Multihash SKEIN256_32 = Multihash.of("skein256-32", 0xb304, Multicodec.Status.Draft); /** Multihash: skein256-40, status = draft, code = 0xb305 */ - public static final Multihash SKEIN256_40 = Multihash.of("skein256-40", 0xb305, Multihash.Status.Draft); + public static final Multihash SKEIN256_40 = Multihash.of("skein256-40", 0xb305, Multicodec.Status.Draft); /** Multihash: skein256-48, status = draft, code = 0xb306 */ - public static final Multihash SKEIN256_48 = Multihash.of("skein256-48", 0xb306, Multihash.Status.Draft); + public static final Multihash SKEIN256_48 = Multihash.of("skein256-48", 0xb306, Multicodec.Status.Draft); /** Multihash: skein256-56, status = draft, code = 0xb307 */ - public static final Multihash SKEIN256_56 = Multihash.of("skein256-56", 0xb307, Multihash.Status.Draft); + public static final Multihash SKEIN256_56 = Multihash.of("skein256-56", 0xb307, Multicodec.Status.Draft); /** Multihash: skein256-64, status = draft, code = 0xb308 */ - public static final Multihash SKEIN256_64 = Multihash.of("skein256-64", 0xb308, Multihash.Status.Draft); + public static final Multihash SKEIN256_64 = Multihash.of("skein256-64", 0xb308, Multicodec.Status.Draft); /** Multihash: skein256-72, status = draft, code = 0xb309 */ - public static final Multihash SKEIN256_72 = Multihash.of("skein256-72", 0xb309, Multihash.Status.Draft); + public static final Multihash SKEIN256_72 = Multihash.of("skein256-72", 0xb309, Multicodec.Status.Draft); /** Multihash: skein256-8, Skein256 consists of 32 output lengths that give different hashes, status = draft, code = 0xb301 */ - public static final Multihash SKEIN256_8 = Multihash.of("skein256-8", 0xb301, Multihash.Status.Draft); + public static final Multihash SKEIN256_8 = Multihash.of("skein256-8", 0xb301, Multicodec.Status.Draft); /** Multihash: skein256-80, status = draft, code = 0xb30a */ - public static final Multihash SKEIN256_80 = Multihash.of("skein256-80", 0xb30a, Multihash.Status.Draft); + public static final Multihash SKEIN256_80 = Multihash.of("skein256-80", 0xb30a, Multicodec.Status.Draft); /** Multihash: skein256-88, status = draft, code = 0xb30b */ - public static final Multihash SKEIN256_88 = Multihash.of("skein256-88", 0xb30b, Multihash.Status.Draft); + public static final Multihash SKEIN256_88 = Multihash.of("skein256-88", 0xb30b, Multicodec.Status.Draft); /** Multihash: skein256-96, status = draft, code = 0xb30c */ - public static final Multihash SKEIN256_96 = Multihash.of("skein256-96", 0xb30c, Multihash.Status.Draft); + public static final Multihash SKEIN256_96 = Multihash.of("skein256-96", 0xb30c, Multicodec.Status.Draft); /** Multihash: skein512-104, status = draft, code = 0xb32d */ - public static final Multihash SKEIN512_104 = Multihash.of("skein512-104", 0xb32d, Multihash.Status.Draft); + public static final Multihash SKEIN512_104 = Multihash.of("skein512-104", 0xb32d, Multicodec.Status.Draft); /** Multihash: skein512-112, status = draft, code = 0xb32e */ - public static final Multihash SKEIN512_112 = Multihash.of("skein512-112", 0xb32e, Multihash.Status.Draft); + public static final Multihash SKEIN512_112 = Multihash.of("skein512-112", 0xb32e, Multicodec.Status.Draft); /** Multihash: skein512-120, status = draft, code = 0xb32f */ - public static final Multihash SKEIN512_120 = Multihash.of("skein512-120", 0xb32f, Multihash.Status.Draft); + public static final Multihash SKEIN512_120 = Multihash.of("skein512-120", 0xb32f, Multicodec.Status.Draft); /** Multihash: skein512-128, status = draft, code = 0xb330 */ - public static final Multihash SKEIN512_128 = Multihash.of("skein512-128", 0xb330, Multihash.Status.Draft); + public static final Multihash SKEIN512_128 = Multihash.of("skein512-128", 0xb330, Multicodec.Status.Draft); /** Multihash: skein512-136, status = draft, code = 0xb331 */ - public static final Multihash SKEIN512_136 = Multihash.of("skein512-136", 0xb331, Multihash.Status.Draft); + public static final Multihash SKEIN512_136 = Multihash.of("skein512-136", 0xb331, Multicodec.Status.Draft); /** Multihash: skein512-144, status = draft, code = 0xb332 */ - public static final Multihash SKEIN512_144 = Multihash.of("skein512-144", 0xb332, Multihash.Status.Draft); + public static final Multihash SKEIN512_144 = Multihash.of("skein512-144", 0xb332, Multicodec.Status.Draft); /** Multihash: skein512-152, status = draft, code = 0xb333 */ - public static final Multihash SKEIN512_152 = Multihash.of("skein512-152", 0xb333, Multihash.Status.Draft); + public static final Multihash SKEIN512_152 = Multihash.of("skein512-152", 0xb333, Multicodec.Status.Draft); /** Multihash: skein512-16, status = draft, code = 0xb322 */ - public static final Multihash SKEIN512_16 = Multihash.of("skein512-16", 0xb322, Multihash.Status.Draft); + public static final Multihash SKEIN512_16 = Multihash.of("skein512-16", 0xb322, Multicodec.Status.Draft); /** Multihash: skein512-160, status = draft, code = 0xb334 */ - public static final Multihash SKEIN512_160 = Multihash.of("skein512-160", 0xb334, Multihash.Status.Draft); + public static final Multihash SKEIN512_160 = Multihash.of("skein512-160", 0xb334, Multicodec.Status.Draft); /** Multihash: skein512-168, status = draft, code = 0xb335 */ - public static final Multihash SKEIN512_168 = Multihash.of("skein512-168", 0xb335, Multihash.Status.Draft); + public static final Multihash SKEIN512_168 = Multihash.of("skein512-168", 0xb335, Multicodec.Status.Draft); /** Multihash: skein512-176, status = draft, code = 0xb336 */ - public static final Multihash SKEIN512_176 = Multihash.of("skein512-176", 0xb336, Multihash.Status.Draft); + public static final Multihash SKEIN512_176 = Multihash.of("skein512-176", 0xb336, Multicodec.Status.Draft); /** Multihash: skein512-184, status = draft, code = 0xb337 */ - public static final Multihash SKEIN512_184 = Multihash.of("skein512-184", 0xb337, Multihash.Status.Draft); + public static final Multihash SKEIN512_184 = Multihash.of("skein512-184", 0xb337, Multicodec.Status.Draft); /** Multihash: skein512-192, status = draft, code = 0xb338 */ - public static final Multihash SKEIN512_192 = Multihash.of("skein512-192", 0xb338, Multihash.Status.Draft); + public static final Multihash SKEIN512_192 = Multihash.of("skein512-192", 0xb338, Multicodec.Status.Draft); /** Multihash: skein512-200, status = draft, code = 0xb339 */ - public static final Multihash SKEIN512_200 = Multihash.of("skein512-200", 0xb339, Multihash.Status.Draft); + public static final Multihash SKEIN512_200 = Multihash.of("skein512-200", 0xb339, Multicodec.Status.Draft); /** Multihash: skein512-208, status = draft, code = 0xb33a */ - public static final Multihash SKEIN512_208 = Multihash.of("skein512-208", 0xb33a, Multihash.Status.Draft); + public static final Multihash SKEIN512_208 = Multihash.of("skein512-208", 0xb33a, Multicodec.Status.Draft); /** Multihash: skein512-216, status = draft, code = 0xb33b */ - public static final Multihash SKEIN512_216 = Multihash.of("skein512-216", 0xb33b, Multihash.Status.Draft); + public static final Multihash SKEIN512_216 = Multihash.of("skein512-216", 0xb33b, Multicodec.Status.Draft); /** Multihash: skein512-224, status = draft, code = 0xb33c */ - public static final Multihash SKEIN512_224 = Multihash.of("skein512-224", 0xb33c, Multihash.Status.Draft); + public static final Multihash SKEIN512_224 = Multihash.of("skein512-224", 0xb33c, Multicodec.Status.Draft); /** Multihash: skein512-232, status = draft, code = 0xb33d */ - public static final Multihash SKEIN512_232 = Multihash.of("skein512-232", 0xb33d, Multihash.Status.Draft); + public static final Multihash SKEIN512_232 = Multihash.of("skein512-232", 0xb33d, Multicodec.Status.Draft); /** Multihash: skein512-24, status = draft, code = 0xb323 */ - public static final Multihash SKEIN512_24 = Multihash.of("skein512-24", 0xb323, Multihash.Status.Draft); + public static final Multihash SKEIN512_24 = Multihash.of("skein512-24", 0xb323, Multicodec.Status.Draft); /** Multihash: skein512-240, status = draft, code = 0xb33e */ - public static final Multihash SKEIN512_240 = Multihash.of("skein512-240", 0xb33e, Multihash.Status.Draft); + public static final Multihash SKEIN512_240 = Multihash.of("skein512-240", 0xb33e, Multicodec.Status.Draft); /** Multihash: skein512-248, status = draft, code = 0xb33f */ - public static final Multihash SKEIN512_248 = Multihash.of("skein512-248", 0xb33f, Multihash.Status.Draft); + public static final Multihash SKEIN512_248 = Multihash.of("skein512-248", 0xb33f, Multicodec.Status.Draft); /** Multihash: skein512-256, status = draft, code = 0xb340 */ - public static final Multihash SKEIN512_256 = Multihash.of("skein512-256", 0xb340, Multihash.Status.Draft); + public static final Multihash SKEIN512_256 = Multihash.of("skein512-256", 0xb340, Multicodec.Status.Draft); /** Multihash: skein512-264, status = draft, code = 0xb341 */ - public static final Multihash SKEIN512_264 = Multihash.of("skein512-264", 0xb341, Multihash.Status.Draft); + public static final Multihash SKEIN512_264 = Multihash.of("skein512-264", 0xb341, Multicodec.Status.Draft); /** Multihash: skein512-272, status = draft, code = 0xb342 */ - public static final Multihash SKEIN512_272 = Multihash.of("skein512-272", 0xb342, Multihash.Status.Draft); + public static final Multihash SKEIN512_272 = Multihash.of("skein512-272", 0xb342, Multicodec.Status.Draft); /** Multihash: skein512-280, status = draft, code = 0xb343 */ - public static final Multihash SKEIN512_280 = Multihash.of("skein512-280", 0xb343, Multihash.Status.Draft); + public static final Multihash SKEIN512_280 = Multihash.of("skein512-280", 0xb343, Multicodec.Status.Draft); /** Multihash: skein512-288, status = draft, code = 0xb344 */ - public static final Multihash SKEIN512_288 = Multihash.of("skein512-288", 0xb344, Multihash.Status.Draft); + public static final Multihash SKEIN512_288 = Multihash.of("skein512-288", 0xb344, Multicodec.Status.Draft); /** Multihash: skein512-296, status = draft, code = 0xb345 */ - public static final Multihash SKEIN512_296 = Multihash.of("skein512-296", 0xb345, Multihash.Status.Draft); + public static final Multihash SKEIN512_296 = Multihash.of("skein512-296", 0xb345, Multicodec.Status.Draft); /** Multihash: skein512-304, status = draft, code = 0xb346 */ - public static final Multihash SKEIN512_304 = Multihash.of("skein512-304", 0xb346, Multihash.Status.Draft); + public static final Multihash SKEIN512_304 = Multihash.of("skein512-304", 0xb346, Multicodec.Status.Draft); /** Multihash: skein512-312, status = draft, code = 0xb347 */ - public static final Multihash SKEIN512_312 = Multihash.of("skein512-312", 0xb347, Multihash.Status.Draft); + public static final Multihash SKEIN512_312 = Multihash.of("skein512-312", 0xb347, Multicodec.Status.Draft); /** Multihash: skein512-32, status = draft, code = 0xb324 */ - public static final Multihash SKEIN512_32 = Multihash.of("skein512-32", 0xb324, Multihash.Status.Draft); + public static final Multihash SKEIN512_32 = Multihash.of("skein512-32", 0xb324, Multicodec.Status.Draft); /** Multihash: skein512-320, status = draft, code = 0xb348 */ - public static final Multihash SKEIN512_320 = Multihash.of("skein512-320", 0xb348, Multihash.Status.Draft); + public static final Multihash SKEIN512_320 = Multihash.of("skein512-320", 0xb348, Multicodec.Status.Draft); /** Multihash: skein512-328, status = draft, code = 0xb349 */ - public static final Multihash SKEIN512_328 = Multihash.of("skein512-328", 0xb349, Multihash.Status.Draft); + public static final Multihash SKEIN512_328 = Multihash.of("skein512-328", 0xb349, Multicodec.Status.Draft); /** Multihash: skein512-336, status = draft, code = 0xb34a */ - public static final Multihash SKEIN512_336 = Multihash.of("skein512-336", 0xb34a, Multihash.Status.Draft); + public static final Multihash SKEIN512_336 = Multihash.of("skein512-336", 0xb34a, Multicodec.Status.Draft); /** Multihash: skein512-344, status = draft, code = 0xb34b */ - public static final Multihash SKEIN512_344 = Multihash.of("skein512-344", 0xb34b, Multihash.Status.Draft); + public static final Multihash SKEIN512_344 = Multihash.of("skein512-344", 0xb34b, Multicodec.Status.Draft); /** Multihash: skein512-352, status = draft, code = 0xb34c */ - public static final Multihash SKEIN512_352 = Multihash.of("skein512-352", 0xb34c, Multihash.Status.Draft); + public static final Multihash SKEIN512_352 = Multihash.of("skein512-352", 0xb34c, Multicodec.Status.Draft); /** Multihash: skein512-360, status = draft, code = 0xb34d */ - public static final Multihash SKEIN512_360 = Multihash.of("skein512-360", 0xb34d, Multihash.Status.Draft); + public static final Multihash SKEIN512_360 = Multihash.of("skein512-360", 0xb34d, Multicodec.Status.Draft); /** Multihash: skein512-368, status = draft, code = 0xb34e */ - public static final Multihash SKEIN512_368 = Multihash.of("skein512-368", 0xb34e, Multihash.Status.Draft); + public static final Multihash SKEIN512_368 = Multihash.of("skein512-368", 0xb34e, Multicodec.Status.Draft); /** Multihash: skein512-376, status = draft, code = 0xb34f */ - public static final Multihash SKEIN512_376 = Multihash.of("skein512-376", 0xb34f, Multihash.Status.Draft); + public static final Multihash SKEIN512_376 = Multihash.of("skein512-376", 0xb34f, Multicodec.Status.Draft); /** Multihash: skein512-384, status = draft, code = 0xb350 */ - public static final Multihash SKEIN512_384 = Multihash.of("skein512-384", 0xb350, Multihash.Status.Draft); + public static final Multihash SKEIN512_384 = Multihash.of("skein512-384", 0xb350, Multicodec.Status.Draft); /** Multihash: skein512-392, status = draft, code = 0xb351 */ - public static final Multihash SKEIN512_392 = Multihash.of("skein512-392", 0xb351, Multihash.Status.Draft); + public static final Multihash SKEIN512_392 = Multihash.of("skein512-392", 0xb351, Multicodec.Status.Draft); /** Multihash: skein512-40, status = draft, code = 0xb325 */ - public static final Multihash SKEIN512_40 = Multihash.of("skein512-40", 0xb325, Multihash.Status.Draft); + public static final Multihash SKEIN512_40 = Multihash.of("skein512-40", 0xb325, Multicodec.Status.Draft); /** Multihash: skein512-400, status = draft, code = 0xb352 */ - public static final Multihash SKEIN512_400 = Multihash.of("skein512-400", 0xb352, Multihash.Status.Draft); + public static final Multihash SKEIN512_400 = Multihash.of("skein512-400", 0xb352, Multicodec.Status.Draft); /** Multihash: skein512-408, status = draft, code = 0xb353 */ - public static final Multihash SKEIN512_408 = Multihash.of("skein512-408", 0xb353, Multihash.Status.Draft); + public static final Multihash SKEIN512_408 = Multihash.of("skein512-408", 0xb353, Multicodec.Status.Draft); /** Multihash: skein512-416, status = draft, code = 0xb354 */ - public static final Multihash SKEIN512_416 = Multihash.of("skein512-416", 0xb354, Multihash.Status.Draft); + public static final Multihash SKEIN512_416 = Multihash.of("skein512-416", 0xb354, Multicodec.Status.Draft); /** Multihash: skein512-424, status = draft, code = 0xb355 */ - public static final Multihash SKEIN512_424 = Multihash.of("skein512-424", 0xb355, Multihash.Status.Draft); + public static final Multihash SKEIN512_424 = Multihash.of("skein512-424", 0xb355, Multicodec.Status.Draft); /** Multihash: skein512-432, status = draft, code = 0xb356 */ - public static final Multihash SKEIN512_432 = Multihash.of("skein512-432", 0xb356, Multihash.Status.Draft); + public static final Multihash SKEIN512_432 = Multihash.of("skein512-432", 0xb356, Multicodec.Status.Draft); /** Multihash: skein512-440, status = draft, code = 0xb357 */ - public static final Multihash SKEIN512_440 = Multihash.of("skein512-440", 0xb357, Multihash.Status.Draft); + public static final Multihash SKEIN512_440 = Multihash.of("skein512-440", 0xb357, Multicodec.Status.Draft); /** Multihash: skein512-448, status = draft, code = 0xb358 */ - public static final Multihash SKEIN512_448 = Multihash.of("skein512-448", 0xb358, Multihash.Status.Draft); + public static final Multihash SKEIN512_448 = Multihash.of("skein512-448", 0xb358, Multicodec.Status.Draft); /** Multihash: skein512-456, status = draft, code = 0xb359 */ - public static final Multihash SKEIN512_456 = Multihash.of("skein512-456", 0xb359, Multihash.Status.Draft); + public static final Multihash SKEIN512_456 = Multihash.of("skein512-456", 0xb359, Multicodec.Status.Draft); /** Multihash: skein512-464, status = draft, code = 0xb35a */ - public static final Multihash SKEIN512_464 = Multihash.of("skein512-464", 0xb35a, Multihash.Status.Draft); + public static final Multihash SKEIN512_464 = Multihash.of("skein512-464", 0xb35a, Multicodec.Status.Draft); /** Multihash: skein512-472, status = draft, code = 0xb35b */ - public static final Multihash SKEIN512_472 = Multihash.of("skein512-472", 0xb35b, Multihash.Status.Draft); + public static final Multihash SKEIN512_472 = Multihash.of("skein512-472", 0xb35b, Multicodec.Status.Draft); /** Multihash: skein512-48, status = draft, code = 0xb326 */ - public static final Multihash SKEIN512_48 = Multihash.of("skein512-48", 0xb326, Multihash.Status.Draft); + public static final Multihash SKEIN512_48 = Multihash.of("skein512-48", 0xb326, Multicodec.Status.Draft); /** Multihash: skein512-480, status = draft, code = 0xb35c */ - public static final Multihash SKEIN512_480 = Multihash.of("skein512-480", 0xb35c, Multihash.Status.Draft); + public static final Multihash SKEIN512_480 = Multihash.of("skein512-480", 0xb35c, Multicodec.Status.Draft); /** Multihash: skein512-488, status = draft, code = 0xb35d */ - public static final Multihash SKEIN512_488 = Multihash.of("skein512-488", 0xb35d, Multihash.Status.Draft); + public static final Multihash SKEIN512_488 = Multihash.of("skein512-488", 0xb35d, Multicodec.Status.Draft); /** Multihash: skein512-496, status = draft, code = 0xb35e */ - public static final Multihash SKEIN512_496 = Multihash.of("skein512-496", 0xb35e, Multihash.Status.Draft); + public static final Multihash SKEIN512_496 = Multihash.of("skein512-496", 0xb35e, Multicodec.Status.Draft); /** Multihash: skein512-504, status = draft, code = 0xb35f */ - public static final Multihash SKEIN512_504 = Multihash.of("skein512-504", 0xb35f, Multihash.Status.Draft); + public static final Multihash SKEIN512_504 = Multihash.of("skein512-504", 0xb35f, Multicodec.Status.Draft); /** Multihash: skein512-512, status = draft, code = 0xb360 */ - public static final Multihash SKEIN512_512 = Multihash.of("skein512-512", 0xb360, Multihash.Status.Draft); + public static final Multihash SKEIN512_512 = Multihash.of("skein512-512", 0xb360, Multicodec.Status.Draft); /** Multihash: skein512-56, status = draft, code = 0xb327 */ - public static final Multihash SKEIN512_56 = Multihash.of("skein512-56", 0xb327, Multihash.Status.Draft); + public static final Multihash SKEIN512_56 = Multihash.of("skein512-56", 0xb327, Multicodec.Status.Draft); /** Multihash: skein512-64, status = draft, code = 0xb328 */ - public static final Multihash SKEIN512_64 = Multihash.of("skein512-64", 0xb328, Multihash.Status.Draft); + public static final Multihash SKEIN512_64 = Multihash.of("skein512-64", 0xb328, Multicodec.Status.Draft); /** Multihash: skein512-72, status = draft, code = 0xb329 */ - public static final Multihash SKEIN512_72 = Multihash.of("skein512-72", 0xb329, Multihash.Status.Draft); + public static final Multihash SKEIN512_72 = Multihash.of("skein512-72", 0xb329, Multicodec.Status.Draft); /** Multihash: skein512-8, Skein512 consists of 64 output lengths that give different hashes, status = draft, code = 0xb321 */ - public static final Multihash SKEIN512_8 = Multihash.of("skein512-8", 0xb321, Multihash.Status.Draft); + public static final Multihash SKEIN512_8 = Multihash.of("skein512-8", 0xb321, Multicodec.Status.Draft); /** Multihash: skein512-80, status = draft, code = 0xb32a */ - public static final Multihash SKEIN512_80 = Multihash.of("skein512-80", 0xb32a, Multihash.Status.Draft); + public static final Multihash SKEIN512_80 = Multihash.of("skein512-80", 0xb32a, Multicodec.Status.Draft); /** Multihash: skein512-88, status = draft, code = 0xb32b */ - public static final Multihash SKEIN512_88 = Multihash.of("skein512-88", 0xb32b, Multihash.Status.Draft); + public static final Multihash SKEIN512_88 = Multihash.of("skein512-88", 0xb32b, Multicodec.Status.Draft); /** Multihash: skein512-96, status = draft, code = 0xb32c */ - public static final Multihash SKEIN512_96 = Multihash.of("skein512-96", 0xb32c, Multihash.Status.Draft); + public static final Multihash SKEIN512_96 = Multihash.of("skein512-96", 0xb32c, Multicodec.Status.Draft); /** Multihash: sm3-256, status = draft, code = 0x534d */ - public static final Multihash SM3_256 = Multihash.of("sm3-256", 0x534d, Multihash.Status.Draft); + public static final Multihash SM3_256 = Multihash.of("sm3-256", 0x534d, Multicodec.Status.Draft); /** Multihash: ssz-sha2-256-bmt, SSZ Merkle tree root using SHA2-256 as the hashing function and SSZ serialization for the block binary, status = draft, code = 0xb502 */ - public static final Multihash SSZ_SHA2_256_BMT = Multihash.of("ssz-sha2-256-bmt", 0xb502, Multihash.Status.Draft); + public static final Multihash SSZ_SHA2_256_BMT = Multihash.of("ssz-sha2-256-bmt", 0xb502, Multicodec.Status.Draft); /** Multihash: x11, status = draft, code = 0x1100 */ - public static final Multihash X11 = Multihash.of("x11", 0x1100, Multihash.Status.Draft); + public static final Multihash X11 = Multihash.of("x11", 0x1100, Multicodec.Status.Draft); protected static final Map ALL = new TreeMap<>(); diff --git a/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java b/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java index 5b3774a..5ed4d97 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/NamespaceCodec.java @@ -3,10 +3,10 @@ import java.util.TreeMap; import java.util.Map; -import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.Multicodec; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class NamespaceCodec { /** Namespace: arweave-ns, Arweave Namespace, status = draft, code = 0xb29910 */ diff --git a/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java b/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java index 6470785..23d0381 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/SerializationCodec.java @@ -3,10 +3,10 @@ import java.util.TreeMap; import java.util.Map; -import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.Multicodec; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class SerializationCodec { /** Serialization: bencode, bencode, status = draft, code = 0x63 */ diff --git a/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java b/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java index 38b4a6a..9c8b1fb 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/TransportCodec.java @@ -3,10 +3,10 @@ import java.util.TreeMap; import java.util.Map; -import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.Multicodec; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class TransportCodec { /** Transport: transport-bitswap, Bitswap datatransfer, status = draft, code = 0x900 */ diff --git a/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java b/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java index 9056a1e..bdad225 100644 --- a/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java +++ b/src/main/java/com/apicatalog/multicodec/codec/VarsigCodec.java @@ -3,10 +3,10 @@ import java.util.TreeMap; import java.util.Map; -import com.apicatalog.multicodec.Multicodec; import com.apicatalog.multicodec.Multicodec.Tag; +import com.apicatalog.multicodec.Multicodec; -/** Multicodec Registry - generated: Wed Oct 02 16:23:27 CEST 2024 */ +/** Multicodec Registry - generated: Wed Oct 02 16:27:05 CEST 2024 */ public class VarsigCodec { /** Varsig: bls-12381-g1-sig, G1 signature for BLS-12381-G2, status = draft, code = 0xd0ea */