mirror of
https://github.com/muun/recovery.git
synced 2025-11-11 22:40:16 -05:00
Update project structure and build process
This commit is contained in:
16
libwallet/encodings.go
Executable file
16
libwallet/encodings.go
Executable file
@@ -0,0 +1,16 @@
|
||||
package libwallet
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
)
|
||||
|
||||
func paddedSerializeBigInt(size uint, x *big.Int) []byte {
|
||||
src := x.Bytes()
|
||||
dst := make([]byte, 0, size)
|
||||
|
||||
for i := 0; i < int(size)-len(src); i++ {
|
||||
dst = append(dst, 0)
|
||||
}
|
||||
|
||||
return append(dst, src...)
|
||||
}
|
||||
Reference in New Issue
Block a user