> For the complete documentation index, see [llms.txt](https://fortress-of-tee.gitbook.io/fortress-of-tee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fortress-of-tee.gitbook.io/fortress-of-tee/the-building-blocks/markdown.md).

# Secure Computation: Inside the TEE Core

Fortress of TEE ensures that sensitive computations are conducted within the secure enclave. This layer guarantees data privacy and integrity, even when interacting with public blockchains.

#### Example: Signing Transactions Securely

The following snippet demonstrates secure key management within the TEE:

```rust
fn sign_transaction(tx_data: &[u8]) -> Result<Signature, Error> {
    let private_key = tee_core::get_secure_key("transaction_key")?;
    let signature = cryptography::sign(private_key, tx_data)?;
    Ok(signature)
}

```
