// LoadOldFilePV loads an OldFilePV from the filePath.
LoadOldFilePV loads an OldFilePV from the filePath.
// LoadOldFilePV loads an OldFilePV from the filePath .
func LoadOldFilePV(filePath string) (*OldFilePV, error) {
	pvJSONBytes, err := ioutil.ReadFile(filePath)
	if err != nil {
		return nil, err
	}
	pv := &OldFilePV{}
	err = cdc.UnmarshalJSON(pvJSONBytes, &pv)
	if err != nil {
		return nil, err
	}
	pv.PubKey = pv.PrivKey.PubKey()
	pv.Address = pv.PubKey.Address()
	pv.filePath = filePath
	return pv, nil
}
func LoadOldFilePV ( filePath string ) ( * OldFilePV , error ) { pvJSONBytes , err := ioutil . ReadFile ( filePath ) if err != nil { return nil , err } pv := & OldFilePV { } err = cdc . UnmarshalJSON ( pvJSONBytes , & pv ) if err != nil { return nil , err } pv . PubKey = pv . PrivKey . PubKey ( ) pv . Address = pv . PubKey . Address ( ) pv . filePath = filePath return pv , nil }
LoadOldFilePV loads an OldFilePV from the filePath.
LoadOldFilePV loads an OldFilePV from the filePath .
// overwrite pubkey and address for convenience