policyutils

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	*policy.Storage
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(teeNode *pnode.Node, policyStorage *policy.Storage) Processor

NewProcessor returns a policy utility processor backed by the provided storage and node.

func (*Processor) InitializePolicy

func (p *Processor) InitializePolicy(ctx context.Context, i *types.DirectInstruction) ([]byte, error)

InitializePolicy sets the first signing policy along with its associated public keys.

func (*Processor) SetMachinePathList added in v0.0.21

func (p *Processor) SetMachinePathList(ctx context.Context, i *types.DirectInstruction) ([]byte, error)

SetMachinePathList stores the governance-approved list of machine paths used to authorize direct-backup operations. It requires the list to be authorized by governance — either by enough direct governance signatures over the canonical (chainID, extensionID, paths, nonce) hash to meet the configured threshold, or (for Safe-backed governance) by a verified Safe approveMachinePathList transaction — and a nonce strictly higher than the one currently stored. Per-operation authorization is enforced by the wallet handlers.

func (*Processor) UpdatePolicy

func (p *Processor) UpdatePolicy(ctx context.Context, i *types.DirectInstruction) ([]byte, error)

UpdatePolicy validates and applies the next signing policy from a multisigned submission.

Jump to

Keyboard shortcuts

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