Skip to content

Commit 23a1d99

Browse files
authored
program: add solana-security-txt (#360)
1 parent fefc1ba commit 23a1d99

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

Cargo.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

program/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ solana-program-entrypoint = "3.0.0"
1919
solana-program-error = "3.0.1"
2020
solana-pubkey = "4.2.0"
2121
solana-rent = "3.0.0"
22+
solana-security-txt = "1.1.2"
2223
solana-stake-interface = { version = "2", features = ["bincode", "borsh", "sysvar"] }
2324
solana-sysvar = "3.0.0"
2425
solana-sysvar-id = "3.1.0"

program/src/entrypoint.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use {
66
solana_msg::msg,
77
solana_program_entrypoint::{entrypoint, ProgramResult},
88
solana_pubkey::Pubkey,
9+
solana_security_txt::security_txt,
910
};
1011

1112
entrypoint!(process_instruction);
@@ -21,3 +22,17 @@ fn process_instruction(
2122
Ok(())
2223
}
2324
}
25+
26+
security_txt! {
27+
// Required fields
28+
name: "Solana Stake Program",
29+
project_url: "https://solana.com/docs/core/programs/builtin-programs#all-core-programs",
30+
contacts: "link:https://github.com/solana-program/stake/security/advisories/new,email:security@anza.xyz,discord:https://discord.gg/solana",
31+
policy: "https://github.com/solana-program/stake/blob/main/SECURITY.md",
32+
33+
// Optional Fields
34+
preferred_languages: "en",
35+
source_code: "https://github.com/solana-program/stake/tree/main/program",
36+
source_release: concat!("program@v", env!("CARGO_PKG_VERSION")),
37+
auditors: "https://github.com/solana-program/stake/tree/main?tab=readme-ov-file#security-audits"
38+
}

0 commit comments

Comments
 (0)