Skip to content

Commit

Permalink
client: add preimage doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Mar 1, 2024
1 parent 0e589de commit 1c413fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/client/src/execution/preimage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { DBKey, MetaDBManager } from '../util/metaDBManager'

/**
* The `PreImagesManager` saves the preimages of hashed keys. This is necessary for the Verkle transition.
* A "PreImage" of a hash is whatever the input is to the hashed function. So, if one calls `keccak256(X)` with
* output `Y` then `X` is the preimage of `Y`. It thus serves to recover the input to the trapdoor hash function,
* which would otherwise not be feasible.
*/
export class PreimagesManager extends MetaDBManager {
/**
* Returns the preimage for a given hashed key
Expand Down

0 comments on commit 1c413fa

Please sign in to comment.