Docker Image Verification

Docker Image Verification Process

The verification of smart contracts using our Docker image involves a comprehensive and flexible approach, suitable for various deployment scenarios. This process ensures that the compiled WebAssembly (WASM) code is consistent, reliable, and secure.

Building WASM in a Reproducible Environment

  1. Reproducible Environment: We utilizes an official nearprotocol Docker image that offers a reproducible environment for building WASM for Rust smart-contracts. This environment ensures consistency in the build process across different machines and setups.

  2. Easy-to-Use Script: To facilitate the process, we provide a special script that simplifies the building of WASM from the source code. This script is designed to be user-friendly, making the compilation process accessible even to those with limited technical expertise.

  3. Deployment Flexibility: Once the WASM is built, users can deploy it using their preferred method. This flexibility allows for a wide range of deployment strategies, catering to different user needs and scenarios.

Use Cases and Advantages

  • Critical Contract Deployment: A key use case involves the deployment of critical contracts. Typically, these contracts are compiled and deployed using GitHub Actions. After deployment, the contracts are locked, ensuring that no one retains full access keys to re-verify or redeploy the smart contract. This necessitates locking the environment and making it reproducible, allowing our server to accurately reproduce and verify the contract in the future.

  • Consistency and Reliability: Using a Docker image for compilation ensures that the WASM code is consistent and reliable, irrespective of the user's local environment. This consistency is crucial for contracts that require high levels of trust and security.

  • Versatility: The method is versatile and can be adapted for various deployment strategies, making it an ideal choice for a wide range of applications, from simple to highly complex smart contracts.

The Docker image verification process we have developed stands out for its flexibility, reliability, and security, making it an essential tool for developers looking to deploy smart contracts on blockchain platforms with confidence.

Last updated