Encode all URIs using the vocab term codec. This allows arbitrary URIs to be encoded with the same small integers as other terms. The mapping in a context needs to use a redundant form: {"URI":"URI"}. This technique assume a use case where the CBOR-LD size has high priority over context size.
I'm not sure if there are edge cases with the technique here. (Need a better test suite.) The URI codec is making assumptions when it sees a "value: int" structure that the int is a term id. Would it ever be something else there?
I'm assuming this is breaking as well as the cryptosuite branch it's on top off.
Encode all URIs using the vocab term codec. This allows arbitrary URIs to be encoded with the same small integers as other terms. The mapping in a context needs to use a redundant form:
{"URI":"URI"}
. This technique assume a use case where the CBOR-LD size has high priority over context size.I'm not sure if there are edge cases with the technique here. (Need a better test suite.) The URI codec is making assumptions when it sees a "value: int" structure that the int is a term id. Would it ever be something else there?
I'm assuming this is breaking as well as the cryptosuite branch it's on top off.