Skip to content

feat: shutter support in dispute commiting & appeal #1994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: feat/shutter-dispute-kit
Choose a base branch
from

Conversation

kemuru
Copy link
Contributor

@kemuru kemuru commented May 15, 2025

PR-Codex overview

This PR introduces new features and updates related to the voting system, including the addition of a Shutter voting mechanism and improvements to existing components. It also corrects a typo in the heading and updates package dependencies.

Detailed summary

  • Added Shutter voting component in web/src/pages/Cases/CaseDetails/Voting/Shutter/index.tsx.
  • Introduced Commit and Fund components for Shutter voting in respective files.
  • Updated Voting to conditionally render Classic or Shutter based on dispute kit type.
  • Fixed typo in heading from "Justise" to "Justice" in web/src/pages/Resolver/index.tsx.
  • Updated import paths for OptionsContainer and JustificationArea in several files.
  • Added new utility functions for encryption and decryption in web/src/utils/shutter.ts.
  • Updated dependencies in web/package.json and yarn.lock.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • New Features

    • Introduced Shutter voting support, including secure commit and encryption mechanisms for dispute resolution.
    • Added a new voting interface that dynamically selects between "classic" and "shutter" voting based on dispute kit type.
    • Enabled cryptographic encryption and time-delayed decryption of votes using Shutter Network integration.
    • Added appeal crowdfunding UI and functionality for Shutter disputes, including funding input and confirmation popup.
  • Bug Fixes

    • Corrected import paths for several components to ensure proper module resolution.
    • Fixed a typo in the resolver page heading from "Justise as a Service" to "Justice as a Service."
  • Chores

    • Updated dependencies to include the Shutter SDK.
  • Enhancements

    • The dispute details view now displays additional information about the dispute kit in the current round.

@kemuru kemuru requested review from a team as code owners May 15, 2025 02:08
Copy link
Contributor

coderabbitai bot commented May 15, 2025

Walkthrough

The changes introduce support for a new "Shutter" dispute kit in the voting and appeal systems. This includes new React components for voting and appeal funding, utility functions for Shutter Network encryption/decryption, updated GraphQL queries, conditional rendering based on dispute kit type, and minor import path adjustments.

Changes

File(s) Change Summary
web/package.json Added the @shutter-network/shutter-sdk dependency at version ^0.0.1.
web/src/hooks/queries/useDisputeDetailsQuery.ts Modified the GraphQL query to include the disputeKit field with its id inside the currentRound object.
web/src/pages/Cases/CaseDetails/Voting/Classic/Commit.tsx
web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx
Changed the import path for OptionsContainer from the current directory to the parent directory.
web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx Changed the import path for JustificationArea from the current directory to the parent directory.
web/src/pages/Cases/CaseDetails/Voting/Shutter/Commit.tsx Added a new Commit React component implementing the commit phase for Shutter-based voting, including cryptographic commitment, encryption, blockchain interaction, and local state management.
web/src/pages/Cases/CaseDetails/Voting/Shutter/Vote.tsx Added a new Vote React component that currently returns null.
web/src/pages/Cases/CaseDetails/Voting/Shutter/index.tsx Added a new Shutter React component that orchestrates data fetching and renders the commit phase UI for Shutter-based voting, conditionally displaying the ShutterCommit component.
web/src/pages/Cases/CaseDetails/Voting/index.tsx Updated to conditionally render either the Classic or new Shutter voting components based on the dispute kit type, using a utility to determine the kit name.
web/src/utils/shutter.ts Added a new utility module for Shutter Network integration, providing encryption and decryption functions with time-delayed decryption, API interactions, and helper methods for cryptographic operations.
web/src/pages/Cases/CaseDetails/Appeal/Shutter/Fund.tsx Added a new Fund React component for appeal funding with blockchain interaction, input validation, balance checks, and UI feedback. Includes internal hooks for funding logic and state management.
web/src/pages/Cases/CaseDetails/Appeal/Shutter/index.tsx Added a new Shutter React component for appeal crowdfunding UI, managing popup state, funding amount, and rendering funding and options components with mini guide toggling.
web/src/pages/Cases/CaseDetails/Appeal/index.tsx Updated appeal rendering logic to conditionally render either Classic or new Shutter appeal components based on dispute kit type.
web/src/pages/Resolver/index.tsx Fixed a typographical error in a heading text from "Justise as a Service" to "Justice as a Service".

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ShutterComponent
    participant ShutterUtils
    participant Blockchain
    participant ShutterAPI

    User->>ShutterComponent: Initiate commit (selects vote)
    ShutterComponent->>ShutterUtils: encrypt(message)
    ShutterUtils->>ShutterAPI: fetch encryption params (POST /register_identity)
    ShutterAPI-->>ShutterUtils: returns eon key, identity, timestamp
    ShutterUtils->>ShutterUtils: encrypt message with eon key & sigma
    ShutterUtils-->>ShutterComponent: returns encryptedCommitment, identity
    ShutterComponent->>Blockchain: commit vote (includes commit hash, identity, encrypted commitment)
    Blockchain-->>ShutterComponent: transaction receipt
    ShutterComponent-->>User: UI updates (success/failure)
Loading

Suggested labels

Type: Feature🗿, Package: Web

Suggested reviewers

  • jaybuidl
  • alcercu

Poem

