Skip to main content

NoKeyManager

Git Source

NoKeyManager

A middleware extension that provides no key storage functionality

This contract implements the KeyManager interface but does not provide any key storage functionality.

Methods

operatorByKey

function operatorByKey(
bytes memory key
) public pure override returns (address)

Gets the operator address associated with a key

Parameters

NameTypeDescription
keybytes memoryThe key to lookup (unused)

Returns

NameTypeDescription
addressThe operator address (always reverts)

operatorKey

function operatorKey(
address operator
) public pure override returns (bytes memory)

Gets an operator's active key

Parameters

NameTypeDescription
operatoraddressThe operator address to lookup (unused)

Returns

NameTypeDescription
memorybytesThe operator's key (always reverts)

keyWasActiveAt

function keyWasActiveAt(uint48 timestamp, bytes memory key) public pure override returns (bool) 

Checks if a key was active at a specific timestamp

Parameters

NameTypeDescription
timestampuint48The timestamp to check (unused)
keybytes memoryThe key to check (unused)

Returns

NameTypeDescription
boolWhether key was active (always reverts)

_updateKey

function _updateKey(address operator, bytes memory key) internal virtual override 

Updates an operator's key

Parameters

NameTypeDescription
operatoraddressThe operator address (unused)
keybytes memoryThe new key (unused)