Skip to content

Grant & Retrieve via Polygon Payments; Pre-release cleanup.#2873

Merged
KPrasch merged 19 commits intonucypher:mainfrom
KPrasch:airship
Mar 24, 2022
Merged

Grant & Retrieve via Polygon Payments; Pre-release cleanup.#2873
KPrasch merged 19 commits intonucypher:mainfrom
KPrasch:airship

Conversation

@KPrasch
Copy link
Copy Markdown
Member

@KPrasch KPrasch commented Feb 23, 2022

Type of PR:
Bugfix & Feature

Required reviews:
2

What this does:

  • Polygon CLI and configuration updates
  • Mitigations for network update metadata pollution
  • Handles SSL certificates as part of RestMiddleware with just-in-time cert fetching
  • Forcibly clear all stored node metadata and certificates on startup
  • Only store peers in memory during runtime
  • Working demos for polygon testnet
  • Relax invalid node logging and errors
  • Bumps probationary period three months
  • Minor code quality improvements (type hints and organization)
  • NUCYPHER_WORKER_ETH_PASSWORD -> NUCYPHER_OPERATOR_ETH_PASSWORD

@KPrasch KPrasch changed the base branch from main to threshold-network February 23, 2022 21:35
@KPrasch KPrasch force-pushed the airship branch 2 times, most recently from 22c252d to 84eb6b3 Compare February 25, 2022 03:45
@derekpierre
Copy link
Copy Markdown
Member

@KPrasch what's needed to get this off of WIP?

@KPrasch
Copy link
Copy Markdown
Member Author

KPrasch commented Mar 3, 2022

First off the dependencies were updated which resulted in new test failures so we'll need to resolve that. Ideally this can be followed up with the complete relocation of contract tests to nucypher-contracts to lessen the impact of SubscriptionManager updates.

@KPrasch KPrasch force-pushed the airship branch 2 times, most recently from db3f764 to ada4435 Compare March 4, 2022 22:57
@KPrasch KPrasch changed the base branch from threshold-network to main March 4, 2022 22:58
@KPrasch KPrasch changed the title [WIP] Granting on 6.0 via examples [WIP] Grant & Retrieve on 6.0 and Polygon Mar 4, 2022
@KPrasch KPrasch force-pushed the airship branch 2 times, most recently from 8b4ac6e to ae41eec Compare March 22, 2022 22:34
KPrasch added a commit to KPrasch/nucypher that referenced this pull request Mar 22, 2022
@KPrasch KPrasch changed the title [WIP] Grant & Retrieve on 6.0 and Polygon Grant & Retrieve via Polygon Payments; Pre-release cleanup. Mar 22, 2022
KPrasch added a commit to KPrasch/nucypher that referenced this pull request Mar 22, 2022
@KPrasch KPrasch marked this pull request as ready for review March 22, 2022 22:44

if not publisher_verifying_key:
publisher_verifying_key = alice_verifying_key
publisher_verifying_key = PublicKey.from_bytes(bytes(publisher_verifying_key))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember removing a line like that :) How do bytes turn up so deep in the call stack?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The demo code is fixed now, right? If so, is this still necessary - the type hint for the function is that publisher_verifying_key should be provided as PublicKey so providing bytes does not adhere to the API - unless we are worried about something else...?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's revisit this issue in a future PR. Other than some negligible inefficiency I don't think there's any negative impact of accepting bytes or a public key here.

Copy link
Copy Markdown
Member

@derekpierre derekpierre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also created PR into airship to improve consistency in the external ip utilities unit test - KPrasch#36.


if not publisher_verifying_key:
publisher_verifying_key = alice_verifying_key
publisher_verifying_key = PublicKey.from_bytes(bytes(publisher_verifying_key))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The demo code is fixed now, right? If so, is this still necessary - the type hint for the function is that publisher_verifying_key should be provided as PublicKey so providing bytes does not adhere to the API - unless we are worried about something else...?

@KPrasch
Copy link
Copy Markdown
Member Author

KPrasch commented Mar 24, 2022

🤠 Merging -- Thanks for the contributions!

@KPrasch KPrasch merged commit b89a319 into nucypher:main Mar 24, 2022
@vepkenez
Copy link
Copy Markdown
Contributor

YES!

@jdbertron
Copy link
Copy Markdown

Yay ! Nice work guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants