policyutils

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 10 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
}

func NewProcessor

func NewProcessor(policyStorage *policy.Storage) Processor

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

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) 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