go-spacemesh
go-spacemesh copied to clipboard
Support poet certificates
Motivation
Closes #5204
Changes
Added support for registering in the poet services using a certificate instead of PoW. It still supports both ways and will fallback to the PoW if:
- certificate is not available (couldn't certify)
- the poet service doesn't support certificates
There is a new interface in activation
package certifierService
that provides a generic way to obtain a certificate for a given poet. It abstracts away the fact that a POST proof is used - it is hidden in certifierServiceClient
, which could in future have different implementations for other poet services.
Changed the initial_post
table to post
as it now holds the latest POST proof. Relying solely on initial post proof OR an existing ATX could not work in case of a checkpoint (in fact this way it failed systests).
Test Plan
- added UTs
- added system tests
bors try
Codecov Report
Attention: Patch coverage is 79.16667%
with 80 lines
in your changes are missing coverage. Please review.
Project coverage is 80.7%. Comparing base (
166e015
) to head (7f83cab
). Report is 4 commits behind head on develop.
Additional details and impacted files
@@ Coverage Diff @@
## develop #5221 +/- ##
=========================================
- Coverage 80.8% 80.7% -0.1%
=========================================
Files 287 290 +3
Lines 29905 30525 +620
=========================================
+ Hits 24182 24659 +477
- Misses 4140 4234 +94
- Partials 1583 1632 +49
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
bors try
bors try
bors try
bors try
bors try
bors try
bors try
bors try
bors try
try
Already running a review
bors try
bors try
bors try
bors try
bors try