Skip to content

Commit 60920ae

Browse files
onspeedhpclaude
andcommitted
feat(program): embed security.txt with audit + contact info
Add solana-security-txt + default-env deps and embed a `security_txt!` block in program/src/lib.rs so on-chain inspectors (and security researchers) get a self-described pointer to the SECURITY.md, contact endpoints, source repo, and audit report. Identifies the binary as the "Foundation Build" of LazorKit Smart Wallet to distinguish it from the lazorkit-protocol commercial binary that may later occupy the same mainnet slot. source_revision and source_release are populated from GITHUB_SHA / GITHUB_REF_NAME at CI build time. Audit pointer is the existing Accretion Labs report shipped under audits/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3691e8a commit 60920ae

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

program/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ pinocchio-system = { workspace = true }
2121
no-padding = { workspace = true }
2222
assertions = { workspace = true }
2323
shank = { version = "0.4.2", git = "https://github.com/anagrambuild/shank.git" }
24+
solana-security-txt = "1.1.2"
25+
default-env = "0.1"
2426

2527
[dev-dependencies]
2628
solana-sdk = "2.1"

program/src/lib.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
#![allow(unexpected_cfgs)]
22

3+
#[cfg(not(feature = "no-entrypoint"))]
4+
use {default_env::default_env, solana_security_txt::security_txt};
5+
6+
#[cfg(not(feature = "no-entrypoint"))]
7+
security_txt! {
8+
name: "LazorKit Smart Wallet",
9+
project_url: "https://lazorkit.com",
10+
contacts: "email:security@lazorkit.app,link:https://github.com/lazor-kit/program-v2/security/advisories/new",
11+
policy: "https://github.com/lazor-kit/program-v2/blob/main/SECURITY.md",
12+
13+
preferred_languages: "en,vi",
14+
source_code: "https://github.com/lazor-kit/program-v2",
15+
source_revision: default_env!("GITHUB_SHA", ""),
16+
source_release: default_env!("GITHUB_REF_NAME", ""),
17+
auditors: "Accretion Labs (Solana Foundation) — https://github.com/lazor-kit/program-v2/blob/main/audits/2026-accretion-solana-foundation-lazorkit-audit-A26SFR1.pdf"
18+
}
19+
320
pub mod auth;
421
pub mod compact;
522
pub mod entrypoint;

0 commit comments

Comments
 (0)