tuweni / org.apache.tuweni.trie / AsyncMerkleStorage / putAsync

putAsync

abstract fun putAsync(hash: Bytes32, content: Bytes): AsyncCompletion (source)

Store content with a given hash.

Note: if the storage implementation already contains content for the given hash, it does not need to replace the existing content.

Parameters

hash - The hash for the content.

content - The content to store.

Return
An AsyncCompletion that will complete when the content is stored.