mirror of
https://github.com/logos-storage/multicodec.git
synced 2026-01-02 13:33:10 +00:00
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;
}
```
This commit is contained in:
parent
04bdc2d5e9
commit
7b1f04ed63
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user