java.lang.Object
tech.deplant.java4ever.binding.Proofs
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<Void>proofBlockData(@NonNull Context context, @NonNull Map<String, Object> block) Proves that a given block's data, which is queried from TONOS API, can be trusted.static CompletableFuture<Void>proofMessageData(@NonNull Context context, @NonNull Map<String, Object> message) Proves that a given message's data, which is queried from TONOS API, can be trusted.static CompletableFuture<Void>proofTransactionData(@NonNull Context context, @NonNull Map<String, Object> transaction) Proves that a given transaction's data, which is queried from TONOS API, can be trusted.
-
Constructor Details
-
Proofs
public Proofs()
-
-
Method Details
-
proofBlockData
public static CompletableFuture<Void> proofBlockData(@NonNull @NonNull Context context, @NonNull @NonNull Map<String, Object> block) Proves that a given block's data, which is queried from TONOS API, can be trusted.- Parameters:
block- Single block's data, retrieved from TONOS API, that needs proof. Required fields are `id` and/or top-level `boc` (for block identification), others are optional.
-
proofTransactionData
public static CompletableFuture<Void> proofTransactionData(@NonNull @NonNull Context context, @NonNull @NonNull Map<String, Object> transaction) Proves that a given transaction's data, which is queried from TONOS API, can be trusted.- Parameters:
transaction- Single transaction's data as queried from DApp server, without modifications. The required fields are `id` and/or top-level `boc`, others are optional. In order to reduce network requests count, it is recommended to provide `block_id` and `boc` of transaction.
-
proofMessageData
public static CompletableFuture<Void> proofMessageData(@NonNull @NonNull Context context, @NonNull @NonNull Map<String, Object> message) Proves that a given message's data, which is queried from TONOS API, can be trusted.- Parameters:
message- Single message's data as queried from DApp server, without modifications. The required fields are `id` and/or top-level `boc`, others are optional. In order to reduce network requests count, it is recommended to provide at least `boc` of message and non-null `src_transaction.id` or `dst_transaction.id`.
-