Skip to content

Commit

Permalink
Merge pull request #125 from mrgnlabs/jjjj/verifiable-builds
Browse files Browse the repository at this point in the history
Verifiable builds support
  • Loading branch information
jkbpvsc authored Aug 10, 2023
2 parents 0555204 + 0bb63be commit c1dee0b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ Key points:
- Real-time risk monitoring is used to assess changing market conditions.
- Marginfi's risk management system is transparent and deterministic.
- Liquidation may occur if a user's account falls below the minimum required health factor.

## Verify

Marginfi can be veirified with Ellipsis Labs verifiable builds.

Install the `solana-verify` tool [here](https://github.com/Ellipsis-Labs/solana-verifiable-build#installation).

Run `./scripts/verify_mainnet.sh`
8 changes: 8 additions & 0 deletions scripts/build_mainnet_verifiable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh

VERIFY_BIN=$(which solana-verify)
PROGRAM_LIB_NAME="marginfi"

echo "sudo $VERIFY_BIN build --library-name $PROGRAM_LIB_NAME -- --features mainnet-beta"

sudo $VERIFY_BIN build --library-name $PROGRAM_LIB_NAME -- --features mainnet-beta
7 changes: 7 additions & 0 deletions scripts/verify_mainnet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

VERIFY_BIN=$(which solana-verify)

echo "sudo $VERIFY_BIN verify-from-repo -um --program-id MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA https://github.com/mrgnlabs/marginfi-v2 --library-name marginfi -- --features mainnet-beta"

sudo $VERIFY_BIN verify-from-repo -um --program-id MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA https://github.com/mrgnlabs/marginfi-v2 --library-name marginfi -- --features mainnet-beta

0 comments on commit c1dee0b

Please sign in to comment.