Skip to content

[Feature Request / Contribution Proposal] working with internet drafts #112

@beltram

Description

@beltram

Hi, and first of all thanks for the crate, it great, love it.

When working with internet drafts there are very often a lot of pending/requested IANA codepoints that are not within the private range and hence cannot be used within the ClaimSetBuilder which is a very convenient way to build a Cose object.

One have to resort to do the CBOR serialization by hand on the side to bypass this line.

My proposal is to add another variants like such:

pub enum RegisteredLabelWithPrivate<T: EnumI64 + WithPrivateRange> {
    PrivateUse(i64),
    InternetDraft(T),
    Assigned(T),
    Text(String),
}

#[derive(Clone, Debug, Eq, PartialEq)]
pub enum RegisteredLabel<T: EnumI64> {
    InternetDraft(T),
    Assigned(T),
    Text(String),
}

And an associated ClaimSetBuilder::internet_draft_claim that would let pass arbitrary labels.

What do you think ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions