Skip to main content

classify_decrypted_tx

Function classify_decrypted_tx 

Source
pub fn classify_decrypted_tx<AccountId, C>(
    tx: &Transaction,
    orchard_outputs: &[DecryptedOutput<(Note, ValuePool), AccountId>],
    ironwood_outputs: &[DecryptedOutput<(Note, ValuePool), AccountId>],
    constants: &C,
) -> Zip318Classification
where C: PoolMigrationConstants + ?Sized,
Available on crate feature orchard only.
Expand description

Classifies a decrypted transaction against ZIP 318.

orchard_outputs and ironwood_outputs are the outputs the wallet could decrypt, as DecryptedTransaction reports them; an output absent from both is one the wallet cannot attribute, which is not the same as one belonging to somebody else.