12 lines
233 B
Rust
12 lines
233 B
Rust
use crate::pubkey::Pubkey;
|
|
|
|
const SYSTEM_PROGRAM_ID: [u8; 32] = [0u8; 32];
|
|
|
|
pub fn id() -> Pubkey {
|
|
Pubkey::new(&SYSTEM_PROGRAM_ID)
|
|
}
|
|
|
|
pub fn check_id(program_id: &Pubkey) -> bool {
|
|
program_id.as_ref() == SYSTEM_PROGRAM_ID
|
|
}
|