-
Notifications
You must be signed in to change notification settings - Fork 21
Add sails-verifier #231
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
Open
EugenWay
wants to merge
7
commits into
master
Choose a base branch
from
ew-sails-verifier
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add sails-verifier #231
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
17db29e
ew-add-sails-verifier
EugenWay d0f344e
fix
EugenWay 05b6cb7
fix link
EugenWay 77df349
change text
EugenWay ce8ad60
change page name
EugenWay aa0c237
Update docs/build/sails/сode-verifier.mdx
EugenWay 3692060
update verifier
EugenWay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| --- | ||
| sidebar_label: Code verifier | ||
| sidebar_position: 7 | ||
| --- | ||
|
|
||
| # Code Verifier | ||
|
|
||
| `Code Verifier` is a tool that checks whether a compiled program was built from the claimed source code using a trusted, reproducible environment. | ||
| It also ensures compatibility with the Vara network by verifying that the binary matches the required versions of `Sails`, `Rust`, and system dependencies — guaranteeing predictable behavior and provable code integrity. | ||
|
|
||
| Code Verifier helps to: | ||
|
|
||
| - ✅ Ensure your program was built in the correct environment | ||
| - ✅ Guarantee determinism: same code = same binary = same behavior | ||
| - ✅ Speed up audits and integration with other tools | ||
|
|
||
| Whether you’re a <u>developer</u>, <u>auditor</u>, or <u>simple user</u> — you can trust that the program behaves exactly as the source code says it will. | ||
|
|
||
| ## How to use it | ||
|
|
||
| If you’re building on `Sails` — Code Verifier should be part of your standard workflow. It helps you build safer, more reliable applications that everyone can trust. | ||
|
|
||
| First, compile your program using the official Docker image: | ||
|
|
||
| ```bash | ||
| docker run -v $(pwd):/app --entrypoint /bin/bash ghcr.io/gear-tech/sails-program-builder:<version> -c 'cargo build --release' | ||
| ``` | ||
|
|
||
| ```note | ||
| Important: Make sure to choose the Docker image version that matches the Sails version used in your project. | ||
| ``` | ||
|
|
||
| 👉 Browse available Docker image versions here: | ||
| [gear-tech/sails-program-builder](https://github.com/gear-tech/sails-program-builder/pkgs/container/sails-program-builder) | ||
|
|
||
| Then, upload your binary and source code for verification using: | ||
|
|
||
|  | ||
|
|
||
| - Web interface: [gear-tech.io/verify](https.gear-tech.io/verify) | ||
| - Technical README & API: [Github](https://github.com/gear-tech/sails-program-verifier) | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.