pop

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pop is the agent-side proof-of-possession helper for ADR 0004 (#75): it owns the Ed25519 signing private key, knows how to load it from disk, and signs poll-request canonical strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeSignature

func DecodeSignature(s string) ([]byte, error)

DecodeSignature is the inverse of EncodeSignature. Reuses the same standard encoding; mismatched padding or non-base64 bytes return an error so the verifier can answer 400/401 instead of panicking.

func EncodeSignature

func EncodeSignature(sig []byte) string

EncodeSignature returns the base64 (standard, no-padding-stripped) form of the signature, suitable for the X-Nebula-Signature header.

func Sign

func Sign(privateKey ed25519.PrivateKey, canonical string) ([]byte, error)

Sign returns the Ed25519 signature over the canonical string. The caller is responsible for constructing the canonical string via the shared internal/pop.CanonicalString helper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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