keyaddress

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 8 Imported by: 0

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