> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/mainnet/llms.txt

# Struct NoteOrigin

Module: `noir_aztec::oracle::notes`

```rust
pub struct NoteOrigin {
    pub tx_hash: Field,
    pub block: BlockReference,
}
```

Where a settled note was created.

None of this can be cheaply constrained: doing so requires proving the transaction, its inclusion in the block, and the block's ancestry in the anchor block.

## Fields

```rust
tx_hash: Field
```

Hash of the transaction that created the note.

```rust
block: BlockReference
```

The block that transaction was included in.

## Trait implementations

```rust
impl Deserialize for NoteOrigin
```

```rust
pub fn deserialize(fields: [Field; 3]) -> Self
```

```rust
pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self
```

```rust
impl Eq for NoteOrigin
```

```rust
pub fn eq(_self: Self, _other: Self) -> bool
```
