* Project import generated by Copybara. GitOrigin-RevId: a54f824c1816bcedee95284afd276aaa37a98d80 * fix * chore: Update pnpm lockfile --------- Co-authored-by: Copybara <copybara@example.com> Co-authored-by: gallynaut <gallynaut@users.noreply.github.com> |
||
---|---|---|
.. | ||
scripts | ||
src | ||
switchboard-function | ||
tests | ||
.dockerignore | ||
.gitignore | ||
.prettierignore | ||
Anchor.toml | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
Xargo.toml | ||
package.json | ||
tsconfig.json |
README.md
anchor-vrf-lite-parser
An example program written in Anchor demonstrating how to integrate Switchboard Functions and verify attestation on-chain.
Usage
Build the example program
anchor build
Get your program ID and update Anchor.toml
and src/lib.rs
with your pubkey
export ANCHOR_VRF_LITE_PARSER_PUBKEY=$(solana-keygen pubkey target/deploy/anchor_vrf_lite_parser-keypair.json)
sed -i '' s/5Hhm5xKDiThfidbpqjJpKmMJEcKmjj5tEUNFpi2DzSvb/"$ANCHOR_VRF_LITE_PARSER_PUBKEY"/g Anchor.toml
sed -i '' s/5Hhm5xKDiThfidbpqjJpKmMJEcKmjj5tEUNFpi2DzSvb/"$ANCHOR_VRF_LITE_PARSER_PUBKEY"/g src/lib.rs
Then run Anchor test
anchor test