In the warren, code hops anew,
Shutter secrets now in view!
With cryptic keys and votes concealed,
Commitments safe, securely sealed.
Classic or Shutter, the choice is clear—
Rabbits vote with no fear.
🐇✨

Note

⚡️ AI Code Reviews for VS Code, Cursor, Windsurf

CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
Learn more here.


Note

⚡️ Faster reviews with caching

CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.
Enjoy the performance boost—your workflow just got faster.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@kemuru kemuru marked this pull request as draft May 15, 2025 02:09
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 5

🧹 Nitpick comments (8)
web/src/pages/Cases/CaseDetails/Voting/Shutter/Vote.tsx (1)

3-3: Placeholder component should be either implemented or removed before merge

Vote currently renders null, so the UI will silently fall back to the history list during the reveal phase.
If the reveal logic is not ready yet, consider:

  1. Adding a clear TODO with context / link to the follow-up ticket, or
  2. Removing the file from the PR to avoid a dead-code footprint.

This prevents future confusion and keeps the feature flag surface minimal.

web/src/pages/Cases/CaseDetails/Voting/index.tsx (2)

72-76: String-based detection of dispute-kit type is brittle

Relying on a case-insensitive includes("classic") / includes("shutter") can break once the wording changes (e.g. “Shutter DK v2”, localisation, etc.).
A safer approach is to classify through the numeric disputeKitId we already have:

-const disputeKitName = disputeKitId ? getDisputeKitName(Number(disputeKitId)) : undefined;
-const isClassicDisputeKit = disputeKitName?.toLowerCase().includes("classic") ?? false;
-const isShutterDisputeKit = disputeKitName?.toLowerCase().includes("shutter") ?? false;
+const isClassicDisputeKit = Number(disputeKitId) === 1; // dev-net mapping
+const isShutterDisputeKit = Number(disputeKitId) === 2;

…and optionally fall back to the name string only when the mapping is unknown.
This removes hidden coupling and guards against future typos.


118-120: Potential double rendering when both flags resolve to true

Although unlikely today, if isClassicDisputeKit and isShutterDisputeKit ever evaluate to true simultaneously, both voting flows will mount, leading to mixed state updates.
Switching to a mutually-exclusive else if makes the intent explicit:

-          {isClassicDisputeKit ? <Classic ... /> : null}
-          {isShutterDisputeKit ? <Shutter ... /> : null}
+          {isClassicDisputeKit ? (
+            <Classic ... />
+          ) : isShutterDisputeKit ? (
+            <Shutter ... />
+          ) : null}
web/src/utils/shutter.ts (5)

4-6: Make the decryption delay configurable instead of hard-coding 5 seconds

A fixed 5-second window may be too short in production (network latency, block finality, Shutter service delays). Expose this value via an environment variable or function parameter so it can be tuned without a redeploy.


31-79: Minor: streamline JSON parsing & log handling

fetchShutterData first reads the body as text and then performs a manual JSON.parse.
Using response.json() is simpler, avoids a second buffer allocation, and automatically throws on malformed JSON:

-const responseText = await response.text();
-
-jsonResponse = JSON.parse(responseText);
+const jsonResponse: ShutterApiResponse = await response.json();

You can still log the response status/body on error via response.clone().text().


132-140: Validate the hex string beyond prefix check

ensureHexString only prepends 0x. Adding a simple regex guards against accidental non-hex characters that could lead to cryptographic errors later:

-const prefixedHex = hexString.startsWith("0x") ? hexString : `0x${hexString}`;
+const prefixedHex = hexString.startsWith("0x") ? hexString : `0x${hexString}`;
+if (!/^0x[0-9a-fA-F]+$/.test(prefixedHex)) {
+  throw new Error(`Invalid hex string supplied: ${hexString}`);
+}

158-184: Consider returning decryptionTimestamp (and maybe sigma) from encrypt

Callers currently have no visibility into when decryption becomes possible; they must either hard-code DECRYPTION_DELAY again or poll blindly. Returning the timestamp helps UI/UX (count-down timers) and avoids duplicated logic.

