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

# Function decode_fields_from_bytes

Module: `noir_aztec::utils::conversion::fields_as_bytes`

```rust
pub fn decode_fields_from_bytes<let N: u32>(
    bytes: BoundedVec<u8, N>,
) -> BoundedVec<Field, N / 32>
```

Decodes bytes back into fields.

Panics if the input length is not a multiple of 32 or if any chunk exceeds the BN254 field modulus. See [`try_decode_fields_from_bytes`](/aztec-nr-api/v6.0.0/noir_aztec/utils/conversion/fields_as_bytes/fn.try_decode_fields_from_bytes.md) for a non-panicking variant.
