Let us suppose I have made a design, where I would be able to derive the PDA just by knowing the ID. So I have made a PDA that uses the inputted instruction ID parameter as a part of the seed.
#[derive(Accounts)]
#[instruction(params: Params)]
pub struct Context<'info> {
#[account(
init,
seeds = [b"someSeed".as_ref(), params.id.as_bytes()]
bump,
payer = operator,
space = N
)]
pub account: Account<'info, MyAccount>,
So I was wondering if this is something I would need to be wary of?
The plan is to have this instruction only be callable by operators and not by any users, which I have already made checks for.