func SerializeBigNum(b *big.Int) []byte {
	length := uint32(math.Ceil(float64(b.BitLen()) / 8))
	var lengthBytes [4]byte
	binary.BigEndian.PutUint32(lengthBytes[:], length)
	return append(lengthBytes[:], b.Bytes()...)
}
// SerializeBigNum serializes a big integer like openssl would
SerializeBigNum serializes a big integer like openssl would
// SerializeBigNum serializes a big integer like openssl would
func SerializeBigNum(b *big.Int) []byte {
	length := uint32(math.Ceil(float64(b.BitLen()) / 8))
	var lengthBytes [4]byte
	binary.BigEndian.PutUint32(lengthBytes[:], length)
	return append(lengthBytes[:], b.Bytes()...)
}
func SerializeBigNum ( b * big . Int ) [ ] byte { length := uint32 ( math . Ceil ( float64 ( b . BitLen ( ) ) / 8 ) ) var lengthBytes [ 4 ] byte binary . BigEndian . PutUint32 ( lengthBytes [ : ] , length ) return append ( lengthBytes [ : ] , b . Bytes ( ) ... ) }
SerializeBigNum serializes a big integer like openssl would
SerializeBigNum serializes a big integer like openssl would