func (r *fileRepo) FetchKeys(addr hash.Hash) ([]bmcrypto.PubKey, error) {
	pk := &PubKeys{}
	err := r.fetchJSON(addr, keysFile, pk)
	if err != nil && os.IsNotExist(err) {
		err = r.createPubKeyFile(addr)
	}
	if err != nil {
		return nil, err
	}

	return pk.PubKeys, nil
}
// Retrieve the public keys for this account
Retrieve the public keys for this account
// Retrieve the public keys for this account
func (r *fileRepo) FetchKeys(addr hash.Hash) ([]bmcrypto.PubKey, error) {
	pk := &PubKeys{}
	err := r.fetchJSON(addr, keysFile, pk)
	if err != nil && os.IsNotExist(err) {
		err = r.createPubKeyFile(addr)
	}
	if err != nil {
		return nil, err
	}
	return pk.PubKeys, nil
}
func ( r * fileRepo ) FetchKeys ( addr hash . Hash ) ( [ ] bmcrypto . PubKey , error ) { pk := & PubKeys { } err := r . fetchJSON ( addr , keysFile , pk ) if err != nil && os . IsNotExist ( err ) { err = r . createPubKeyFile ( addr ) } if err != nil { return nil , err } return pk . PubKeys , nil }
Retrieve the public keys for this account
Retrieve the public keys for this account