Swisstronik & Ethereum transactions
Ethereum Transactions
When sending transactions in the Ethereum blockchain, there are several fields you need to fill out such as from
, to
, value
, nonce
, data
, etc... so the nodes can process and validate your transactions before adding them to the blockchain.
signer.sendTransaction({
from: //Address of the sender,
to: //Address of the recipient,
data: //Data to include in the transaction
value: //Amount of Ether to send,
});
Swisstronik Transactions
Sending transactions in the Swisstronik blockchain is similar to Ethereum, with one crucial distinction: when the data field is not empty, the value of the data field must be encrypted. This encryption step is vital for maintaining confidentiality. By sending encrypted values to the nodes, we ensure that only the nodes can decrypt the data within the Intel SGX enclave, ensuring the secure validation of your transaction.
signer.sendTransaction({
from: //Address of the sender,
to: //Address of the recipient,
data: //THIS VALUE MUST BE ENCRYPTED USING SWISSTRONIKJS
value: //Amount of Swtr to send,
});
For a deeper dive into transactions data
field on EVM-based blockchains, check out the article Decoding the βdataβ field in Ethereum Transactions
Last updated