Package com.exonum.binding.transaction
Interface TransactionContext
-
public interface TransactionContextTransaction context class. Contains required information for the transaction execution. The context is provided by the framework and users shouldn't create context instances manually except tests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTransactionContext.BuilderTransaction context builder.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static TransactionContext.Builderbuilder()Returns the builder of the transaction context.com.exonum.binding.common.crypto.PublicKeygetAuthorPk()Returns public key of the transaction author.ForkgetFork()Returns database view allowing R/W operations.com.exonum.binding.common.hash.HashCodegetTransactionMessageHash()Returns SHA-256 hash of the transaction message that carried the payload from which the transaction was created.
-
-
-
Method Detail
-
getFork
Fork getFork()
Returns database view allowing R/W operations.
-
getTransactionMessageHash
com.exonum.binding.common.hash.HashCode getTransactionMessageHash()
Returns SHA-256 hash of the transaction message that carried the payload from which the transaction was created. Each transaction message is uniquely identified by its hash; the messages are persisted in the blockchain and can be fetched by this hash.
-
getAuthorPk
com.exonum.binding.common.crypto.PublicKey getAuthorPk()
Returns public key of the transaction author. The corresponding transaction message is guaranteed to have a correctCryptoFunctions.ed25519()signature with this public key.
-
builder
static TransactionContext.Builder builder()
Returns the builder of the transaction context.
-
-