Function snapps_txn_reference_impl::update_logic::apply_verification_key_update[][src]

pub fn apply_verification_key_update<'a>(
    snapp_account: SnappAccount<'a>,
    update: &PartyUpdate<'_>
) -> SnappAccount<'a>
Expand description

Update the verification_key field of account::SnappAccount with the new value from the party::PartyUpdate.

Using set_or_keep:

snapp_account.verification_key =
    set_or_keep(snapp_account.verification_key, update.verification_key)