MCPcopy Create free account
hub / github.com/base/base / new_blinded

Method new_blinded

crates/proof/mpt/src/node.rs:106–108  ·  view source on GitHub ↗

Creates a new [`TrieNode::Blinded`] node. ## Takes - `commitment` - The commitment that blinds the node ## Returns - `Self` - The new blinded [`TrieNode`].

(commitment: B256)

Source from the content-addressed store, hash-verified

104 /// ## Returns
105 /// - `Self` - The new blinded [`TrieNode`].
106 pub const fn new_blinded(commitment: B256) -> Self {
107 Self::Blinded { commitment }
108 }
109
110 /// Blinds the [`TrieNode`].. Alternatively, if the [`TrieNode`] is a [`TrieNode::Blinded`] node
111 /// already, its commitment is returned directly.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected