good morning!!!!

Skip to content
Snippets Groups Projects
Commit 8fa19664 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Added BigCopy

parent 9d06f9e6
No related branches found
No related tags found
No related merge requests found
......@@ -41,3 +41,12 @@ func BigToBytes(num *big.Int, base int) []byte {
return append(ret[:len(ret)-len(num.Bytes())], num.Bytes()...)
}
// Functions like the build in "copy" function
// but works on big integers
func BigCopy(src *big.Int) (ret *big.Int) {
ret = new(big.Int)
ret.Add(ret, src)
return
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment