Conversation
* Use ic-ref master for response authentication support * update for expected IC version
…as array of ints)
This reverts commit 795850f.
|
Netlify deployed agent-rust as draft Link: https://5f979af411f4766877900695--agent-rust.netlify.app |
|
Netlify deployed agent-rust as draft Link: https://5f979faf07d3508472ad5e61--agent-rust.netlify.app |
|
Netlify deployed agent-rust as draft Link: https://5f97a360521fc26c7e9473fb--agent-rust.netlify.app |
|
I think the current problem is that the agent has not implemented calculating the request id of requests with fields that are arrays (sequences). I added a test case that shows the problem: Also, the I will also make |
|
Netlify deployed agent-rust as draft Link: https://5f992b4f4a01644d85425410--agent-rust.netlify.app |
|
Pushed now, sorry |
|
Netlify deployed agent-rust as draft Link: https://5f99e7dff83d3300c3b35da1--agent-rust.netlify.app |
|
Just curious what to watch: what is the relation between this PR and #82? |
|
#82 adds certificate verification, root key fetching, delegations |
ic-agent/src/agent/mod.rs
Outdated
| let sender = match &request { | ||
| SyncContent::QueryRequest { sender, .. } => sender, | ||
| SyncContent::ReadStateRequest { sender, .. } => sender, | ||
| SyncContent::RequestStatusRequest { .. } => &anonymous, |
There was a problem hiding this comment.
Let's remove the RequestStatusRequest type
ic-agent/src/agent/mod.rs
Outdated
| "reject_message".into(), | ||
| ]; | ||
|
|
||
| let reject_code = match certificate.tree.lookup_path(&path_reject_code) { |
There was a problem hiding this comment.
Let's DRY this lookup result handling
hansl
left a comment
There was a problem hiding this comment.
LGTM with the above two comments.
- request id calculation accounts for arrays - HttpErrorPayload for text/plain decoding
Use
read_staterather thanrequest_status.Agent.request_status_rawin place, but reimplemented in terms ofread_state_raw.read_state_rawmethod is not public becauseHashTreeandCertificateare not public.AgentError::HttpErrorto a separate structure in order to be able to implementDisplayandDebugfor only that type.callandcall_rejectedunit tests, because these cases are covered by integration tests and it didn't seem worth it to update them.See also companion PR sdk #1171