the-custodian/docs/changes/netkingdom-target-2026-10-17/apps-access-engine-integration-r2/access-engine-source/testsupport/signfixture/sign.go
codex d6168526c5
Some checks are pending
CI Smoke / host-smoke (push) Waiting to run
CI Smoke / container-smoke (push) Waiting to run
Reject generated-only commits / generated-commit-guard (push) Waiting to run
docs: preserve reviewed NetKingdom session artifacts
2026-11-01 23:18:14 +01:00

14 lines
530 B
Go

// Package signfixture exposes producer signing only for synthetic consumer tests.
// Callers supply test keys; this package contains no credentials or runtime signer.
package signfixture
import (
"crypto/ed25519"
"github.com/netkingdom/access-engine/internal/sign"
"github.com/netkingdom/access-engine/pkg/api"
)
// Sign uses the unchanged producer envelope format with a caller-owned fixture key.
func Sign(envelope *api.DecisionEnvelope, key ed25519.PrivateKey, kid string) error {
return sign.Sign(envelope, key, kid)
}