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 skeleton for Noto/Zeto domainapi tests #73

Merged
merged 78 commits into from
Aug 29, 2024
Merged

Commits on Aug 22, 2024

  1. Add skeleton for Noto domainapi test

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    82336e1 View commit details
    Browse the repository at this point in the history
  2. Move gRPC listening logic into domain file

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    0937de0 View commit details
    Browse the repository at this point in the history
  3. Add replies and graceful close of gRPC client

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    8a4010c View commit details
    Browse the repository at this point in the history
  4. Fix up logging

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    274f4b2 View commit details
    Browse the repository at this point in the history
  5. Slightly better Gradle trigger for domain test

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    4536c8d View commit details
    Browse the repository at this point in the history
  6. Add in domain config

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    d7a029d View commit details
    Browse the repository at this point in the history
  7. Perform domain deploy using NotoFactory

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    05d06ce View commit details
    Browse the repository at this point in the history
  8. Convert Noto runner to a Go test (instead of a binary)

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    0320ded View commit details
    Browse the repository at this point in the history
  9. Gradle cleanup in kata

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    91739b5 View commit details
    Browse the repository at this point in the history
  10. Fix noto dependency on compiled proto files

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    e7538b6 View commit details
    Browse the repository at this point in the history
  11. Allow starting gRPC over TCP socket or Unix socket

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    c791bf0 View commit details
    Browse the repository at this point in the history
  12. Dockerize testbed runner

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    97d5c78 View commit details
    Browse the repository at this point in the history
  13. Adjust to match latest domainapi interface

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    0b8c3a0 View commit details
    Browse the repository at this point in the history
  14. Add simple transaction submission to noto e2e test

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    b6d9709 View commit details
    Browse the repository at this point in the history
  15. Fix container names for kata component tests

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    d5a49f1 View commit details
    Browse the repository at this point in the history
  16. Include notary address in domain data

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    f05f5a4 View commit details
    Browse the repository at this point in the history
  17. Resolve notary address at deploy time

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    cde097b View commit details
    Browse the repository at this point in the history
  18. Increase test timeout

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    0d28978 View commit details
    Browse the repository at this point in the history
  19. Misc cleanup in noto

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    cc9e600 View commit details
    Browse the repository at this point in the history
  20. noto: Clean up return values from handler

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    77e22a6 View commit details
    Browse the repository at this point in the history
  21. noto: Add functioning states for mint

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    33dfe3a View commit details
    Browse the repository at this point in the history
  22. noto: propagate errors back through domain handler

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    3165008 View commit details
    Browse the repository at this point in the history
  23. noto: add transfer method with basic coin selection

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    23f3b32 View commit details
    Browse the repository at this point in the history
  24. noto: don't emit transaction event yet

    This event doesn't seem to be handled by the platform yet, and the unit
    tests need a slight adjustment when the event is added.
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    00d734e View commit details
    Browse the repository at this point in the history
  25. noto: split up files

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    98c9a65 View commit details
    Browse the repository at this point in the history
  26. Update go.work.sum

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    e4be9e4 View commit details
    Browse the repository at this point in the history
  27. Minor cleanup in build.gradle

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    293b83f View commit details
    Browse the repository at this point in the history
  28. Clean up JSON query

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    3bb173f View commit details
    Browse the repository at this point in the history
  29. noto: Perform proper validation of transactions

    - Resolve from/to addresses
    - Check math before submission
    - Acquire EIP712 signature from sender
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    87c56d6 View commit details
    Browse the repository at this point in the history
  30. noto: split logic into different handlers per method

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    61f97f3 View commit details
    Browse the repository at this point in the history
  31. noto: cleaner definition of domain ABI

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    2862ac1 View commit details
    Browse the repository at this point in the history
  32. Pass input transaction spec in prepare request

    This gives the "prepare" phase more context when building the base ledger
    transaction.
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    27ebfa1 View commit details
    Browse the repository at this point in the history
  33. noto: add Prepare to domain interface

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    9881a63 View commit details
    Browse the repository at this point in the history
  34. noto: add separate "mint" method on base contract

    Also reorganize naming of Noto variants for better clarity.
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    c5e6319 View commit details
    Browse the repository at this point in the history
  35. noto: clean up use of verifiers

    - Ensure notary is resolved properly
    - Only allow notary to mint
    - Don't resolve unnecessary verifiers
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    1d6f119 View commit details
    Browse the repository at this point in the history
  36. noto: clean up validation steps

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    25988a5 View commit details
    Browse the repository at this point in the history
  37. noto: clean up domain init

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    441084b View commit details
    Browse the repository at this point in the history
  38. noto: add basic test for NotoSelfSubmit variant

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    393eb5e View commit details
    Browse the repository at this point in the history
  39. Only dump Docker logs from within the duration of the build

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    c2f02a0 View commit details
    Browse the repository at this point in the history
  40. Include attestation request name in endorsement request

    For transactions that require multiple endorsements, this can help the domain
    to understand which endorsement is being processed with each endorsement
    request.
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    978549a View commit details
    Browse the repository at this point in the history
  41. noto: add transaction handling for NotoSelfSubmit variant

    This variant requires the notary to provide a signature on the assembled
    (masked) transaction values, then allows the sender to perform final
    submission of the transaction. The notary signature is recovered and
    verified on the base ledger.
    
    Whether or not this is a realistic variant for use, it provides validation
    of a multi-endorsement pattern and for domain variants in general.
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    0bf8977 View commit details
    Browse the repository at this point in the history
  42. noto: change receiver var name

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    bae21b4 View commit details
    Browse the repository at this point in the history
  43. noto: remove "from" parameter on transfers

    For now, transfer is always from self.
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    150d1ac View commit details
    Browse the repository at this point in the history
  44. noto: validate ownership of coins before allowing transfer

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    8b2e69b View commit details
    Browse the repository at this point in the history
  45. Hack to fix the constantly failing SQLite component test

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    4fca34c View commit details
    Browse the repository at this point in the history
  46. Create sample Zeto wrapper contract for Paladin

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    7ccca23 View commit details
    Browse the repository at this point in the history
  47. Create skeleton project for a Zeto domain test

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    222dd68 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2024

  1. Rebuild solidity when zeto contracts change

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    1e4ef03 View commit details
    Browse the repository at this point in the history
  2. zeto: working contract deployment with library linkage

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    b982b26 View commit details
    Browse the repository at this point in the history
  3. zeto: basic mint functionality

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    3578952 View commit details
    Browse the repository at this point in the history
  4. noto: naming cleanup

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    6eb519c View commit details
    Browse the repository at this point in the history
  5. Include submodules in PR build

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    90d02f9 View commit details
    Browse the repository at this point in the history
  6. Clean some more things

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    82ad3a0 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Don't insert empty elements in Snark proof

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    719dc9d View commit details
    Browse the repository at this point in the history
  2. Caller needs to select outputs salts

    If salt is not selected by the caller, the caller won't have enough info to
    create states.
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f35acc4 View commit details
    Browse the repository at this point in the history
  3. zeto: add transfer functionality with ZKP

    Known limitations:
    - Global variables are used to pass state data from Assemble to Prepare
    - Only works with exactly 2 input coins and 2 output coins
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    0fb0e2d View commit details
    Browse the repository at this point in the history
  4. zeto: cleanup in handler_transfer

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    0b9ddd7 View commit details
    Browse the repository at this point in the history
  5. Pass full state data to Prepare

    Unclear if this is the final form of this fix, but the "Prepare" phase
    needs the full state data in some cases. This allows removing the
    temporary global variables in the Zeto domain.
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    c0a113c View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. zeto: ensure correct number of input/output states for proof

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    0c021b1 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Configuration menu
    Copy the full SHA
    8560816 View commit details
    Browse the repository at this point in the history
  2. Update Noto test to use latest testbed logic

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a13fac8 View commit details
    Browse the repository at this point in the history
  3. Update Zeto test to use latest testbed logic

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    277c812 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Remove some unneeded items

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    790e020 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b2c074a View commit details
    Browse the repository at this point in the history
  3. Stop all loaded plugins when testbed stops

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    3ad154e View commit details
    Browse the repository at this point in the history
  4. Include full state from "endorse" in "prepare" request

    Rather than just state refs, send the whole state data (which might include
    information needed to prepare the base ledger transaction).
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    a6df956 View commit details
    Browse the repository at this point in the history
  5. zeto: fix remaining integration issues with E2E test

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    8c31b64 View commit details
    Browse the repository at this point in the history
  6. zeto: do not use separate identifier for Babyjubjub keys

    A single identity string can be used to refer to multiple types of keys
    (see fix in #98).
    
    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    ac55b56 View commit details
    Browse the repository at this point in the history
  7. zeto: perform initial deploy more efficiently

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    b4b93dc View commit details
    Browse the repository at this point in the history
  8. Use one loader

    Signed-off-by: Peter Broadhurst <[email protected]>
    peterbroadhurst committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    22bd5c3 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'domainapi-noto' of https://github.com/kaleido-io/paladin

    …into domainapi-noto
    
    Signed-off-by: Peter Broadhurst <[email protected]>
    peterbroadhurst committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    a01fcf8 View commit details
    Browse the repository at this point in the history
  10. Install circom for build

    Signed-off-by: Jim Zhang <[email protected]>
    jimthematrix committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    1810fb2 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6fa44fb View commit details
    Browse the repository at this point in the history
  12. Try a download type and using buildDir

    Signed-off-by: Jim Zhang <[email protected]>
    jimthematrix committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    e19b3cc View commit details
    Browse the repository at this point in the history
  13. Fix install of circom

    Signed-off-by: Andrew Richardson <[email protected]>
    awrichar committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    1570d33 View commit details
    Browse the repository at this point in the history
  14. Revert zeto dependency to pre-upgradeable

    Signed-off-by: Jim Zhang <[email protected]>
    jimthematrix committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    e759e79 View commit details
    Browse the repository at this point in the history
  15. Update to zeto dependency that uses local snarkjs

    Signed-off-by: Jim Zhang <[email protected]>
    jimthematrix committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    4b179fc View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    256ac3d View commit details
    Browse the repository at this point in the history