Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

125 save user info #134

Merged
merged 5 commits into from
Sep 23, 2017
Merged

125 save user info #134

merged 5 commits into from
Sep 23, 2017

Conversation

bfbachmann
Copy link
Member

Related Issue

Closes #125
Closes #131

Description

  • Added Save and Load functions to user and blockchain to save and load their contents from disk on startup.
  • Added a user command to the console to view and edit user info.

WIKI Updates

  • TODO

Todos

General:

  • Tests
  • Documentation
  • Wiki

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 76.79% when pulling 203d0fc on 125-save-user-info into 27747c5 on dev.

app/user.go Outdated
}
}

// Public returns the public key (address) of the given user
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Public key and address are not the same. Address is hash of key, is that right @chadlagore ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, I'll remove that "(address)" comment, it's not really necessary.

app/user.go Outdated
// current working directory in JSON format. On success this returns
// a pointer to a new user constructed from the information in the file.
// If an error occurrs it is returned.
func Load(fileName string) (*User, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd call this LoadUser since it's in the app namespace. app.Load seems like it should load the app

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 74.764% when pulling 461dec3 on 125-save-user-info into 27747c5 on dev.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 74.764% when pulling 461dec3 on 125-save-user-info into 27747c5 on dev.

@bfbachmann bfbachmann merged commit 22c3bc6 into dev Sep 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants