Install

Weighless.

anchor buildtare build

The Anchor program you already wrote comes out at hand-written compute cost. Not a line changed, and a proof on chain that it is the same program.

curl -fsSL https://api-production-aa6bb01d.up.railway.app/install.sh | sh
How the build works

squads_multisig_program, a production program, on the scale

Gross
307,612
built with stock Anchor
Tare
28,896
the framework’s own weight
Net
278,716
built with Tare

Compute units for one call of each of its 34 instructions. 9% of the gross was tare.

squads_multisig_program: gross, tare and net compute units by instruction
Instruction, median units per callShare of gross that is tare and netGrossTareNet
vault_transaction_create_from_buffer21,0132,04818,965
batch_add_transaction20,8472,51118,336
batch_execute_transaction17,17079216,378
vault_transaction_create15,2852,04513,240
vault_transaction_execute14,67132814,343
multisig_create_v212,6401,60311,037
proposal_create12,6371,66010,977
config_transaction_create12,5581,96110,597
One call of each, over 129 inputs9% of gross was tare307,61228,896278,716

Its public source at 3a39735, built unchanged. Binary 773.2 KB to 759.3 KB. All 34 instructions and every corpus program

Four commands

  1. tare buildThe same workspace, the same source.
  2. tare weighGross, tare and net for every instruction.
  3. tare proveThe stock build and the Tare build, run side by side.
  4. tare attestThe result, on chain, for anyone to check.

What stays identical

  • Account layouts
  • Discriminators
  • Error codes and messages
  • Logs
  • The IDL
  • Events
  • Return data

Clients, indexers and every account already on chain keep working. The Tare build upgrades the program in place, at the same address.

How the proof works

Own testsGeneratedMainnet

Every input from the three corpora runs on both builds.

stock buildtare build
account bytes==account bytes
lamports==lamports
logs==logs
return data==return data
errors==errors

One difference fails the proof and prints the input. All equal, and tare attest writes the build hashes, the source commit, the corpus and the weights to a record on chain.

recordtare checktare flag
The three corpora and what is compared

189 open-source programs, 1,323 instructions, built unchanged

Gross
6,295,676
every measured instruction, stock
Tare
1,835,937
29% of gross, the framework's own weight
Net
4,459,739
the same instructions, built with Tare

weighany program

Its compute by instruction from recent mainnet transactions, its size and the rent it locks. By address, with no install.

TAREThe registry’s attest fee buys TARE and burns it.The token