Skip to content
Back to Compact Lab
Legal

Terms of Service

Effective date: April 2, 2026

Please read these Terms of Service ("Terms") carefully before using the Midnight Compact Lab web application ("the Lab", "the Service") operated by Midnight Compact Lab ("we", "our", "us"). By accessing or using the Service, you agree to be bound by these Terms. If you do not agree, do not use the Service.

1. Acceptance of Terms

By accessing or using the Lab in any manner, including visiting or browsing the site, you affirm that you are at least 16 years of age and are fully able and competent to enter into, abide by, and comply with these Terms. These Terms constitute a binding agreement between you and Midnight Compact Lab.

We reserve the right to modify these Terms at any time. Continued use of the Service after changes are posted constitutes your acceptance of the revised Terms. We will always update the effective date above when changes are made.

2. Description of Service

Midnight Compact Lab is a browser-based integrated development environment (IDE) for writing, simulating, and deploying smart contracts written in Compact — the zero-knowledge smart contract language of the Midnight blockchain. The Service includes:

  • A code editor with Compact language syntax support.
  • A local simulation environment for testing contract logic.
  • A privacy visualization layer for ZK proof inspection.
  • Integration tooling for deployment to Midnight Testnet and Mainnet.
  • Starter templates and example contracts.

The Service is provided "as-is" and is subject to change, interruption, or discontinuation at any time without prior notice.

3. User Accounts and Access

Access to certain features may require you to register for an account. You agree to provide accurate, current, and complete information and to keep your account credentials secure. You are solely responsible for all activity that occurs under your account. Notify us immediately if you suspect unauthorized access.

We reserve the right to suspend or terminate your access at our sole discretion, with or without notice, for conduct we determine violates these Terms or is harmful to other users, us, or third parties.

4. Acceptable Use

You agree not to use the Service to:

  • Develop, deploy, or distribute malicious contracts designed to defraud, exploit, or harm other users or third parties.
  • Attempt to gain unauthorized access to any systems, networks, or accounts.
  • Reverse engineer, decompile, or disassemble any portion of the Service or its underlying infrastructure.
  • Scrape, crawl, or systematically extract data from the Service without written permission.
  • Violate any applicable local, national, or international law or regulation, including export control laws.
  • Use the Service in a way that could disable, overburden, or impair it, or interfere with any other user's access.

5. Intellectual Property

Our content. All software, code, design, text, graphics, logos, and other materials comprising the Service are owned by or licensed to Midnight Compact Lab and are protected by applicable intellectual property laws. You may not reproduce, distribute, or create derivative works from our content without express written permission.

Your content. You retain full ownership of any smart contract code, scripts, or other content you create using the Service. By using the Service, you grant us a limited, non-exclusive, royalty-free license to process and display your content solely as necessary to operate the Service. We do not claim ownership of your code.

Open-source components. The Service may incorporate open-source libraries. Their respective licenses apply and take precedence over these Terms for those specific components.

6. Blockchain and Financial Risk

The Lab facilitates deployment to public blockchains, including Midnight Testnet and Mainnet. You acknowledge and accept that:

  • Blockchain transactions are irreversible. Deployed contracts cannot be "undone."
  • Smart contract bugs may result in permanent loss of funds or assets.
  • You are solely responsible for auditing your own code before any Mainnet deployment.
  • Midnight Compact Lab is not a financial service and does not provide investment, legal, or financial advice.

We strongly recommend thorough testing on Testnet and independent security audits before deploying contracts that handle real value.

7. Disclaimer of Warranties

THE SERVICE IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, ACCURACY, OR NON-INFRINGEMENT.

We do not warrant that the Service will be uninterrupted, error-free, or free of harmful components. We do not warrant the correctness, accuracy, or reliability of any compiler output, simulation result, or deployment outcome produced by the Service.

8. Limitation of Liability

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MIDNIGHT COMPACT LAB AND ITS AFFILIATES, OFFICERS, EMPLOYEES, AGENTS, SUPPLIERS, AND LICENSORS SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES — INCLUDING LOSS OF PROFITS, DATA, GOODWILL, OR ASSETS — ARISING OUT OF OR IN CONNECTION WITH YOUR USE OF OR INABILITY TO USE THE SERVICE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

IN NO EVENT SHALL OUR TOTAL AGGREGATE LIABILITY TO YOU EXCEED ONE HUNDRED US DOLLARS (US $100), OR THE AMOUNT YOU PAID US IN THE PRECEDING TWELVE MONTHS, WHICHEVER IS GREATER.

9. Indemnification

You agree to defend, indemnify, and hold harmless Midnight Compact Lab and its affiliates, officers, directors, employees, and agents from and against any claims, liabilities, damages, judgments, awards, losses, costs, expenses, or fees (including reasonable legal fees) arising out of or relating to your violation of these Terms or your use of the Service, including any contracts you deploy on-chain.

10. Privacy

Your use of the Service is also governed by our Privacy Policy, which is incorporated into these Terms by reference. Please review the Privacy Policy to understand our data practices.

11. Third-Party Services

The Service may include links to or integrations with third-party websites or services (including Midnight Network, GitHub, and wallet providers). We are not responsible for the content, policies, or practices of any third-party service. Your use of third-party services is at your own risk and subject to their terms and privacy policies.

12. Governing Law and Dispute Resolution

These Terms are governed by and construed in accordance with applicable law, without regard to conflict of law principles. Any disputes arising from or related to these Terms or the Service shall first be attempted to be resolved through good-faith negotiation. If negotiation fails, disputes shall be submitted to binding arbitration or, where arbitration is not enforceable, to the courts of competent jurisdiction.

13. Severability and Entire Agreement

If any provision of these Terms is found to be unenforceable or invalid, that provision shall be modified to the minimum extent necessary to make it enforceable, and the remaining provisions shall remain in full force and effect. These Terms, together with the Privacy Policy, constitute the entire agreement between you and Midnight Compact Lab with respect to the Service.

14. Contact Us

Questions about these Terms? Contact us at:

Midnight Compact Lab — Legal

Email: legal@compactlab.dev