magicblock_magic_program_api/pda.rs
1use solana_program::pubkey::Pubkey;
2
3pub const CRANK_SEED: &[u8] = b"crank-executor";
4const CRANK_SIGNER_PDA: ([u8; 32], u8) =
5 const_crypto::ed25519::derive_program_address(
6 &[CRANK_SEED],
7 crate::ID.as_array(),
8 );
9pub const CRANK_SIGNER: Pubkey = Pubkey::new_from_array(CRANK_SIGNER_PDA.0);
10pub const CRANK_SIGNER_BUMP: u8 = CRANK_SIGNER_PDA.1;