Skip to main content

multisig

Offline multisig escrow for Bitcoin, EVM Safe accounts, and Monero.

multisig builds and verifies funding targets, settlement plans, PSBTs, Safe calldata, Monero settlement plans, and signed approval tokens without connecting to a node, RPC endpoint, or wallet. It never accepts private keys, private view keys, wallet files, seed phrases, or multisig secret shares.

Distribution: multisig
Python import: multisig_escrow
Version: 0.1.0

Install

pip install multisig
pip install "multisig[bitcoin]"
pip install "multisig[evm]"
pip install "multisig[monero]"

Python 3.11 or newer. The core package has no runtime dependencies. Chain support is optional and imported lazily.

Supported coins and chains

Only these coins and chains are supported for now.

Bitcoin: BTC on P2WSH sortedmulti, optional P2SH P2WSH, optional CSV refund.

EVM: ETH and allowlisted ERC20 on supported EVM chains with Safe v1.3.0 or v1.4.1.

Monero: XMR with experimental CLSAG 2 of 3 and optional pre signed unlock_time refund.

Additional coins and chains will be added in future releases.

Quick start

from multisig_escrow import BitcoinEscrow, MemoryStore

store = MemoryStore()
escrow = BitcoinEscrow.create(terms, store=store)
target = escrow.funding_target()
escrow.fund(evidence, context)
proposal = escrow.propose_release(signer_id, params)
escrow.approve(signed_psbt)
settlement = escrow.finalize()

EVM flows use EvmEscrow with SafeFundingEvidence, EvmReleaseParams, or EvmRefundParams. Monero flows use MoneroEscrow with MoneroFundingEvidence, MoneroReleaseParams, or MoneroRefundParams. All three facades share the same FSM, optimistic store contract, approval token rules, and broadcast and confirmation checks.

For Monero, funding requires a MoneroFundingVerifier, finalization requires a MoneroSettlementVerifier, and CLSAG verification uses a pinned external Monero Oxide verifier. Missing verifiers fail closed.

Safe reload

A record has a terms_hash consistency value, not an authenticated trust anchor. Keep the trusted hash outside the mutable store and verify it on every load:

from multisig_escrow import BitcoinEscrow

trusted_terms_hash = load_trusted_hash_from_signed_manifest(escrow_id)
escrow = BitcoinEscrow.load(
    escrow_id,
    store=store,
    clock=clock,
    trusted_terms_hash=trusted_terms_hash,
)

The same pattern applies to EvmEscrow and MoneroEscrow. Loading without a trusted anchor is possible for migration and testing, but is unsafe for production operation.

Operator checklist

Every item is mandatory before funding.

Terms anchor: Persist the trusted terms hash or signed terms manifest outside the store.

Device display: Verify the destination, amount, fee, network, asset, change, and operation on the signing device.

Payout check: Confirm the payout destination through an independent channel.

Confirmation policy: Record a chain specific confirmation depth and freshness window.

Concurrency: Use one writer per escrow, or a per escrow lock or retry loop.

Monero verifiers: Pin the funding verifier and settlement verifier, and pin the Monero Oxide binary by hash.

R24 acceptance: Record explicit acceptance of R24 before using Monero.

Stop rule: Stop if any item cannot be checked.

Contributions

Contributions are very much appreciated. If you find an issue, a vulnerability, or a bug, whether you used AI or not, please report it and submit a fix if you can. This project is maintained by one developer.

For security reports, read SECURITY.md before opening a public issue.

Security status

R24 remains Critical. Monero CLSAG, RingCT, multisig, parser behavior, wallet interoperability, and the native verifier boundary remain high risk. Monero is experimental and must remain testnet and value capped. Use with real funds only after completing the operator checklist and explicitly accepting R24.

Read SECURITY.md before deploying.

License

MIT. See LICENSE.

Metadata

Release files for multisig 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for multisig 0.1.0
File Size Uploaded Provenance Actions
multisig-0.1.0.tar.gz 91.4 kB Without provenance Details for multisig-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for multisig 0.1.0
File Interpreter ABI Platform Actions
multisig-0.1.0-py3-none-any.whl Python 3 none any Details for multisig-0.1.0-py3-none-any.whl

Total release size: 217.0 kB

Release files / multisig-0.1.0.tar.gz

Download URL multisig-0.1.0.tar.gz
Size 91.4 kB
Tags Source
SHA-256 checksum
How to use checksums
58e1c087d4d44fb6edb4a649e0b9371a56981f52b032cb9d3b3358781ed76591
BLAKE2b-256 checksum
How to use checksums
efcbaf9c88117c803f09063a4fd3690be03eb65f47a9a19e6ff6b3d7dae52524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / multisig-0.1.0-py3-none-any.whl

Download URL multisig-0.1.0-py3-none-any.whl
Size 125.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
feefdde02fa2a5ea2345f53a683e6b08da96ed077deac649987e86d16378d55c
BLAKE2b-256 checksum
How to use checksums
1435a7f5db4756b1057bd9f885718cad12e839c8030b62203af2149923c04e6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for multisig 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page