func (cac StorageAuthorityClient) GetRegistrationByKey(key jose.JsonWebKey) (reg core.Registration, err error) { jsonKey, err := key.MarshalJSON() if err != nil { return } jsonReg, err := cac.rpc.DispatchSync(MethodGetRegistration, jsonKey) if err != nil { return } err = json.Unmarshal(jsonReg, ®) return }