Documentation
¶
Overview ¶
Package hashname provides the Hashname type and its derivation functions.
See: https://github.com/telehash/telehash.org/tree/558332cd82dec3b619d194d42b3d16618f077e0f/v3/hashname
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidIntermediatePart = errors.New("hashname: invalid intermediate part")
ErrInvalidIntermediatePart is returned when deriving a Hashname
View Source
var ErrInvalidIntermediatePartID = errors.New("hashname: invalid intermediate part id")
ErrInvalidIntermediatePartID is returned when deriving a Hashname
View Source
var ErrInvalidKey = errors.New("hashname: invalid key")
ErrInvalidKey is returned when deriving a Hashname
View Source
var ErrNoIntermediateParts = errors.New("hashname: no intermediate parts")
ErrNoIntermediateParts is returned when deriving a Hashname
Functions ¶
Types ¶
type H ¶
type H string
H represents a hashname.
func FromIntermediates ¶
FromIntermediates derives a hashname from its intermediate parts.
func FromKeyAndIntermediates ¶
FromKeyAndIntermediates derives a hasname from a public key and some intermediate parts.
Click to show internal directories.
Click to hide internal directories.