Documentation
¶
Index ¶
- type Processor
- func (p *Processor) KeyDataProviderRestore(ctx context.Context, submissionTag types.SubmissionTag, ...) ([]byte, []byte, error)
- func (p *Processor) KeyDelete(ctx context.Context, submissionTag types.SubmissionTag, ...) ([]byte, []byte, error)
- func (p *Processor) KeyGenerate(ctx context.Context, submissionTag types.SubmissionTag, ...) ([]byte, []byte, error)
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.
Click to show internal directories.
Click to hide internal directories.