Int64ToBigInt converts an int64 value to a *big.Int. This is useful for handling large numbers in computations such as financial transactions.
(value int64)
| 35 | // Int64ToBigInt converts an int64 value to a *big.Int. |
| 36 | // This is useful for handling large numbers in computations such as financial transactions. |
| 37 | func Int64ToBigInt(value int64) *big.Int { |
| 38 | return big.NewInt(value) // Create a new big.Int from an int64 value. |
| 39 | } |
| 40 | |
| 41 | // HashTxn generates a SHA-256 hash of a transaction's relevant fields. |
| 42 | // This ensures the integrity of the transaction by creating a unique hash from its details. |
no outgoing calls