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