Remove all error checking and type transformation from the gRPC wrappers for the following methods on the SA: - GetRegistration - GetRegistrationByKey - NewRegistration - UpdateRegistration - DeactivateRegistration Update callers of these methods to construct the appropriate protobuf request messages directly, and to consume the protobuf response messages directly. In many cases, this requires changing the way that clients handle the `Jwk` field (from expecting a `JSONWebKey` to expecting a slice of bytes) and the `Contacts` field (from expecting a possibly-nil pointer to relying on the value of the `ContactsPresent` boolean field). Implement two new methods in `sa/model.go` to convert directly between database models and protobuf messages, rather than round-tripping through `core` objects in between. Delete the older methods that converted between database models and `core` objects, as they are no longer necessary. Update test mocks to have the correct signatures, and update tests to not rely on `JSONWebKey` and instead use byte slices. Fixes #5531 |
||
|---|---|---|
| .. | ||
| main.go | ||
| main_test.go | ||