Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 660 Bytes

File metadata and controls

22 lines (15 loc) · 660 Bytes

Null Program

The simplest Solana program that does nothing but return an error code from the entrypoint.

Building

solana-verify build

Get hash

solana-verify get-executable-hash target/deploy/null_program.so

Expected hashes:

  • solana-verify get-executable-hash: 8a0ee22e1f1f95f1c0f516e5669940c2c88f0cdc543e8a6d25460125debfcd8f
  • Program binary sha256 digest: 7d1e13e6790cc56a5eac5072db3d09482aa237ef7d1fb25691a9ecd1f2b51818

The discrepancy is due to solana-verify truncating trailing zeroes prior to hashing.

The null_program.so file is included, but you should build and verify it yourself.