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

#134: Change MD5 hash construction to avoid false-positives #139

Closed
wants to merge 7 commits into from
Closed

#134: Change MD5 hash construction to avoid false-positives #139

wants to merge 7 commits into from

Conversation

antler5
Copy link

@antler5 antler5 commented Jul 23, 2021

#134

Note that this will cause current transactions to become unique due to the change in MD5 hash construction,
which may be mitigated by augmenting --skip-dupes or --confirm-dupes with --depreciated-md5.

Note that this will cause current transactions to become unique due to
the change in MD5 hash construction.
Antlers added 6 commits July 22, 2021 21:35
Includes a new transaction in transfer.csv, and a small header for
parsed_transfer.txt, which already wasn't the literal (ie. untouched)
result of parsing transfer.csv.
It doesn't look like this is used for anything, and the tests don't
fail without it, but correct me if I'm wrong ofc
A little trigger-happy with the force-pushes tonight..
EDIT: ..really trigger-happy, I just keeping seeing little things;
but I figure no-one's pulled or merged or looked at it yet.
@antler5
Copy link
Author

antler5 commented Jul 25, 2021

A little trigger-happy with the force pushes there; I think it's worth it for the clean commit history, and just keep thinking that's gonna be the last little tweak :c
Will be stable now

@antler5
Copy link
Author

antler5 commented Jul 25, 2021

I would like to re-work this to be able to update hashes in-place, if only to learn more of python, as I don't know where to start with file editing and streams short of calling out to sed :p
Or I'd just my records as tidy as they can reasonably be.

It would probably work best with another argument though, and I'm hesitant with that, least the handling of this depreciated footnote grow to take up more space than it ought to be welcome to. Detecting and updating old hashes could just as well be an additional helper script, which may be best if one would like to preserve the precedent of the ledger file going touched unless it's also used as the output file. Could even make the '--depreciated-md5' arg unnecessary,?

Better argument names are always welcome.

@antler5 antler5 deleted the branch quentinsf:master July 31, 2021 23:34
@antler5 antler5 closed this Jul 31, 2021
@antler5 antler5 deleted the master branch July 31, 2021 23:34
@antler5 antler5 restored the master branch July 31, 2021 23:35
@antler5 antler5 deleted the master branch July 31, 2021 23:41
@antler5
Copy link
Author

antler5 commented Aug 1, 2021

Re-submitted as #140 because I was naively working on master and, as it happens, Github doesn't let you change your default branch, only rename it.

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.

1 participant