-1
src/internal/multicodec.zig
-1
src/internal/multicodec.zig
···
23
23
/// multicodec prefixes (unsigned varint encoding)
24
24
/// secp256k1-pub: 0xe7 = 231, varint encoded as 0xe7 0x01 (2 bytes)
25
25
/// p256-pub: 0x1200 = 4608, varint encoded as 0x80 0x24 (2 bytes)
26
-
27
26
/// parse a multicodec-prefixed public key
28
27
/// returns the key type and a slice pointing to the raw key bytes
29
28
pub fn parsePublicKey(data: []const u8) !PublicKey {