abstract class AsyncMerkleStorage : MerkleStorage
(source)
A MerkleStorage implementation using AsyncResult's.
AsyncMerkleStorage()
A MerkleStorage implementation using AsyncResult's. |
open suspend fun get(hash: Bytes32): Bytes?
Get the stored content under the given hash. |
|
abstract fun getAsync(hash: Bytes32): AsyncResult<Bytes?>
Get the stored content under the given hash. |
|
open suspend fun put(hash: Bytes32, content: Bytes): Unit
Store content with a given hash. |
|
abstract fun putAsync(hash: Bytes32, content: Bytes): AsyncCompletion
Store content with a given hash. |