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

Refactoring timestamps #842

Merged
merged 24 commits into from
Feb 17, 2022
Merged

Refactoring timestamps #842

merged 24 commits into from
Feb 17, 2022

Commits on Feb 9, 2022

  1. Configuration menu
    Copy the full SHA
    d2dada6 View commit details
    Browse the repository at this point in the history
  2. Revert epochs to float64

    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    05c5ce6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6eb3730 View commit details
    Browse the repository at this point in the history
  4. Update quicksim2.nim

    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    8e9f19e View commit details
    Browse the repository at this point in the history
  5. Add files via upload

    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    a120c3c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6a0ab69 View commit details
    Browse the repository at this point in the history
  7. Add files via upload

    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    5b20f08 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    029acd2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f9720e4 View commit details
    Browse the repository at this point in the history
  10. Rln-relay integration into chat2 (#835)

    * adds ProofMetadata
    
    * adds EPOCH_INTERVAL
    
    * adds messageLog field
    
    * adds updateLog, toEpoch, fromEpoch, getEpoch, compareTo
    
    * adds unit test for toEpoch and fromEpoch
    
    * adds unit test for Epoch comparison
    
    * adds result codes for updateLog
    
    * adds unit test for update log
    
    * renames epoch related consts
    
    * modifies updateLog with new return type and new logic of spam detection
    
    * adds unit text for the modified updateLog
    
    * changes max epoch gap type size
    
    * splits updateLog into two procs isSpam and updateLog
    
    * updates unittests
    
    * fixes a bug, returns false when the message is not spam
    
    * renames messageLog to nullifierLog
    
    * renames isSpam to hasDuplicate
    
    * updates the rln validator, adds comments
    
    * adds appendRLNProof proc plus some code beatification
    
    * unit test for validate message
    
    * adds unhappy test to validateMessage unit test
    
    * renames EPOCH_UNIT_SECONDS
    
    * renames MAX_CLOCK_GAP_SECONDS
    
    * WIP: integration test
    
    * fixes compile errors
    
    * sets a real epoch value
    
    * updates on old unittests
    
    * adds comments to the rln relay tests
    
    * adds more comments
    
    * makes rln import conditional
    
    * adds todos
    
    * adds more todos
    
    * adds rln-relay mount process into chat2
    
    * further todos
    
    * logs contentTopic
    
    * introduces rln relay configs
    
    * changes default pubsub topic
    
    * adds contentTopic config
    
    * imports rln relay dependencies
    
    * consolidates imports
    
    * removes module identifier from ContentTopic
    
    * adds contentTopic field
    
    * adds contentTopic argument to mountRlnRelay calls
    
    * appends rln proof to chat2 messages
    
    * changes the default chat2 contentTopic
    
    * adds missing content topic fields
    
    * fixes a bug
    
    * adds a new logic about empty content topics
    
    * appends proof only when rln flag is active
    
    * removes unnecessary todos
    
    * fixes an indentation issue
    
    * adds log messages
    
    * verifies the proof against the concatenation of msg payload and content topic
    
    * a bug fix
    
    * removes duplicate epoch time calculation
    
    * updates log level to trace
    
    * updates default rln-relay content topic
    
    * adds support for empty content topics
    
    * updates changelog
    
    * changelog updates
    
    * removes a commented code block
    
    * updates addRLNRelayValidator string doc
    staheri14 authored and s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    6aea51d View commit details
    Browse the repository at this point in the history
  11. Squashed commit of the following:

    commit bc36c99
    Merge: dc2b294 5a77d6e
    Author: G <28568419+s1fr0@users.noreply.github.com>
    Date:   Sat Feb 5 01:10:06 2022 +0100
    
        Merge branch 'master' into int64-timestamps-ns
    
    commit dc2b294
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Sat Feb 5 00:24:45 2022 +0100
    
        Fix
    
    commit f97b95a
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Sat Feb 5 00:13:18 2022 +0100
    
        Missing import
    
    commit 060c4f8
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Sat Feb 5 00:10:36 2022 +0100
    
        Fixed typo
    
    commit 08ca99b
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Fri Feb 4 23:59:20 2022 +0100
    
        Time util file
    
    commit 2b5c360
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Fri Feb 4 23:33:20 2022 +0100
    
        Moved time utility functions to utils/time
    
    commit fdaf121
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Fri Feb 4 23:10:25 2022 +0100
    
        Fix comment
    
    commit c7e06ab
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Fri Feb 4 23:04:13 2022 +0100
    
        Restore previous migration script
    
    commit 80282db
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Fri Feb 4 22:54:15 2022 +0100
    
        Typo
    
    commit b9d67f8
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Fri Feb 4 22:49:29 2022 +0100
    
        Added utilities to get int64 nanosecond, microsecond, millisecond time resolution from float
    
    commit 0130d49
    Author: s1fr0 <28568419+s1fr0@users.noreply.github.com>
    Date:   Fri Feb 4 22:36:35 2022 +0100
    
        Switched to nanoseconds support.
    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    8183402 View commit details
    Browse the repository at this point in the history
  12. Update CHANGELOG.md

    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    63f7926 View commit details
    Browse the repository at this point in the history
  13. Create 00003_convertTimestampsToInt64.up.sql

    Migration script
    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    3ec1fb0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3e6eaec View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    dbddfb5 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    363916f View commit details
    Browse the repository at this point in the history
  17. Addressed reviewers' comments

    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    c816024 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a463f35 View commit details
    Browse the repository at this point in the history
  19. Fix

    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    c436323 View commit details
    Browse the repository at this point in the history
  20. No need for float

    s1fr0 committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    7072c45 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    a21de43 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2022

  1. Configuration menu
    Copy the full SHA
    cca8b4c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ac4f65 View commit details
    Browse the repository at this point in the history
  3. Further fixes

    s1fr0 committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    fe09c2a View commit details
    Browse the repository at this point in the history