Skip to content

(pausable option C) Pausable sapient signer#96

Open
Agusx1211 wants to merge 2 commits intomasterfrom
pausable-sapient
Open

(pausable option C) Pausable sapient signer#96
Agusx1211 wants to merge 2 commits intomasterfrom
pausable-sapient

Conversation

@Agusx1211
Copy link
Copy Markdown
Member

Pausable sapient signer that must be used alongside a NESTED_TREE leaf to add "pausable" functionality into any section of a sequence configuration tree.

@Agusx1211 Agusx1211 requested a review from a team April 15, 2026 07:34

/// @inheritdoc ISapientCompact
function recoverSapientSignatureCompact(bytes32, bytes calldata) external view returns (bytes32 imageHash) {
return paused ? PAUSED_IMAGE_HASH : UNPAUSED_IMAGE_HASH;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows an integrator to use UNPAUSED_IMAGE_HASH as a valid state. If that's true, then this Sapient is effectively dictating multiple states through fixed image hashes. This is functionally equiv to #94 , but limited to 2 states.

I propose either throwing when paused or allowing arbitrary image hashes.

Comment thread src/pausable/Pausable.sol
revert ZeroAddress();
}

isOperator[initialOperators[i]] = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emit OperatorSet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants