From 2b2bda1d8d25b3d7cdab365ff355427bbd1d11d7 Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Wed, 4 Jan 2023 06:20:48 -0800 Subject: [PATCH 1/2] feat: add support for Named Records --- IPNI.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IPNI.md b/IPNI.md index 32110d1..227ba51 100644 --- a/IPNI.md +++ b/IPNI.md @@ -292,6 +292,11 @@ Specified protocols are expected to be ordered in increasing order. * http * the proposed `uvarint` protocol is `0x3D0000`. * the following bytes are not yet defined. +* Named Record + * Protocol `uvarint` is in the multicodec table + * the following bytes should be a dag-cbor encoded struct of: + * Name, a string + * Record, a valid dag-cbor type #### ExtendedProvider From 099c8da55fa1aebf5e09b98f48afc39910d835ab Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Tue, 10 Jan 2023 23:22:11 -0500 Subject: [PATCH 2/2] switch to varint delimited list --- IPNI.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/IPNI.md b/IPNI.md index 227ba51..5436f58 100644 --- a/IPNI.md +++ b/IPNI.md @@ -294,9 +294,10 @@ Specified protocols are expected to be ordered in increasing order. * the following bytes are not yet defined. * Named Record * Protocol `uvarint` is in the multicodec table - * the following bytes should be a dag-cbor encoded struct of: - * Name, a string - * Record, a valid dag-cbor type + * the following bytes should be: + * `uvarint` of the number of bytes in the name followed by the Name in bytes. + * Name should be a UTF-8 string + * `uvarint` of the number of bytes in the record followed by the Record bytes #### ExtendedProvider