walletutils

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: 20 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 {
	node.IdentifierSignerAndDecrypter
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(iSAndD node.IdentifierSignerAndDecrypter, policyStorage *policy.Storage, walletsStorage *wallets.Storage) Processor

NewProcessor constructs the wallet utility processor with the storages and TEE capabilities it relies on.

func (*Processor) KeyDataProviderRestore

func (p *Processor) KeyDataProviderRestore(
	ctx context.Context,
	submissionTag types.SubmissionTag,
	dataFixed *instruction.DataFixed,
	variableMessages []hexutil.Bytes,
	signers []common.Address,
	_ *cpolicy.SigningPolicy,
) ([]byte, []byte, error)

KeyDataProviderRestore reconstructs a wallet key from provider shares and emits a signed existence proof when successful.

func (*Processor) KeyDelete

func (p *Processor) KeyDelete(
	ctx context.Context,
	submissionTag types.SubmissionTag,
	dataFixed *instruction.DataFixed,
	_ []hexutil.Bytes,
	_ []common.Address,
	_ *cpolicy.SigningPolicy,
) ([]byte, []byte, error)

KeyDelete processes key removal instructions and enforces nonce-based replay protection.

func (*Processor) KeyGenerate

func (p *Processor) KeyGenerate(
	ctx context.Context,
	submissionTag types.SubmissionTag,
	dataFixed *instruction.DataFixed,
	_ []hexutil.Bytes,
	_ []common.Address,
	_ *cpolicy.SigningPolicy,
) ([]byte, []byte, error)

KeyGenerate handles wallet key creation instructions, persisting the new key and returning a signed existence proof.

Jump to

Keyboard shortcuts

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