mozilla-services / autograph

Mozilla's digital signature service
https://hub.docker.com/r/mozilla/autograph/
Mozilla Public License 2.0
152 stars 34 forks source link

dedup top-level test and tools/ monitor verification logic #233

Open g-k opened 5 years ago

g-k commented 5 years ago

e.g. for mar they're more or less the same

https://github.com/mozilla-services/autograph/blob/722280be08beaf7c8b397349d749bbdbfa62820a/tools/autograph-monitor/mar.go#L12-L36

https://github.com/mozilla-services/autograph/blob/9a78438bf02700b2680a3af2617155a7fade3dfe/handlers_test.go#L706-L724

Similarly for other signer types. These could move to signer/<signer type> and possibly have a Verifier interface defined for signers to implement.

g-k commented 3 years ago

refs: #593