Documentation
¶
Overview ¶
Package ni implements RFC6920: https://tools.ietf.org/html/rfc6920
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type URL ¶
type URL struct {
Authority string
Alg string
Val string
// contains filtered or unexported fields
}
URL represents a ni-url in memory. For the specification of the properties, see RFC6920: https://tools.ietf.org/html/rfc6920
func DigestToNI ¶
DigestToNI constructs a URL from a digest and the corresponding suite. Authority may be an empty string, as defined in RFC6920. The suite string must conform the the table here: https://www.iana.org/assignments/named-information/named-information.xhtml