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

New STM registration procedure #433

Merged
merged 80 commits into from
Oct 11, 2022
Merged

New STM registration procedure #433

merged 80 commits into from
Oct 11, 2022

Commits on Oct 10, 2022

  1. New STM registration procedure

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    e8187b4 View commit details
    Browse the repository at this point in the history
  2. Missing non-exhaustive patter

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    8e0a530 View commit details
    Browse the repository at this point in the history
  3. New StmInitializer setup

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    cfacd6e View commit details
    Browse the repository at this point in the history
  4. Use serde feature for KES

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    c04c71e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1517046 View commit details
    Browse the repository at this point in the history
  6. Key reg test vector

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    687fd92 View commit details
    Browse the repository at this point in the history
  7. PoolID has size 28

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    1e7e5e3 View commit details
    Browse the repository at this point in the history
  8. lints

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    b519ada View commit details
    Browse the repository at this point in the history
  9. Cargo sort

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    944f7c0 View commit details
    Browse the repository at this point in the history
  10. Use serde for KES

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    3f96f77 View commit details
    Browse the repository at this point in the history
  11. PoolID working with the node

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    325112b View commit details
    Browse the repository at this point in the history
  12. Some leftover from rebase

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    f80b38c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b798b7e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    515fb34 View commit details
    Browse the repository at this point in the history
  15. Add wrap protocol signer and clerk

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    0f44597 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    cb91302 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    93986ef View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    bb1877d View commit details
    Browse the repository at this point in the history
  19. Harmonize ProtocolPartyId vs PoolId types

    As these types represent the same value, that is or not encoded with Bech32.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    25e5a49 View commit details
    Browse the repository at this point in the history
  20. Add 'skip_signer_certification' feature

    So we can smoothly migrate the Signers first and then the Aggregator on the preview network,
    also the Signer certification is not needed in the protocol demo.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    0a9a39a View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5f9e7a8 View commit details
    Browse the repository at this point in the history
  22. to_file for FromShelleyFile types

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    c7b502f View commit details
    Browse the repository at this point in the history
  23. Remove new_epoch function

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    5273684 View commit details
    Browse the repository at this point in the history
  24. KesSig trait missing

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    1365c97 View commit details
    Browse the repository at this point in the history
  25. Add type for encoded keys

    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    78239af View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    d56391c View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    a07d5e8 View commit details
    Browse the repository at this point in the history
  28. Add test only ProtocolKeyRegistration

    To be used on non production usecase such as demo
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    8f2034b View commit details
    Browse the repository at this point in the history
  29. Enhance Key Certification

    Errors, add missing 'close' for KeyRegWrapper, and update signature of the 'register' function
    so that it can handle smooth implementation with other mithril crates.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    7fdeaa7 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    8fc30a7 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    495320a View commit details
    Browse the repository at this point in the history
  32. Update 'NotCertified' types in 'crypto_helper'

    That will be used only for tests and by the protocol demo tool which must stay apart from key certification.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    6adda5a View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    82c9f88 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    206f8fc View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    cb92c26 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    8317f4d View commit details
    Browse the repository at this point in the history
  37. Fix devnet computation of poolId

    That leaded from time to time to interverting the poolId between the pools.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    d28fc9b View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    4cc3ead View commit details
    Browse the repository at this point in the history
  39. Refacto 'allow_skip_signer_certification' feature

    And allow hybrid certification that is enforced only for signers that sign their keys.
    This will help a smooth transition with SPOs and avoid service distruption on GCP.
    This hybrid mode will be decommissionned in a near future.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    06427f3 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    35fe7a5 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    bfdf13b View commit details
    Browse the repository at this point in the history
  42. Add OpCert hash computation

    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    f63e0d6 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    55a5c26 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    3dc3122 View commit details
    Browse the repository at this point in the history
  45. Make test lab test hybrid certification

    Such that half of the signers work with certification and the other half don't.
    Also check that all signers are listed in the final certificate tested.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    ecda61b View commit details
    Browse the repository at this point in the history
  46. Add OpCert compute poolId

    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    5bc94f5 View commit details
    Browse the repository at this point in the history
  47. Make 'party_id' config optional

    Use auto computation of 'party_id' from operational certificate (if provided)
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    4b44a6d View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    4a8af65 View commit details
    Browse the repository at this point in the history
  49. Repeated setup_new

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    5d9dcb8 View commit details
    Browse the repository at this point in the history
  50. Add ColdKeyGenerator implementation

    For tests only
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    6bad138 View commit details
    Browse the repository at this point in the history
  51. Add OpCert factory

    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    c78d890 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    b910419 View commit details
    Browse the repository at this point in the history
  53. Remove temp test data files

    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    30f8acf View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    43b9863 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    a58fb14 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    b76f8fd View commit details
    Browse the repository at this point in the history
  57. Fix devnet Docker images

    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    49e8f94 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    91238b2 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    9363e74 View commit details
    Browse the repository at this point in the history
  60. Upgrade Mithril explorer

    Add a 'Verified Signer' badge for certified signers.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    4e5690f View commit details
    Browse the repository at this point in the history
  61. Fix launch Aggregator launch in devnet

    Following update of arguments precedence in #511
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    04126da View commit details
    Browse the repository at this point in the history
  62. Enhance 'setup_signers' signature

    To avoid 'warning: very complex type used. Consider factoring parts into  definitions' clippy warning.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    ea1022f View commit details
    Browse the repository at this point in the history
  63. Fix KES Period usage

    The KES Period previously used when registering to Aggregator would have evolved when verified by Signer.
    Instead store the KES Period with the other signer material at first.
    In a different commit, the KES Period will be enforced within a valid range given an epoch.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    442d2ec View commit details
    Browse the repository at this point in the history
  64. Enhance KES Period usage

    And some other enahncements seen during peer reviewing.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    82bb727 View commit details
    Browse the repository at this point in the history
  65. Enhance KES Period retrieval in Chain Observer

    This help gracefully handle the operational certificate information returned by cardano cli,
    that can be on multiple lines (number of lines may vary).
    Now, we scan the output and retrieve the JSON part from the first occurrence of '{'.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    b65e89d View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    e769953 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    c591230 View commit details
    Browse the repository at this point in the history
  68. Use Keypair structure from Dalek

    iquerejeta authored and jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    5c79bbf View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    c1a6715 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    1d39e20 View commit details
    Browse the repository at this point in the history
  71. Move 'RegisterError::KeyNonExisting' to common

    And replace its name with 'PartyIdNonExisting'.
    Indeed, this error does not belong to the core libray that is Cardano agnostic.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    2c41c2a View commit details
    Browse the repository at this point in the history
  72. Add 'test_only' feature flag in 'mithril-common'

    This flag is required for test only functions that are used outside of 'mithril-common'.
    It should be activated exclusively on the 'dev-dependencies' configuration block of the crates.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    2569003 View commit details
    Browse the repository at this point in the history
  73. Enhance Hex Encoded types

    Each type reflects now the native type it encodes.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    214abca View commit details
    Browse the repository at this point in the history
  74. Update documentation

    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    95c045e View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    2d03b4b View commit details
    Browse the repository at this point in the history
  76. Enhance test lab infrastructure

    To decide at a higher level if key certification is enabled.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    30ffa3c View commit details
    Browse the repository at this point in the history
  77. Enhance devnet Docker images

    Replace the 'rust:buster' with 'ubuntu:latest' for building image.
    This allows to not rely on libssl1.1 anymore.
    jpraynaud committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    ce7522b View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    2596a7f View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    b105a4a View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2022

  1. Update Docker source images

    Use 'ubuntu:22.04' instead of 'ubuntu:latest'.
    jpraynaud committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    d49cdb4 View commit details
    Browse the repository at this point in the history