> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sui Multisig with Para

> Create a native Sui multisig, sign as a Para member, and combine signatures

export const Link = ({href, label, newTab = false}) => {
  const [isHovered, setIsHovered] = useState(false);
  return <a href={href} target={newTab ? '_blank' : '_self'} rel={newTab ? 'noopener noreferrer' : undefined} className="not-prose inline-block relative text-black font-semibold cursor-pointer border-b-0 no-underline" onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>
      {label}
      <span className={`absolute left-0 bottom-0 w-full rounded-sm bg-gradient-to-r from-orange-600 to-purple-600 transition-all duration-300 ${isHovered ? 'h-0.5' : 'h-px'}`} />
    </a>;
};

export const Card = ({imgUrl, title, description, href, horizontal = false, newTab = false}) => {
  const [isHovered, setIsHovered] = useState(false);
  const handleClick = e => {
    e.preventDefault();
    if (newTab) {
      window.open(href, '_blank', 'noopener,noreferrer');
    } else {
      window.location.href = href;
    }
  };
  return <div className={`not-prose relative my-2 p-[1px] rounded-xl transition-all duration-300 ${isHovered ? 'bg-gradient-to-r from-[#FF4E00] to-[#874AE3]' : 'bg-gray-200'}`} onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>
      <a href={href} onClick={handleClick} className={`not-prose flex ${horizontal ? 'flex-row' : 'flex-col'} font-normal h-full bg-white overflow-hidden w-full cursor-pointer rounded-[11px] no-underline`}>
        {imgUrl && <div className={`relative overflow-hidden flex-shrink-0 ${horizontal ? 'w-[30%] rounded-l-[11px]' : 'w-full'}`} onClick={e => e.stopPropagation()}>
            <img src={imgUrl} alt={title} className="w-full h-full object-cover pointer-events-none select-none" draggable="false" />
            <div className="absolute inset-0 pointer-events-none" />
          </div>}
        <div className={`flex-grow px-6 py-5 ${horizontal ? 'w-[70%]' : 'w-full'} flex flex-col ${horizontal && imgUrl ? 'justify-center' : 'justify-start'}`}>
          {title && <h2 className="font-semibold text-base text-gray-800 m-0">{title}</h2>}
          {description && <div className={`font-normal text-gray-500 re leading-6 ${horizontal || !imgUrl ? 'mt-0' : 'mt-1'}`}>
              <p className="m-0 text-xs">{description}</p>
            </div>}
        </div>
      </a>
    </div>;
};

Sui has [native multisig](https://docs.sui.io/concepts/cryptography/transaction-auth/multisig) support: a k-of-n set of members, each with a weight, that together produce one combined signature once the participating members' weights reach a threshold. Para's Sui integration lets a Para MPC wallet be one member of a multisig.

<Card title="Setup Sui Libraries First" description="You must complete the Sui library setup before using multisig" href="/v3/react/guides/web3-operations/sui/setup-libraries" horizontal />

## How it works

A Sui multisig is fully defined by its **members** (each a public key + `weight`) and a **`threshold`**. Deriving its address is a pure, offline operation. Signing is a three-step flow:

1. Each participating member signs the **same** transaction or message bytes independently, producing a *partial* signature.
2. The partials are **combined** into a single multisig signature.
3. The combined signature is submitted alongside the transaction bytes (or verified off-chain).

<Info>Multisigs are k-of-n with up to 10 members, per-member `weight` (1–255), and a `threshold` (the summed weight required). The multisig has its own address, distinct from any member's.</Info>

## With the hook

[`useParaSuiMultiSigSigner`](/v3/react/guides/hooks/use-para-sui-multisig-signer) returns a signer that bundles the whole flow. Pass the co-signers as `otherMembers`; the Para member is added automatically.

```tsx theme={null}
import { useMemo } from "react";
import { useParaSuiMultiSigSigner } from "@getpara/react-sdk";
import { Ed25519Keypair } from "@mysten/sui/keypairs/ed25519";

function ParaMultiSig() {
  const coSigner = useMemo(() => new Ed25519Keypair(), []);

  const { multiSigSigner } = useParaSuiMultiSigSigner({
    otherMembers: [{ publicKey: coSigner.getPublicKey(), weight: 1 }],
    threshold: 2,
  });

  const sign = async () => {
    if (!multiSigSigner) return;

    const msg = new TextEncoder().encode("gm from a Para multisig");

    // Each member signs the same bytes independently.
    const { signature: paraPartial } = await multiSigSigner.signPersonalMessage(msg);
    const { signature: coPartial } = await coSigner.signPersonalMessage(msg);

    // Combine, then verify or submit.
    const combined = multiSigSigner.combine([paraPartial, coPartial]);
    const ok = await multiSigSigner.verifyPersonalMessage(msg, combined);

    console.log("Multisig address:", multiSigSigner.address);
    console.log("Valid:", ok);
  };

  return <button onClick={sign}>Sign with multisig</button>;
}
```

For a transaction, use `multiSigSigner.signTransaction(bytes)` / `verifyTransaction`, and set the transaction's `sender` to `multiSigSigner.address`.

## With the helper functions

The same flow is available as framework-agnostic functions from `@getpara/sui-sdk-integration`, for non-React code or when you only have some members locally:

```typescript theme={null}
import { useClient } from "@getpara/react-sdk";
import {
  getParaSuiMultiSigMember,
  getSuiMultiSigAddress,
  combineSuiMultiSigSignatures,
  signSuiMultiSigTransactionWithPara,
} from "@getpara/sui-sdk-integration";
import { Ed25519Keypair } from "@mysten/sui/keypairs/ed25519";

const para = useClient();
const coSigner = new Ed25519Keypair();

// Members: the Para wallet (weight 1) + a co-signer (weight 1), 2-of-2.
const members = [
  getParaSuiMultiSigMember({ para, weight: 1 }),
  { publicKey: coSigner.getPublicKey(), weight: 1 },
];
const threshold = 2;

// The multisig address (offline).
const address = getSuiMultiSigAddress({ members, threshold });

// Each member signs the transaction bytes, then combine.
const paraPartial = await signSuiMultiSigTransactionWithPara({ para, transactionBytes });
const { signature: coPartial } = await coSigner.signTransaction(transactionBytes);
const combined = combineSuiMultiSigSignatures({ members, threshold, signatures: [paraPartial, coPartial] });
```

<Note>
  Only signatures from members whose combined weight meets the `threshold` are required, and the order does not matter. `createParaSuiMultiSigSigner` (used by the hook) accepts either a `paraSigner` from `useParaSuiSigner` or a `para` instance directly.
</Note>

## Reference

<CardGroup cols={2}>
  <Card title="useParaSuiMultiSigSigner" description="The multisig hook reference" href="/v3/references/hooks/useParaSuiMultiSigSigner" icon="code" />

  <Card title="Sui multisig (Mysten docs)" description="Native multisig concepts on Sui" href="https://docs.sui.io/concepts/cryptography/transaction-auth/multisig" icon="book" />
</CardGroup>
