#solana #confidential-transfer #spl-token #extract #elgamal #public-key #on-chain-programs

spl-token-confidential-transfer-proof-extraction

Solana Program Library Confidential Transfer Proof Extraction

8 releases (4 breaking)

0.5.1 Nov 3, 2025
0.5.0 Aug 12, 2025
0.4.1 Aug 12, 2025
0.4.0 May 13, 2025
0.1.0 Aug 27, 2024

#5 in #confidential-transfer

Download history 69188/week @ 2025-10-14 79673/week @ 2025-10-21 72542/week @ 2025-10-28 79834/week @ 2025-11-04 78143/week @ 2025-11-11 82221/week @ 2025-11-18 63922/week @ 2025-11-25 84845/week @ 2025-12-02 73643/week @ 2025-12-09 86597/week @ 2025-12-16 39883/week @ 2025-12-23 46417/week @ 2025-12-30 86336/week @ 2026-01-06 89286/week @ 2026-01-13 93158/week @ 2026-01-20 72586/week @ 2026-01-27

355,356 downloads per month
Used in 509 crates (7 directly)

Apache-2.0

50KB
793 lines

Token 2022

Programs

The token-2022 repo contains two on-chain programs, the token-2022 program in program, which you can build / test / format using the following commands:

make build-sbf-program
make test-program
make format-check-program
make clippy-program

There's also the ElGamal pubkey registry program in confidential/elgamal-registry, which you can build and test with the following commands:

make build-sbf-confidential-elgamal-registry
make test-confidential-elgamal-registry
make format-check-confidential-elgamal-registry
make clippy-confidential-elgamal-registry

IDL

The token-2022 program has the following IDL.

Generating clients

Once your program's IDL has been generated, you can generate clients for them using the following commands.

pnpm install # only need to run this once
pnpm generate:clients

Managing clients

The following clients are available. You may use the following links to learn more about each client:

Starting and stopping the local validator

The following script is available to start your local validator. In order to run the local validator you must also have the token-2022 and elgamal registry programs built.

make build-sbf-program # you only need to run this once
make build-sbf-confidential-elgamal-registry # you only need to run this once
make restart-test-validator

Finally, you may stop the local validator using the following command.

make stop-test-validator

Dependencies

~14MB
~222K SLoC