func GenFridayFilePV(keyFilePath, stateFilePath string) *FridayFilePV {
	privKey := bls.GenPrivKey()

	return &FridayFilePV{
		Key: FilePVKey{
			Address:  privKey.PubKey().Address(),
			PubKey:   privKey.PubKey(),
			PrivKey:  privKey,
			filePath: keyFilePath,
		},
		SignState: FridayFilePVSignState{
			filePath: stateFilePath,
		},
	}
}
// GenFilePV generates a new validator with randomly generated private key
// and sets the filePaths, but does not call Save().
GenFilePV generates a new validator with randomly generated private key
and sets the filePaths, but does not call Save().
// GenFilePV generates a new validator with randomly generated private key // and sets the filePaths but does not call Save () .
func GenFridayFilePV(keyFilePath, stateFilePath string) *FridayFilePV {
	privKey := bls.GenPrivKey()
	return &FridayFilePV{
		Key: FilePVKey{
			Address:  privKey.PubKey().Address(),
			PubKey:   privKey.PubKey(),
			PrivKey:  privKey,
			filePath: keyFilePath,
		},
		SignState: FridayFilePVSignState{
			filePath: stateFilePath,
		},
	}
}
func GenFridayFilePV ( keyFilePath , stateFilePath string ) * FridayFilePV { privKey := bls . GenPrivKey ( ) return & FridayFilePV { Key : FilePVKey { Address : privKey . PubKey ( ) . Address ( ) , PubKey : privKey . PubKey ( ) , PrivKey : privKey , filePath : keyFilePath , } , SignState : FridayFilePVSignState { filePath : stateFilePath , } , } }
GenFilePV generates a new validator with randomly generated private key
and sets the filePaths, but does not call Save().
GenFilePV generates a new validator with randomly generated private key and sets the filePaths but does not call Save () .