Skip to content

Commit 7b1f04e

Browse files
committed
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; } ```
1 parent 04bdc2d commit 7b1f04e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

table.csv

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ rlp, serialization, 0x60, recursive length
3737
bencode, serialization, 0x63, bencode
3838
dag-pb, ipld, 0x70, MerkleDAG protobuf
3939
dag-cbor, ipld, 0x71, MerkleDAG cbor
40+
libp2p-key, ipld, 0x72, Libp2p Public Key
4041
git-raw, ipld, 0x78, Raw Git object
4142
torrent-info, ipld, 0x7b, Torrent file info field (bencoded)
4243
torrent-file, ipld, 0x7c, Torrent file (bencoded)

0 commit comments

Comments
 (0)