func (v *Validator) GetPublicKey() (*bls.PublicKey, error) {
	if pub := lookupPubkey(v.Pubkey); pub != nil {
		return pub, nil
	}

	pub, err := bls.DeserializePublicKey(v.Pubkey)
	if err != nil {
		return nil, err
	}

	setPubkey(v.Pubkey, pub)

	return pub, nil
}
// GetPublicKey gets the cached validator pubkey.
GetPublicKey gets the cached validator pubkey.
// GetPublicKey gets the cached validator pubkey .
func (v *Validator) GetPublicKey() (*bls.PublicKey, error) {
	if pub := lookupPubkey(v.Pubkey); pub != nil {
		return pub, nil
	}
	pub, err := bls.DeserializePublicKey(v.Pubkey)
	if err != nil {
		return nil, err
	}
	setPubkey(v.Pubkey, pub)
	return pub, nil
}
func ( v * Validator ) GetPublicKey ( ) ( * bls . PublicKey , error ) { if pub := lookupPubkey ( v . Pubkey ) ; pub != nil { return pub , nil } pub , err := bls . DeserializePublicKey ( v . Pubkey ) if err != nil { return nil , err } setPubkey ( v . Pubkey , pub ) return pub , nil }
GetPublicKey gets the cached validator pubkey.
GetPublicKey gets the cached validator pubkey .