Forge v0.7.2 Forge.Tx View Source

Transaction manipulation for Forge

Link to this section Summary

Functions

Sign and deliver a transaction into the blockchain network

Sign the transaction with private key

Verify the signature of the transaction

Link to this section Functions

Link to this function deliver(tx, priv_key) View Source
deliver(Forge.TransactionMessage.t(), String.t()) :: :ok | {:error, any()}

Sign and deliver a transaction into the blockchain network

Link to this function sign(tx, priv_key) View Source
sign(Forge.TransactionMessage.t(), binary()) :: binary()

Sign the transaction with private key

Link to this function verify(tx) View Source
verify(Forge.TransactionMessage.t()) :: :ok | :error

Verify the signature of the transaction