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

# Function get_shared_secret

Module: `noir_aztec::oracle::shared_secret`

```rust
pub unconstrained fn get_shared_secret(
    address: AztecAddress,
    eph_pk: EmbeddedCurvePoint,
    contract_address: AztecAddress,
) -> Option<Field>
```

Convenience wrapper around [`get_shared_secrets`](/aztec-nr-api/v6.0.0/noir_aztec/oracle/shared_secret/fn.get_shared_secrets.md) for a single ephemeral public key.

Returns `none` when the PXE does not hold `address`'s keys and therefore cannot derive the secret.
