Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

(refactor) TrustAnchor should be a non-empty list #35

Open
japaric opened this issue Mar 7, 2024 · 0 comments
Open

(refactor) TrustAnchor should be a non-empty list #35

japaric opened this issue Mar 7, 2024 · 0 comments

Comments

@japaric
Copy link
Collaborator

japaric commented Mar 7, 2024

TrustAnchor should have the invariant of being non-empty. That way Client::delv does not have to check that its TrustAnchor argument is not empty.

IOW, the TrustAnchor constructor must take an initial key

impl TrustAnchor {
    // pub fn empty() -> Self; // removed
    pub fn new(key: DNSKEY) -> Self { /* .. */ }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant