func PubKeyStringToArray(pubkey string) [33]byte {

	pubKeyArray := [33]byte{}
	pubKeySlice, err := hex.DecodeString(pubkey)
	if err != nil {
		log.Fatal(err)
	}

	copy(pubKeyArray[:], pubKeySlice)

	return pubKeyArray
}
//PubKeyStringToArray transforms a hex encoded string public key to its 33 byte form
PubKeyStringToArray transforms a hex encoded string public key to its 33 byte form
// PubKeyStringToArray transforms a hex encoded string public key to its 33 byte form
func PubKeyStringToArray(pubkey string) [33]byte {
	pubKeyArray := [33]byte{}
	pubKeySlice, err := hex.DecodeString(pubkey)
	if err != nil {
		log.Fatal(err)
	}
	copy(pubKeyArray[:], pubKeySlice)
	return pubKeyArray
}
func PubKeyStringToArray ( pubkey string ) [ 33 ] byte { pubKeyArray := [ 33 ] byte { } pubKeySlice , err := hex . DecodeString ( pubkey ) if err != nil { log . Fatal ( err ) } copy ( pubKeyArray [ : ] , pubKeySlice ) return pubKeyArray }
PubKeyStringToArray transforms a hex encoded string public key to its 33 byte form
PubKeyStringToArray transforms a hex encoded string public key to its 33 byte form