MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / BytesToBig

Function BytesToBig

types.go:20–25  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

18)
19
20func BytesToBig(data []byte) *big.Int {
21 n := new(big.Int)
22 n.SetBytes(data)
23
24 return n
25}
26
27func rev(b []byte) []byte {
28 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {

Callers 2

BigMethod · 0.85
BigMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected