Skip to content

Conversation

@dralston168
Copy link
Collaborator

No description provided.

Copy link

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

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

There is a ton of really solid and interesting work here. I feel a bit out of my depth reviewing it, and I'm going to trust your judgment.


// TODO - fill in body

if(password==null||truePassword==null) {
Copy link

Choose a reason for hiding this comment

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

I don't think there is anything wrong with this, but I wouldn't make createNewRep conditional on whatever the current variables store. The idea should be that createNewRep gives you a fresh representation every time.

I'm wondering if the keystore logic could be in a private method that you call after you initialize your variables. That said, I haven't looked at your code deep enough to really make a solid recommendation.


// Copy all keys and metadata from source to this
int sourceSize = localSource.size();
for (int i = 0; i < sourceSize; i++) {
Copy link

Choose a reason for hiding this comment

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

Usually, transferFrom is an O(1) operation. Is there a way to transfer the rep directly without these loops?

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.

2 participants