func (sec *SecretKey) DecString() string {
	return sec.v.getString(10)
}
DecString returns a decimal string representation of the private key.
package bls
import "C"
import "fmt"
import "unsafe"
import "log"
var bazel = "no"
func init() {
	if bazel != "true" {
		panic("this library must be built by bazel, but was not")
	}
	if err := initializeBLS(BLS12_381); err != nil {
		log.Fatalf("Could not initialize BLS12-381 curve: %v", err)
	}
}
func initializeBLS(curve int) error {
	err := C.blsInit(C.int(curve), C.MCLBN_COMPILED_TIME_VAR)
	if err != 0 {
		return fmt.Errorf("ERR Init curve=%d", curve)
	}
	return nil
}
type SecretKey struct {
	v fr
}
func (sec *SecretKey) getPointer() (p *C.blsSecretKey) {
	return (*C.blsSecretKey)(unsafe.Pointer(sec))
}
func (sec *SecretKey) LittleEndian() []byte {
	return sec.v.serialize()
}
func (sec *SecretKey) SetLittleEndian(buf []byte) error {
	return sec.v.setLittleEndian(buf)
}
func (sec *SecretKey) SerializeToHexStr() string {
	return sec.v.getString(IoSerializeHexStr)
}
func (sec *SecretKey) DeserializeHexStr(s string) error {
	return sec.v.setString(s, IoSerializeHexStr)
}
func (sec *SecretKey) HexString() string {
	return sec.v.getString(16)
}