Skip to main content

validate_utxo_ownership

Function validate_utxo_ownership 

Source
pub fn validate_utxo_ownership(utxo: &UtxoMeta, owner: &Pubkey) -> bool
Expand description

Validates if a UTXO is owned by the specified public key.

§Arguments

  • utxo - The UTXO metadata to validate
  • owner - The public key to check ownership against

§Returns

  • bool - true if the UTXO is owned by the specified public key, false otherwise