-export async function encrypt(message: string): Promise<{ encryptedCommitment: string; identity: string }> {
+export async function encrypt(
+  message: string
+): Promise<{ encryptedCommitment: string; identity: string; decryptionTimestamp: number }> {-  return { encryptedCommitment, identity: identityHex };
+  return { encryptedCommitment, identity: identityHex, decryptionTimestamp };
}

192-205: Surface “too early to decrypt” to the caller instead of throwing

fetchDecryptionKey already throws a descriptive error when the timestamp hasn’t been reached. Consider returning a custom error type or status enum from decrypt so UI code can display a friendly “Please wait X seconds” message rather than a generic exception banner.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0dad7c4 and 5ac64f5.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (10)
  • web/package.json (1 hunks)
  • web/src/hooks/queries/useDisputeDetailsQuery.ts (1 hunks)
  • web/src/pages/Cases/CaseDetails/Voting/Classic/Commit.tsx (1 hunks)
  • web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx (1 hunks)
  • web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx (1 hunks)
  • web/src/pages/Cases/CaseDetails/Voting/Shutter/Commit.tsx (1 hunks)
  • web/src/pages/Cases/CaseDetails/Voting/Shutter/Vote.tsx (1 hunks)
  • web/src/pages/Cases/CaseDetails/Voting/Shutter/index.tsx (1 hunks)
  • web/src/pages/Cases/CaseDetails/Voting/index.tsx (3 hunks)
  • web/src/utils/shutter.ts (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
web/src/hooks/queries/useDisputeDetailsQuery.ts (1)
Learnt from: Harman-singh-waraich
PR: kleros/kleros-v2#1703
File: web/src/hooks/queries/usePopulatedDisputeData.ts:58-61
Timestamp: 2024-10-14T13:58:25.708Z
Learning: In `web/src/hooks/queries/usePopulatedDisputeData.ts`, the query and subsequent logic only execute when `disputeData.dispute?.arbitrableChainId` and `disputeData.dispute?.externalDisputeId` are defined, so `initialContext` properties based on these values are safe to use without additional null checks.
🧬 Code Graph Analysis (2)
web/src/pages/Cases/CaseDetails/Voting/index.tsx (1)
web/src/consts/index.ts (1)
  • getDisputeKitName (46-56)
web/src/pages/Cases/CaseDetails/Voting/Shutter/index.tsx (1)
web/src/hooks/queries/useDisputeDetailsQuery.ts (1)
  • useDisputeDetailsQuery (46-62)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: SonarCloud
🔇 Additional comments (5)
web/package.json (1)

97-97: Verify Shutter SDK dependency version
Please confirm that @shutter-network/shutter-sdk@^0.0.1 is published to npm and aligns with the SDK’s release schedule. If it lacks built-in TypeScript definitions, consider adding or adjusting the version range.

web/src/hooks/queries/useDisputeDetailsQuery.ts (1)

31-33: Include disputeKit ID in the DisputeDetails query
Fetching disputeKit { id } enables downstream UI logic to branch based on the dispute kit type. Ensure you’ve rerun GraphQL codegen so the generated DisputeDetailsQuery types include this new field.

web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx (1)

12-12: Update import path for OptionsContainer
Import path changed to reference the centralized OptionsContainer in the parent directory, matching the updated component structure.

web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx (1)

22-22: Update import path for JustificationArea
Import path adjusted to pull JustificationArea from the shared directory above, keeping Classic and Shutter flows consistent.

web/src/pages/Cases/CaseDetails/Voting/Classic/Commit.tsx (1)

16-16: Update import path for OptionsContainer
Switched to the parent-directory import for OptionsContainer, consolidating component usage across voting flows.

Comment on lines +20 to +24
const { data: drawData, refetch } = useDrawQuery(address?.toLowerCase(), id, disputeData?.dispute?.currentRound.id);
const { isCommitPeriod, commited } = useVotingContext();
const voteIDs = useMemo(() => drawData?.draws?.map((draw) => draw.voteIDNum) as string[], [drawData]);

return id && isCommitPeriod && !commited ? <ShutterCommit {...{ arbitrable, setIsOpen, voteIDs, refetch }} /> : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

voteIDs can be undefined, causing a runtime crash downstream

voteIDs is typed as string[], yet when drawData hasn’t loaded the expression evaluates to undefined.
Commit.tsx immediately calls voteIDs.map(...), so an undefined value will throw.

-const voteIDs = useMemo(() => drawData?.draws?.map((draw) => draw.voteIDNum) as string[], [drawData]);
+const voteIDs = useMemo(
+  () => drawData?.draws?.map((d) => d.voteIDNum) ?? [],
+  [drawData]
+);

Additionally, guard the render:

-return id && isCommitPeriod && !commited ? <ShutterCommit ... /> : null;
+if (!id || !isCommitPeriod || commited || voteIDs.length === 0) return null;
+return <ShutterCommit {...{ arbitrable, setIsOpen, voteIDs, refetch }} />;

This prevents crashes and avoids dispatching empty commits.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const { data: drawData, refetch } = useDrawQuery(address?.toLowerCase(), id, disputeData?.dispute?.currentRound.id);
const { isCommitPeriod, commited } = useVotingContext();
const voteIDs = useMemo(() => drawData?.draws?.map((draw) => draw.voteIDNum) as string[], [drawData]);
return id && isCommitPeriod && !commited ? <ShutterCommit {...{ arbitrable, setIsOpen, voteIDs, refetch }} /> : null;
const { data: drawData, refetch } = useDrawQuery(
address?.toLowerCase(),
id,
disputeData?.dispute?.currentRound.id
);
const { isCommitPeriod, commited } = useVotingContext();
const voteIDs = useMemo(
() => drawData?.draws?.map((d) => d.voteIDNum) ?? [],
[drawData]
);
if (!id || !isCommitPeriod || commited || voteIDs.length === 0) return null;
return <ShutterCommit {...{ arbitrable, setIsOpen, voteIDs, refetch }} />;
🤖 Prompt for AI Agents
In web/src/pages/Cases/CaseDetails/Voting/Shutter/index.tsx around lines 20 to
24, the variable voteIDs is typed as string[] but can be undefined if drawData
is not loaded, causing runtime crashes when voteIDs.map is called downstream.
Fix this by defaulting voteIDs to an empty array when drawData or drawData.draws
is undefined. Also, add a guard in the return statement to ensure voteIDs is not
empty before rendering ShutterCommit to prevent crashes and avoid dispatching
empty commits.

Comment on lines +41 to +70
const handleCommit = useCallback(
async (choice: bigint) => {
const message = { message: saltKey };
const rawSalt = !isUndefined(signingAccount)
? await signingAccount.signMessage(message)
: await (async () => {
const account = await generateSigningAccount();
return await account?.signMessage(message);
})();
if (isUndefined(rawSalt)) return;

const salt = keccak256(rawSalt);
setSalt(JSON.stringify({ salt, choice: choice.toString(), justification }));

const encodedMessage = `${choice.toString()}${SEPARATOR}${salt}${SEPARATOR}${justification}`;
const { encryptedCommitment, identity } = await encrypt(encodedMessage);

const commitHash = keccak256(
encodePacked(["uint256", "uint256", "string"], [choice, BigInt(salt), justification])
);

const { request } = await simulateDisputeKitShutterCastCommit(wagmiConfig, {
args: [parsedDisputeID, parsedVoteIDs, commitHash, identity as `0x${string}`, encryptedCommitment],
});
if (walletClient && publicClient) {
await wrapWithToast(async () => await walletClient.writeContract(request), publicClient).then(({ status }) => {
setIsOpen(status);
});
}
refetch();
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Wrap cryptographic & chain calls in a try/catch and validate user input

handleCommit performs several async steps (keygen, encryption, simulation, tx write) but any rejected promise will bubble up unhandled, leaving the UI in an inconsistent state.

1. Wrap the body in try { ... } catch (err) { /* toast error */ }.
2. Reject justifications containing the separator , otherwise the packed string will be ambiguously parsed during reveal.

   const handleCommit = useCallback(
     async (choice: bigint) => {
-      const message = { message: saltKey };
+      try {
+        if (justification.includes(SEPARATOR))
+          throw new Error(`Justification cannot contain "${SEPARATOR}"`);
+
+        const message = { message: saltKey };
        ...
-      if (walletClient && publicClient) {
-        await wrapWithToast(async () => await walletClient.writeContract(request), publicClient).then(({ status }) => {
-          setIsOpen(status);
-        });
-      }
-      refetch();
+        if (walletClient && publicClient) {
+          await wrapWithToast(
+            async () => await walletClient.writeContract(request),
+            publicClient
+          ).then(({ status }) => setIsOpen(status));
+        }
+        refetch();
+      } catch (err) {
+        console.error(err);
+        // Replace with your centralized toast helper
+        wrapWithToast(Promise.reject(err), publicClient);
+      }
     },

This hardens the commit path and improves UX on failures.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const handleCommit = useCallback(
async (choice: bigint) => {
const message = { message: saltKey };
const rawSalt = !isUndefined(signingAccount)
? await signingAccount.signMessage(message)
: await (async () => {
const account = await generateSigningAccount();
return await account?.signMessage(message);
})();
if (isUndefined(rawSalt)) return;
const salt = keccak256(rawSalt);
setSalt(JSON.stringify({ salt, choice: choice.toString(), justification }));
const encodedMessage = `${choice.toString()}${SEPARATOR}${salt}${SEPARATOR}${justification}`;
const { encryptedCommitment, identity } = await encrypt(encodedMessage);
const commitHash = keccak256(
encodePacked(["uint256", "uint256", "string"], [choice, BigInt(salt), justification])
);
const { request } = await simulateDisputeKitShutterCastCommit(wagmiConfig, {
args: [parsedDisputeID, parsedVoteIDs, commitHash, identity as `0x${string}`, encryptedCommitment],
});
if (walletClient && publicClient) {
await wrapWithToast(async () => await walletClient.writeContract(request), publicClient).then(({ status }) => {
setIsOpen(status);
});
}
refetch();
const handleCommit = useCallback(
async (choice: bigint) => {
try {
// 2. Validate that justification does not contain our separator
if (justification.includes(SEPARATOR)) {
throw new Error(`Justification cannot contain "${SEPARATOR}"`);
}
const message = { message: saltKey };
const rawSalt = !isUndefined(signingAccount)
? await signingAccount.signMessage(message)
: await (async () => {
const account = await generateSigningAccount();
return await account?.signMessage(message);
})();
if (isUndefined(rawSalt)) return;
const salt = keccak256(rawSalt);
setSalt(JSON.stringify({ salt, choice: choice.toString(), justification }));
const encodedMessage = `${choice.toString()}${SEPARATOR}${salt}${SEPARATOR}${justification}`;
const { encryptedCommitment, identity } = await encrypt(encodedMessage);
const commitHash = keccak256(
encodePacked(["uint256", "uint256", "string"], [choice, BigInt(salt), justification])
);
const { request } = await simulateDisputeKitShutterCastCommit(wagmiConfig, {
args: [parsedDisputeID, parsedVoteIDs, commitHash, identity as `0x${string}`, encryptedCommitment],
});
if (walletClient && publicClient) {
await wrapWithToast(
async () => await walletClient.writeContract(request),
publicClient
).then(({ status }) => setIsOpen(status));
}
refetch();
} catch (err) {
console.error(err);
// TODO: replace with your centralized toast/error‐handling helper
wrapWithToast(Promise.reject(err), publicClient);
}
},
[
saltKey,
signingAccount,
generateSigningAccount,
justification,
SEPARATOR,
wagmiConfig,
parsedDisputeID,
parsedVoteIDs,
walletClient,
publicClient,
]
);
🤖 Prompt for AI Agents
In web/src/pages/Cases/CaseDetails/Voting/Shutter/Commit.tsx lines 41 to 70, the
handleCommit function lacks error handling for its async cryptographic and
blockchain calls, risking unhandled promise rejections and inconsistent UI
state. Wrap the entire async function body in a try/catch block, and in the
catch block, display a toast error message to inform the user. Additionally,
before proceeding, validate the justification input to reject any strings
containing the separator character to prevent ambiguous parsing later.

Comment on lines +97 to +117
const responseText = await response.text();

// Try to parse the error response even if the request failed
let jsonResponse;
try {
jsonResponse = JSON.parse(responseText);
} catch (error) {
throw new Error(`Failed to parse API response as JSON: ${responseText}`);
}

// Handle the "too early" error case specifically
if (!response.ok) {
if (jsonResponse?.description?.includes("timestamp not reached yet")) {
throw new Error(
`Cannot decrypt yet: The decryption timestamp has not been reached.\n` +
`Please wait at least ${DECRYPTION_DELAY} seconds after encryption before attempting to decrypt.\n` +
`Error details: ${jsonResponse.description}`
);
}
throw new Error(`API request failed with status ${response.status}: ${responseText}`);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add a try…catch around fetchDecryptionKey network call

A network failure (e.g., offline client) will currently throw an unhandled promise rejection. Wrap the fetch in try…catch, mirror the structured error handling used in fetchShutterData, and re-throw with context so callers can surface user-friendly messages.

🤖 Prompt for AI Agents
In web/src/utils/shutter.ts around lines 97 to 117, the fetchDecryptionKey
network call lacks a try-catch block, causing unhandled promise rejections on
network failures. Wrap the fetchDecryptionKey call in a try-catch block, catch
any errors, and re-throw a new Error with additional context about the network
failure. This will align error handling with fetchShutterData and allow callers
to display user-friendly error messages.

Comment on lines +89 to +94
const response = await fetch(`https://shutter-api.shutter.network/api/get_decryption_key?identity=${identity}`, {
method: "GET",
headers: {
accept: "application/json",
},
});
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

URL-encode the identity query parameter

identity contains the 0x prefix and hex data. Embedding it directly in the URL risks breaking the query string if additional special characters ever appear.

-const response = await fetch(`https://shutter-api.shutter.network/api/get_decryption_key?identity=${identity}`, {
+const query = new URLSearchParams({ identity }).toString();
+const response = await fetch(`https://shutter-api.shutter.network/api/get_decryption_key?${query}`, {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const response = await fetch(`https://shutter-api.shutter.network/api/get_decryption_key?identity=${identity}`, {
method: "GET",
headers: {
accept: "application/json",
},
});
const query = new URLSearchParams({ identity }).toString();
const response = await fetch(
`https://shutter-api.shutter.network/api/get_decryption_key?${query}`,
{
method: "GET",
headers: {
accept: "application/json",
},
}
);
🤖 Prompt for AI Agents
In web/src/utils/shutter.ts around lines 89 to 94, the identity query parameter
is directly embedded in the URL without encoding, which risks breaking the query
string if special characters appear. Fix this by URL-encoding the identity value
using encodeURIComponent before appending it to the URL in the fetch call.

Comment on lines +146 to +151
function generateRandomBytes32(): `0x${string}` {
return ("0x" +
window.crypto
.getRandomValues(new Uint8Array(32))
.reduce((acc, byte) => acc + byte.toString(16).padStart(2, "0"), "")) as Hex;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

generateRandomBytes32 breaks during SSR / Node – provide a fallback

window.crypto is undefined in server-side rendering or Node tests, throwing a ReferenceError. A cross-platform implementation keeps the function usable everywhere:

-function generateRandomBytes32(): `0x${string}` {
-  return ("0x" +
-    window.crypto
-      .getRandomValues(new Uint8Array(32))
-      .reduce((acc, byte) => acc + byte.toString(16).padStart(2, "0"), "")) as Hex;
+function generateRandomBytes32(): `0x${string}` {
+  let bytes: Uint8Array;
+  if (typeof window !== "undefined" && window.crypto?.getRandomValues) {
+    bytes = window.crypto.getRandomValues(new Uint8Array(32));
+  } else {
+    // Node.js / SSR fallback
+    // eslint-disable-next-line @typescript-eslint/no-var-requires
+    bytes = require("crypto").randomBytes(32);
+  }
+  return ("0x" +
+    Array.from(bytes)
+      .map((b) => b.toString(16).padStart(2, "0"))
+      .join("")) as Hex;
}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
function generateRandomBytes32(): `0x${string}` {
return ("0x" +
window.crypto
.getRandomValues(new Uint8Array(32))
.reduce((acc, byte) => acc + byte.toString(16).padStart(2, "0"), "")) as Hex;
}
function generateRandomBytes32(): `0x${string}` {
let bytes: Uint8Array;
if (typeof window !== "undefined" && window.crypto?.getRandomValues) {
bytes = window.crypto.getRandomValues(new Uint8Array(32));
} else {
// Node.js / SSR fallback
// eslint-disable-next-line @typescript-eslint/no-var-requires
bytes = require("crypto").randomBytes(32);
}
return ("0x" +
Array.from(bytes)
.map((b) => b.toString(16).padStart(2, "0"))
.join("")) as Hex;
}
🤖 Prompt for AI Agents
In web/src/utils/shutter.ts around lines 146 to 151, the generateRandomBytes32
function uses window.crypto which is undefined in server-side rendering or Node
environments, causing a ReferenceError. Modify the function to check if
window.crypto is available; if not, use Node's crypto module as a fallback to
generate the random bytes. This ensures the function works correctly in both
browser and server contexts.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 5

🧹 Nitpick comments (6)
web/src/pages/Cases/CaseDetails/Appeal/index.tsx (1)

54-55: Consider using an enum for dispute kit types instead of string checks.

Using string inclusion checks (includes()) for determining dispute kit types could be brittle if future dispute kit names contain these substrings.

A more robust approach would be to use an enum or specific equality checks:

// In consts/index.ts
export enum DisputeKitType {
  CLASSIC = "classic",
  SHUTTER = "shutter",
  // future types...
}

export const getDisputeKitType = (disputeKitName: string): DisputeKitType | undefined => {
  if (disputeKitName.includes("classic")) return DisputeKitType.CLASSIC;
  if (disputeKitName.includes("shutter")) return DisputeKitType.SHUTTER;
  return undefined;
};

// Then in your component:
const disputeKitType = disputeKitName ? getDisputeKitType(disputeKitName) : undefined;

Then use a switch statement for rendering:

switch (disputeKitType) {
  case DisputeKitType.CLASSIC:
    return <Classic {...props} />;
  case DisputeKitType.SHUTTER:
    return <Shutter {...props} />;
  default:
    return <UnsupportedDisputeKit name={disputeKitName} />;
}
web/src/pages/Cases/CaseDetails/Appeal/Shutter/index.tsx (3)

44-44: Consider adding better type safety for the amount prop.

The casting of amount to `${number}` is a workaround that could lead to runtime issues if the string doesn't contain a valid number.

Instead of casting, validate and convert the string to a proper number type:

- <Fund amount={amount as `${number}`} setAmount={setAmount} setIsOpen={setIsPopupOpen} />
+ <Fund 
+   amount={amount && !isNaN(Number(amount)) ? amount : "0"} 
+   setAmount={setAmount} 
+   setIsOpen={setIsPopupOpen} 
+ />

Alternatively, modify the Fund component to accept a string directly and handle the conversion internally.


23-33: Add error handling for the popup and context states.

The component doesn't handle potential errors or loading states from the context hook or when opening/closing the popup.

Consider adding error boundaries or state handling:

const Shutter: React.FC<IShutter> = ({ isAppealMiniGuideOpen, toggleAppealMiniGuide }) => {
  const [isPopupOpen, setIsPopupOpen] = useState(false);
  const [amount, setAmount] = useState("");
- const { selectedOption } = useSelectedOptionContext();
+ const { selectedOption, error: contextError } = useSelectedOptionContext();
+
+ if (contextError) return <ErrorMessage message="Failed to load appeal options" />;

42-44: Add better UI feedback and validation for the funding process.

The component shows limited visual feedback about the funding constraints or validation requirements.

Consider enhancing the UI with more informative labels:

- <label>The jury decision is appealed when two options are fully funded.</label>
+ <label>
+   The jury decision is appealed when two options are fully funded. 
+   {selectedOption && (
+     <span> You are funding option: <strong>{selectedOption.title}</strong></span>
+   )}
+ </label>
web/src/pages/Cases/CaseDetails/Appeal/Shutter/Fund.tsx (2)

52-62: Simplify complex conditional logic in useNeedFund hook.

The useNeedFund hook contains complex nested conditions that are difficult to read and maintain.

Refactor for better readability:

const useNeedFund = () => {
  const { loserSideCountdown } = useCountdownContext();
  const { fundedChoices, winningChoice } = useFundingContext();
  
  // Check if countdown is still active
  if ((loserSideCountdown ?? 0) > 0) return true;
  
  // Check if there are funded choices but winning choice isn't funded
  if (isUndefined(fundedChoices) || isUndefined(winningChoice)) return false;
  if (fundedChoices.length === 0) return false;
  
  return !fundedChoices.includes(winningChoice);
};

112-143: Add feedback for transaction confirmation.

The component shows the transaction is in progress but doesn't provide feedback about transaction confirmation or mining status.

Add a transaction status indicator:

<StyledButton
  disabled={isFundDisabled}
  isLoading={(isSending || isLoading) && !insufficientBalance}
- text={isDisconnected ? "Connect to Fund" : "Fund"}
+ text={isDisconnected ? "Connect to Fund" : isSending ? "Transaction pending..." : "Fund"}
  onClick={() => {
    // ...existing code
  }}
/>

Consider also adding a transaction hash display and link to block explorer once the transaction is submitted.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)

📥 Commits

Reviewing files that changed from the base of the PR and between 5ac64f5 and 8a5b2f4.

📒 Files selected for processing (4)
  • web/src/pages/Cases/CaseDetails/Appeal/Shutter/Fund.tsx (1 hunks)
  • web/src/pages/Cases/CaseDetails/Appeal/Shutter/index.tsx (1 hunks)
  • web/src/pages/Cases/CaseDetails/Appeal/index.tsx (2 hunks)
  • web/src/pages/Resolver/index.tsx (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • web/src/pages/Resolver/index.tsx
🧰 Additional context used
🧬 Code Graph Analysis (2)
web/src/pages/Cases/CaseDetails/Appeal/Shutter/Fund.tsx (3)
web/src/pages/Home/TopJurors/index.tsx (1)
  • StyledLabel (39-41)
web/src/hooks/useClassicAppealContext.tsx (3)
  • useCountdownContext (118-118)
  • useFundingContext (120-120)
  • useSelectedOptionContext (119-119)
web/src/components/ErrorButtonMessage.tsx (1)
  • ErrorButtonMessage (3-11)
web/src/pages/Cases/CaseDetails/Appeal/Shutter/index.tsx (2)
web/src/hooks/useClassicAppealContext.tsx (1)
  • useSelectedOptionContext (119-119)
web/src/pages/Cases/CaseDetails/Appeal/index.tsx (2)
  • AppealHeader (28-41)
  • StyledTitle (43-46)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: SonarCloud

Comment on lines +52 to +53
const disputeKitId = disputeData?.dispute?.currentRound?.disputeKit?.id;
const disputeKitName = disputeKitId ? getDisputeKitName(Number(disputeKitId))?.toLowerCase() : "";
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add error handling for missing dispute kit data.

The code doesn't handle potential errors when fetching dispute data or if the disputeKitId is missing. This could lead to undefined behavior.

Add error handling and fallback:

- const disputeKitId = disputeData?.dispute?.currentRound?.disputeKit?.id;
+ const disputeKitId = disputeData?.dispute?.currentRound?.disputeKit?.id;
+ const isLoading = !disputeData;
+ const hasError = !disputeKitId && !isLoading;

Then in your rendering logic:

if (isLoading) return <LoadingIndicator />;
if (hasError) return <ErrorMessage message="Failed to determine dispute kit type" />;
🤖 Prompt for AI Agents
In web/src/pages/Cases/CaseDetails/Appeal/index.tsx around lines 52 to 53, add
error handling for cases where dispute data or disputeKitId is missing.
Introduce state variables or flags to track loading and error states when
fetching dispute data. Implement conditional rendering to show a loading
indicator while data is loading and an error message if fetching fails or
disputeKitId is undefined, ensuring the component handles these scenarios
gracefully.

Comment on lines +50 to 56
const { id } = useParams();
const { data: disputeData } = useDisputeDetailsQuery(id);
const disputeKitId = disputeData?.dispute?.currentRound?.disputeKit?.id;
const disputeKitName = disputeKitId ? getDisputeKitName(Number(disputeKitId))?.toLowerCase() : "";
const isClassicDisputeKit = disputeKitName?.includes("classic") ?? false;
const isShutterDisputeKit = disputeKitName?.includes("shutter") ?? false;

Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add a fallback rendering for unsupported dispute kit types.

You've implemented conditional rendering for "classic" and "shutter" dispute kits, but there's no fallback if neither condition is met. This could result in nothing being rendered during the appeal period if a new dispute kit type is introduced.

Consider adding an else condition or default case:

{isClassicDisputeKit && (
  <Classic isAppealMiniGuideOpen={isAppealMiniGuideOpen} toggleAppealMiniGuide={toggleAppealMiniGuide} />
)}
{isShutterDisputeKit && (
  <Shutter isAppealMiniGuideOpen={isAppealMiniGuideOpen} toggleAppealMiniGuide={toggleAppealMiniGuide} />
)}
+{!isClassicDisputeKit && !isShutterDisputeKit && (
+  <div>Unsupported dispute kit type: {disputeKitName}</div>
+)}

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In web/src/pages/Cases/CaseDetails/Appeal/index.tsx around lines 50 to 56, the
code checks for "classic" and "shutter" dispute kits but lacks a fallback for
unsupported or new dispute kit types. Add a default rendering case or an else
condition to handle situations where the dispute kit name does not include
"classic" or "shutter" to ensure something meaningful is rendered during the
appeal period.

Comment on lines +86 to +145
const Fund: React.FC<IFund> = ({ amount, setAmount, setIsOpen }) => {
const needFund = useNeedFund();
const { address, isDisconnected } = useAccount();
const { data: balance } = useBalance({
query: { refetchInterval: REFETCH_INTERVAL },
address,
});
const publicClient = usePublicClient();
const [isSending, setIsSending] = useState(false);
const [debouncedAmount, setDebouncedAmount] = useState<`${number}` | "">("");
useDebounce(() => setDebouncedAmount(amount), 500, [amount]);
const parsedAmount = useParsedAmount(debouncedAmount as `${number}`);
const insufficientBalance = useMemo(() => balance && balance.value < parsedAmount, [balance, parsedAmount]);
const { fundAppealConfig, fundAppeal, isLoading, isError } = useFundAppeal(parsedAmount, insufficientBalance);
const isFundDisabled = useMemo(
() =>
isDisconnected ||
isSending ||
!balance ||
insufficientBalance ||
Number(parsedAmount) <= 0 ||
isError ||
isLoading,
[isDisconnected, isSending, balance, insufficientBalance, parsedAmount, isError, isLoading]
);

return needFund ? (
<Container>
<StyledLabel>How much ETH do you want to contribute?</StyledLabel>
<StyledField
type="number"
value={amount}
onChange={(e) => setAmount(e.target.value)}
placeholder="Amount to fund"
/>
<EnsureChain>
<div>
<StyledButton
disabled={isFundDisabled}
isLoading={(isSending || isLoading) && !insufficientBalance}
text={isDisconnected ? "Connect to Fund" : "Fund"}
onClick={() => {
if (fundAppeal && fundAppealConfig && publicClient) {
setIsSending(true);
wrapWithToast(async () => await fundAppeal(fundAppealConfig.request), publicClient)
.then((res) => setIsOpen(res.status))
.finally(() => setIsSending(false));
}
}}
/>
{insufficientBalance && (
<ErrorButtonMessage>
<ClosedCircleIcon /> Insufficient balance
</ErrorButtonMessage>
)}
</div>
</EnsureChain>
</Container>
) : null;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add unit tests for the Fund component.

This component handles critical functionality (financial transactions) but doesn't appear to have accompanying test coverage.

Create unit tests that verify:

  1. The component renders correctly when funding is needed
  2. The component doesn't render when funding isn't needed
  3. The button is disabled under appropriate conditions
  4. Transaction execution is triggered correctly
  5. Error states are handled properly

Consider using mock providers for the web3 interactions to facilitate testing.

🤖 Prompt for AI Agents
In web/src/pages/Cases/CaseDetails/Appeal/Shutter/Fund.tsx around lines 86 to
145, the Fund component lacks unit tests. Add tests to verify it renders
correctly when funding is needed and does not render otherwise. Test that the
fund button is disabled under the right conditions such as disconnection,
insufficient balance, or loading states. Also, verify that clicking the button
triggers the transaction execution logic properly and that error states display
the correct messages. Use mock providers to simulate web3 hooks like useAccount,
useBalance, and useFundAppeal for isolated testing.

Comment on lines +97 to +98
const parsedAmount = useParsedAmount(debouncedAmount as `${number}`);
const insufficientBalance = useMemo(() => balance && balance.value < parsedAmount, [balance, parsedAmount]);
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add input validation for the amount field.

The code parses the amount without validating the input string format, which could lead to issues with invalid inputs.

Add validation before parsing:

- const parsedAmount = useParsedAmount(debouncedAmount as `${number}`);
+ const isValidAmount = debouncedAmount !== "" && !isNaN(Number(debouncedAmount));
+ const parsedAmount = isValidAmount ? useParsedAmount(debouncedAmount as `${number}`) : BigInt(0);
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const parsedAmount = useParsedAmount(debouncedAmount as `${number}`);
const insufficientBalance = useMemo(() => balance && balance.value < parsedAmount, [balance, parsedAmount]);
const isValidAmount = debouncedAmount !== "" && !isNaN(Number(debouncedAmount));
const parsedAmount = isValidAmount
? useParsedAmount(debouncedAmount as `${number}`)
: BigInt(0);
const insufficientBalance = useMemo(
() => balance && balance.value < parsedAmount,
[balance, parsedAmount]
);
🤖 Prompt for AI Agents
In web/src/pages/Cases/CaseDetails/Appeal/Shutter/Fund.tsx around lines 97 to
98, the amount input is parsed without validating its format, which can cause
errors with invalid inputs. Add input validation to check that debouncedAmount
matches the expected numeric string pattern before calling useParsedAmount. If
the input is invalid, handle it appropriately (e.g., set parsedAmount to zero or
show an error) to prevent parsing errors and ensure robust behavior.

Comment on lines +128 to +134
if (fundAppeal && fundAppealConfig && publicClient) {
setIsSending(true);
wrapWithToast(async () => await fundAppeal(fundAppealConfig.request), publicClient)
.then((res) => setIsOpen(res.status))
.finally(() => setIsSending(false));
}
}}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Improve error handling during transaction execution.

The transaction execution has minimal error handling, and errors might not be properly communicated to users.

Enhance the error handling:

onClick={() => {
  if (fundAppeal && fundAppealConfig && publicClient) {
    setIsSending(true);
    wrapWithToast(async () => await fundAppeal(fundAppealConfig.request), publicClient)
      .then((res) => setIsOpen(res.status))
+     .catch((error) => {
+       console.error("Transaction failed:", error);
+       // Display user-friendly error message
+     })
      .finally(() => setIsSending(false));
  }
}}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if (fundAppeal && fundAppealConfig && publicClient) {
setIsSending(true);
wrapWithToast(async () => await fundAppeal(fundAppealConfig.request), publicClient)
.then((res) => setIsOpen(res.status))
.finally(() => setIsSending(false));
}
}}
if (fundAppeal && fundAppealConfig && publicClient) {
setIsSending(true);
wrapWithToast(async () => await fundAppeal(fundAppealConfig.request), publicClient)
.then((res) => setIsOpen(res.status))
.catch((error) => {
console.error("Transaction failed:", error);
// Display user-friendly error message
})
.finally(() => setIsSending(false));
}
}}
🤖 Prompt for AI Agents
In web/src/pages/Cases/CaseDetails/Appeal/Shutter/Fund.tsx around lines 128 to
134, the current transaction execution lacks robust error handling and may fail
to inform users of errors. Modify the promise chain to catch any errors from
wrapWithToast and handle them appropriately, such as displaying an error message
or notification to the user. Ensure setIsSending(false) is called in all cases
to reset the loading state, and update the UI to reflect error states clearly.

@kemuru kemuru changed the title feat: shutter support in dispute commiting feat: shutter support in dispute commiting & appeal May 15, 2025
@jaybuidl jaybuidl linked an issue May 15, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shutter integration: Encrypt vote with the Shutter API
2 participants