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 mediator and simple client implementation #977

Merged
merged 78 commits into from
Oct 24, 2023
Merged

Commits on Oct 13, 2023

  1. Mediator oob invitation poc

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    1ca8468 View commit details
    Browse the repository at this point in the history
  2. catch panics

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    066cfbf View commit details
    Browse the repository at this point in the history
  3. Take endpoint root address from environment variable

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    9b3f954 View commit details
    Browse the repository at this point in the history
  4. Add readme with instructions

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    ab1ca13 View commit details
    Browse the repository at this point in the history
  5. Add simple client implementation

    Has majorly common code with mediator agent.
    It's in essence one hybrid, with organized code. Then again, aries agents are meant to be horizontal.
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    3ee2b5f View commit details
    Browse the repository at this point in the history
  6. Add binary (functional) crate for client

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    0108c99 View commit details
    Browse the repository at this point in the history
  7. docs: update mediator/README.md

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    11fe11f View commit details
    Browse the repository at this point in the history
  8. util fixes

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    0877882 View commit details
    Browse the repository at this point in the history
  9. Implement client TUI

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    eef2113 View commit details
    Browse the repository at this point in the history
  10. Add tui client to readme

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    0713b97 View commit details
    Browse the repository at this point in the history
  11. Move main binary crate to dedicated file under ./bin

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    0b78a30 View commit details
    Browse the repository at this point in the history
  12. feat(mediator-client): better error handling, pack message before sen…

    …ding
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    98bfe70 View commit details
    Browse the repository at this point in the history
  13. feat(mediator): respond to connection request

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    59cf62f View commit details
    Browse the repository at this point in the history
  14. feat(mediator): simplify result passing

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    f55ce39 View commit details
    Browse the repository at this point in the history
  15. feat(mediator-client): complete connection

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    6f5996f View commit details
    Browse the repository at this point in the history
  16. feat(mediator): construct agent in main binary crate itself

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    35aa32e View commit details
    Browse the repository at this point in the history
  17. Clippy fixes

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    3d3cfd7 View commit details
    Browse the repository at this point in the history
  18. chore: cargo +nightly fmt

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    2cb5aed View commit details
    Browse the repository at this point in the history
  19. feat(mediator): Use UnpackMessage struct newly defined in aries

    Previously using struct defined in vdrtools. Use aries-vcx definition instead.
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    c951359 View commit details
    Browse the repository at this point in the history
  20. build(deps): add xum-test-server (containing mediator service utils) …

    …as dependency.
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    b60b5de View commit details
    Browse the repository at this point in the history
  21. feat(agent): add dependency on storage aka persistence

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    52ecd88 View commit details
    Browse the repository at this point in the history
  22. feat(agent): Make agent not generic.

    Individual fields may be dynamic instead.
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    9e86d85 View commit details
    Browse the repository at this point in the history
  23. feat(mediator): persistance poc.

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    c83c99f View commit details
    Browse the repository at this point in the history
  24. chore(agent): Synchronize with changers in aries-vcx

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    6ffa1ba View commit details
    Browse the repository at this point in the history
  25. chore(lint): cargo +nightly fmt

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    5c24d58 View commit details
    Browse the repository at this point in the history
  26. feat(mediator-client): add functions to save contact info

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    75bb097 View commit details
    Browse the repository at this point in the history
  27. chore(refactor): move tui.rs

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    5b0c0a9 View commit details
    Browse the repository at this point in the history
  28. feat(agent-client): Add function to list saved accounts

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    b1a4a40 View commit details
    Browse the repository at this point in the history
  29. feat(client-tui): Add ui to list contacts.

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    40b6c67 View commit details
    Browse the repository at this point in the history
  30. chore: Use generic agent as we now need explicit wallet type in some …

    …aries-vcz util funcs
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    2611560 View commit details
    Browse the repository at this point in the history
  31. chore: cargo +nightly fmt

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    bca6679 View commit details
    Browse the repository at this point in the history
  32. Add json endpoint for oob invite. and make existing one flexible

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    696d251 View commit details
    Browse the repository at this point in the history
  33. tests(mediator-oob): Add tests for mediator server oob endpoints

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    4036be1 View commit details
    Browse the repository at this point in the history
  34. feat(mediator-client): Implement complete connection flow in agent, a…

    …nd add tests
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    7c3cd45 View commit details
    Browse the repository at this point in the history
  35. chore(mediator-client): debloat

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    1807345 View commit details
    Browse the repository at this point in the history
  36. feat(mediator-coord): Update agent struct (generic vs type erasure) a…

    …nd add initial support for mediator coord.
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    18613ee View commit details
    Browse the repository at this point in the history
  37. feat(mediator-coord): fixes and improvements while adding tests

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    d63ff8b View commit details
    Browse the repository at this point in the history
  38. feat(mediator-coord): respond with routing key in mediator grant message

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    298650a View commit details
    Browse the repository at this point in the history
  39. chore: improve test slightly - assert expected data received.

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    88951c6 View commit details
    Browse the repository at this point in the history
  40. chore: cargo +nightly fmt

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    67b5279 View commit details
    Browse the repository at this point in the history
  41. suggestions from pr review

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    25bf892 View commit details
    Browse the repository at this point in the history
  42. build(deps): update to regular sqlx in sync with transition in aries-vcx

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    4af6127 View commit details
    Browse the repository at this point in the history
  43. ci: Add mediator ci/testing to aries-vcx

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    4687914 View commit details
    Browse the repository at this point in the history
  44. ci: Add mediator ci/testing to aries-vcx

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    142abd9 View commit details
    Browse the repository at this point in the history
  45. ci(mediator): test ci on single branch only first.

    also separate workflow.
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    5960f1c View commit details
    Browse the repository at this point in the history
  46. ci: update mediator.pr.yml

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    296684b View commit details
    Browse the repository at this point in the history
  47. chore: fix typo in github ci file

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    608a646 View commit details
    Browse the repository at this point in the history
  48. chore: cargo clippy fixes

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    f810a9e View commit details
    Browse the repository at this point in the history
  49. fix: add missing migrations (for mysql database)

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    293478d View commit details
    Browse the repository at this point in the history
  50. chore: cargo +nightly fmt

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    04fe2e3 View commit details
    Browse the repository at this point in the history
  51. chore & fix: clippy, run binary along with tests

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    b01ac46 View commit details
    Browse the repository at this point in the history
  52. feat(mediator-coord): support all mediation-coord methods.

    and add tests !
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    e3a5952 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. refactor(mediator): step1: separate concerns,explicit pathname

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    240ea69 View commit details
    Browse the repository at this point in the history
  2. chore: cargo +nightly fmt

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    271df64 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. refactor(mediator): move to different subdirectory

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    fde73dc View commit details
    Browse the repository at this point in the history
  2. refactor: regular target dir

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    8395967 View commit details
    Browse the repository at this point in the history
  3. refactor(mediator): conditional compilation of client tui.

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    38df22b View commit details
    Browse the repository at this point in the history
  4. chore: delete Cargo.lock

    The workspace Cargo.lock will be used since mediator is now part of workspace.
    This can be removed
    
    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    8386049 View commit details
    Browse the repository at this point in the history
  5. refactor: move client features behind feature flags

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    77fdaec View commit details
    Browse the repository at this point in the history
  6. cargo +nightly fmt

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    ca77ca0 View commit details
    Browse the repository at this point in the history
  7. refactor: inline mediation code (including mediator persistence)

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    f7a459f View commit details
    Browse the repository at this point in the history
  8. cargo +nightly fmt

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    45842ec View commit details
    Browse the repository at this point in the history
  9. clippy fixes

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    7e6f468 View commit details
    Browse the repository at this point in the history
  10. cargo +nightly fmt inlined package

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    b11bd27 View commit details
    Browse the repository at this point in the history
  11. refactor: comment out unimplemented features

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    05cea28 View commit details
    Browse the repository at this point in the history
  12. refactor: move didcomm+protocol handlers to separate layer

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    70c36e1 View commit details
    Browse the repository at this point in the history
  13. chore: small cleanup changes.

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    ed87eba View commit details
    Browse the repository at this point in the history
  14. ci(mediator): ci fixes and other fixes

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    a02c1fe View commit details
    Browse the repository at this point in the history
  15. chore(mediator-client): cleanup agent client code

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    4e2f09a View commit details
    Browse the repository at this point in the history
  16. docs: Update readme, and client endpoint

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    8a7a45b View commit details
    Browse the repository at this point in the history
  17. build(deps): update version number after refactor

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    7d351cf View commit details
    Browse the repository at this point in the history
  18. ci: update sqlx database migrations path

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    7474032 View commit details
    Browse the repository at this point in the history
  19. test: separate repeated pieces of code into own functions

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    03053f3 View commit details
    Browse the repository at this point in the history
  20. chore: cargo clipy --tests

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    2b4cc37 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. refactor: rename AgentMaker -> AgentBuilder

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    fbc0987 View commit details
    Browse the repository at this point in the history
  2. refactor(mediator-client): move to separate package

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    df49c68 View commit details
    Browse the repository at this point in the history
  3. refactor(mediator-client-tui): move to separate package

    Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
    nain-F49FF806 committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    e020eba View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Merge branch 'main' into nain/mediator-client

    Signed-off-by: Patrik <patrik.stas@absa.africa>
    Patrik-Stas authored Oct 24, 2023
    Configuration menu
    Copy the full SHA
    23fd9fa View commit details
    Browse the repository at this point in the history