keyaddress

package
v0.50.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package keyaddress owns bounded physical address encoding for feature adapters.

Index

Constants

View Source
const Version = "v1"

Version is the shared physical address format, independent of payload versions.

Variables

This section is empty.

Functions

func Prefix

func Prefix(feature keyspace.Feature, namespace keyspace.Namespace) string

Prefix encodes validated feature and namespace components for runtime and inspection.

Types

type Address

type Address struct {
	Namespace keyspace.Namespace
	Name      string
	Hash      [sha256.Size]byte
	// contains filtered or unexported fields
}

func FromHash

func FromHash(namespace keyspace.Namespace, name string, hash [sha256.Size]byte) (Address, error)

FromHash restores an address from its validated parts and logical-key hash, for adapters that persist or transfer an address without its logical key.

func New

func New(namespace keyspace.Namespace, name, logical string) (Address, error)

func (Address) String

func (a Address) String(feature keyspace.Feature) string

func (Address) Validate

func (a Address) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL