Documentation
¶
Overview ¶
Package indverify is a second implementation of what a verifier of bdns proofs does, written from the specification (docs/spec.md sections 4 and 13) and RFC 9162 alone. It imports nothing of bdns, so a test that holds a proof to it holds the proof to the specification and not to the codec's own verifier. It is for tests.
Index ¶
- func Absent(before, after *Presence, root [32]byte, count uint64, key []byte, prefix bool) bool
- func Encode(l *Leaf) []byte
- func Holds(p *Proof, root [32]byte, count uint64) bool
- func Inclusion(p *Presence, root [32]byte, count uint64) bool
- func Key(l *Leaf) []byte
- func KeyOf(n []string, typ uint16, scope []byte) []byte
- func NamePrefix(n []string) []byte
- func Root(leaves [][]byte) [32]byte
- type Leaf
- type Part
- type Presence
- type Proof
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Absent ¶
Absent is the proof of absence of spec section 4, for one key or, with prefix, for every key that starts with key.
func Holds ¶
Holds is section 13's rule: with no leaf present, section 4's absence; one key present is that leaf under the root and no neighbor; a whole name present is its leaves, adjacent, and on either side a leaf outside the name or the end of the state.
func Inclusion ¶
Inclusion is RFC 9162 section 2.1.3.2.
func NamePrefix ¶
NamePrefix is what the key of every leaf at a name starts with.