MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / Int64ToBigInt

Function Int64ToBigInt

model/model.go:37–39  ·  view source on GitHub ↗

Int64ToBigInt converts an int64 value to a *big.Int. This is useful for handling large numbers in computations such as financial transactions.

(value int64)

Source from the content-addressed store, hash-verified

35// Int64ToBigInt converts an int64 value to a *big.Int.
36// This is useful for handling large numbers in computations such as financial transactions.
37func 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.

Callers 8

CreateMonitorMethod · 0.92
TestInt64ToBigIntFunction · 0.85
TestBalance_AddDebitFunction · 0.85
TestApplyRateFunction · 0.85

Calls

no outgoing calls

Tested by 7

TestInt64ToBigIntFunction · 0.68
TestBalance_AddDebitFunction · 0.68
TestApplyRateFunction · 0.68