From 7b1f04ed632941a41d236afa4eaa032cd2cdf3bd Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 13 May 2019 14:41:28 -0700 Subject: [PATCH] multicodec: add IPLD codec for libp2p public keys This is specifically for the protobuf-encoded libp2p key format: ```proto enum KeyType { RSA = 0; Ed25519 = 1; Secp256k1 = 2; ECDSA = 3; } message PublicKey { required KeyType Type = 1; required bytes Data = 2; } ``` --- table.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/table.csv b/table.csv index 51d6ace9..99ed3645 100644 --- a/table.csv +++ b/table.csv @@ -37,6 +37,7 @@ rlp, serialization, 0x60, recursive length bencode, serialization, 0x63, bencode dag-pb, ipld, 0x70, MerkleDAG protobuf dag-cbor, ipld, 0x71, MerkleDAG cbor +libp2p-key, ipld, 0x72, Libp2p Public Key git-raw, ipld, 0x78, Raw Git object torrent-info, ipld, 0x7b, Torrent file info field (bencoded) torrent-file, ipld, 0x7c, Torrent file (bencoded)