Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @smartcontractkit/data-streams-engineers
4 changes: 3 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,32 @@ anchor 0.29.0
rustc 1.82.0
```

`anchor build` is for development and tests. Release binaries are built with `solana-verify`, see below.

## Building a release
Programs deployed to devnet or mainnet are built with [solana-verify](https://github.com/Ellipsis-Labs/solana-verifiable-build),
which compiles inside a pinned Docker image so anyone can rebuild a commit and get the same binary.

Requires Docker and `solana-verify` (tested with 0.5.2). Installing `solana-verify` from source needs Rust 1.85 or
newer, newer than this repo's toolchain. That only affects building the tool: the program itself is compiled by the
Solana platform tools inside the image.
```bash
cargo +1.91 install solana-verify --locked
```

Build from a tagged commit:
```bash
git checkout <release tag>
solana-verify build --library-name verifier
```
The binary is `target/deploy/verifier.so` and the last line of output is its hash; publish that hash with the
release. `solana-verify` hashes the program without its trailing zero bytes, so the hash differs from `sha256sum` of
the file. Rebuilding the same commit gives the same hash.

The program ID is compiled in (`declare_id!` in `programs/verifier/src/lib.rs`), so a build for another deployment,
such as staging, needs that line changed first. Those builds are reproducible with the same change, but can't be
verified against a public commit.

## Generate Go bindings
Generate the bindings if contract interface is changed

Expand Down
165 changes: 165 additions & 0 deletions client/go/verifier/ActivateConfig.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading