Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

NewNullifier

Event emitted when a nullifier is used to spend an input.This event is emitted for each input nullifier used in a privacy-preserving transaction. It ensures that each input can only be spent once, preventing double-spending attacks. # Security Purpose - Prevents double-spending by tracking spent inputs - The nullifier reveals no information about the original input - Provides cryptographic proof of input ownership and spending # Usage - External systems can track spent inputs - Enables efficient double-spending detection - Maintains privacy while ensuring transaction validity

Fully qualified path: obscura::events::NewNullifier

#[derive(Drop, starknet::Event)]
pub struct NewNullifier {
    pub nullifier: u256,
}

Members

nullifier

The nullifier hash that was used to spend an input. This is a cryptographic proof that the input was owned and spent.

Fully qualified path: obscura::events::NewNullifier::nullifier

pub nullifier: u256