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

Add support for hash chaining to detect modifications in postings #2300

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Commits on Nov 23, 2023

  1. Add support for hash chaining to detect modifications in postings

    The following details of a posting contribute to its hash:
    
      fullname of account
      string representation of amount
    
    Each posting hashes contributes to the transaction hash, which is compromised
    of:
    
      previous transaction’s hash (as encountered in parsing order)
      actual date
      optional auxiliary date
      optional code
      payee
      hashes of all postings
    
    Note that this means that changes in the “code” or any of the comments
    jwiegley committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    f4c56d1 View commit details
    Browse the repository at this point in the history
  2. --hashes option requires an argument to specify the algorithm

    At the moment only "sha512" or "SHA512" is accepted, but this could extend to
    more algorithms in the future.
    jwiegley committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    0ddea87 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e2e4716 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    853374b View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2023

  1. Make xact hashes independent of posting order

    Also, support matching provided hashes against a prefixed of the generated
    hash.
    jwiegley committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    55287a0 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. Configuration menu
    Copy the full SHA
    8f2d712 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2023

  1. Configuration menu
    Copy the full SHA
    0c808e0 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. Configuration menu
    Copy the full SHA
    28c10eb View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Update doc/ledger.1

    Co-authored-by: Alexis Hildebrandt <afh@surryhill.net>
    jwiegley and afh committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    d8c341d View commit details
    Browse the repository at this point in the history
  2. Update doc/ledger.1

    Co-authored-by: Alexis Hildebrandt <afh@surryhill.net>
    jwiegley and afh committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    d4eff3d View commit details
    Browse the repository at this point in the history
  3. Update src/sha512.cc

    Co-authored-by: Alexis Hildebrandt <afh@surryhill.net>
    jwiegley and afh committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    845ccb5 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. Update src/sha512.cc

    Co-authored-by: Alexis Hildebrandt <afh@surryhill.net>
    jwiegley and afh committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    ce5664e View commit details
    Browse the repository at this point in the history
  2. Minor doc update

    jwiegley committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    b5161c9 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. Type signature fix

    jwiegley committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    c729035 View commit details
    Browse the repository at this point in the history
  2. Revert a type change

    jwiegley committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    0f723d2 View commit details
    Browse the repository at this point in the history
  3. Try something else

    jwiegley committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    43a173d View commit details
    Browse the repository at this point in the history
  4. Fix return type of SHA512

    jwiegley committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    8b346cf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    82f98d7 View commit details
    Browse the repository at this point in the history
  6. Include sys/types.h

    jwiegley committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    c5fa5fa View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2499963 View commit details
    Browse the repository at this point in the history
  8. Change one prototype

    jwiegley committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    bea3498 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8d43d4c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4514248 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2023

  1. Configuration menu
    Copy the full SHA
    f24640b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cf0fadf View commit details
    Browse the repository at this point in the history
  3. Another whitespace change

    jwiegley committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    60010af View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. Configuration menu
    Copy the full SHA
    2f732b9 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2024

  1. Configuration menu
    Copy the full SHA
    a098d7f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    baddd0e View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. Configuration menu
    Copy the full SHA
    33a70ca View commit details
    Browse the repository at this point in the history