> ## Documentation Index
> Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# primitives/StorageProof

> Auto-generated API documentation

[**@tevm/voltaire**](../index.mdx)

***

[@tevm/voltaire](../index.mdx) / primitives/StorageProof

# primitives/StorageProof

## Type Aliases

### StorageProofLike

> **StorageProofLike** = [`StorageProofType`](#storageprooftype) | \{ `key`: [`StorageKeyType`](State.mdx#storagekeytype); `proof`: readonly `Uint8Array`\[]; `value`: [`StorageValueType`](StorageValue.mdx#storagevaluetype); }

Defined in: [src/primitives/StorageProof/StorageProofType.ts:42](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/StorageProof/StorageProofType.ts#L42)

Inputs that can be converted to StorageProof

***

### StorageProofType

> **StorageProofType** = `object`

Defined in: [src/primitives/StorageProof/StorageProofType.ts:18](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/StorageProof/StorageProofType.ts#L18)

StorageProof represents an EIP-1186 storage proof for a single storage slot.

Each storage proof demonstrates that a specific storage key-value pair exists
(or doesn't exist) in a contract's storage trie at a given block. The proof
consists of RLP-encoded Merkle Patricia Trie nodes forming a path from the
storage root to the leaf containing the value.

Storage proofs are part of the StateProof structure and enable trustless
verification of contract storage without executing transactions or trusting
external data providers.

#### See

EIP-1186: [https://eips.ethereum.org/EIPS/eip-1186](https://eips.ethereum.org/EIPS/eip-1186)

#### Properties

##### key

> `readonly` **key**: [`StorageKeyType`](State.mdx#storagekeytype)

Defined in: [src/primitives/StorageProof/StorageProofType.ts:23](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/StorageProof/StorageProofType.ts#L23)

The storage slot being proven.
Combines contract address and 256-bit slot number.

##### proof

> `readonly` **proof**: readonly `Uint8Array`\[]

Defined in: [src/primitives/StorageProof/StorageProofType.ts:36](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/StorageProof/StorageProofType.ts#L36)

Array of RLP-encoded Merkle Patricia Trie nodes.
Forms the path from the storage root hash to this storage slot.
Nodes are ordered from root to leaf.

##### value

> `readonly` **value**: [`StorageValueType`](StorageValue.mdx#storagevaluetype)

Defined in: [src/primitives/StorageProof/StorageProofType.ts:29](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/StorageProof/StorageProofType.ts#L29)

The value stored at this slot.
Zero if the slot is uninitialized or was cleared.

## Functions

### equals()

> **equals**(`a`, `b`): `boolean`

Defined in: [src/primitives/StorageProof/equals.js:22](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/StorageProof/equals.js#L22)

Compares two StorageProofs for equality.
All fields (key, value, and proof elements) must match.

#### Parameters

##### a

[`StorageProofType`](#storageprooftype)

First StorageProof

##### b

[`StorageProofType`](#storageprooftype)

Second StorageProof

#### Returns

`boolean`

* True if equal

#### Example

```typescript theme={null}
const isEqual = StorageProof.equals(proof1, proof2);
```

***

### from()

> **from**(`storageProof`): [`StorageProofType`](#storageprooftype)

Defined in: [src/primitives/StorageProof/from.js:23](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/StorageProof/from.js#L23)

Creates a StorageProof from an object with key, value, and proof array.

#### Parameters

##### storageProof

[`StorageProofLike`](#storageprooflike)

Object containing key, value, and proof

#### Returns

[`StorageProofType`](#storageprooftype)

* A validated StorageProof

#### Example

```typescript theme={null}
const proof = StorageProof.from({
  key: storageKey,
  value: storageValue,
  proof: [node1, node2, node3],
});
```
