Documentation
¶
Index ¶
- type Processor
- func (p *Processor) InitializePolicy(ctx context.Context, i *types.DirectInstruction) ([]byte, error)
- func (p *Processor) SetMachinePathList(ctx context.Context, i *types.DirectInstruction) ([]byte, error)
- func (p *Processor) UpdatePolicy(ctx context.Context, i *types.DirectInstruction) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
func NewProcessor ¶
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 ¶
UpdatePolicy validates and applies the next signing policy from a multisigned submission.