premises

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package premises is the reason-as-evidence profile: a hand states the premises of an action as a ProveML certificate, the gateway verifies it against a snapshot, a registry and a provenance map before the grant is consulted, and the digests ride in the token as the profile's seven claims. The certificate language is ProveML through proveml-go; another language would be another implementation of Checker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(m *Material)

Check verifies the material and fills Verified and Errors: every construct verified by the ProveML judge in certificate coverage, every required control argued by at least one judgement, every bound fact at the grade the policy requires.

func Claims

func Claims(m *Material) (map[string]any, error)

Claims are the profile's seven claims for the token's extension point.

func Replay

func Replay(claims map[string]any, m Material) error

Replay recomputes the digests and the check from stored material and compares both with what a record claims.

Types

type Material

type Material struct {
	Certificate      string            `json:"certificate"`
	Store            map[string]any    `json:"store"`
	Registry         proveml.Registry  `json:"registry"`
	Provenance       map[string]string `json:"provenance"`
	RequiredControls []string          `json:"requiredControls"`
	RequiredGrades   map[string]string `json:"requiredGrades"`
	Verified         bool              `json:"verified"`
	Errors           []string          `json:"errors"`
}

Material is what the digests cover, supplied by the hand and kept beside the record.

Jump to

Keyboard shortcuts

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