RpcClient missing state root related methods#644
Conversation
|
@ZhangTao1596 can a proof be verified locally? w/o an RPC call I mean? |
Locally use Or rpc neo-modules/src/StateService/StatePlugin.cs Line 230 in 50f0473 |
Is there a way to get the MPTTrie code separately from the StateService plugin? At least the proof code? |
|
Ping @erikzhang @shargon @neo-project/core |
| Convert.FromBase64String(j["value"].AsString()) | ||
| )) | ||
| .ToArray(), | ||
| FirstProof = ProofFromJson(json["firstProof"]), |
There was a problem hiding this comment.
THis matches the code in StateService plugin https://github.com/neo-project/neo-modules/blob/master/src/StateService/StatePlugin.cs#L300
There was a problem hiding this comment.
I think that we should change StateServie, all json is using the same rules except this
There was a problem hiding this comment.
I personally don't think it's worth the churn to change the casing on a JSON field, but I'm happy to change this PR if we change state service
You mean put mpt code into a separated nuget package? |
A separate .NET class library and nuget package yes . I opened #648 to track this |
shargon
left a comment
There was a problem hiding this comment.
We can merge it and fix the json in another PR later
|
Tested OK. |
Fixes #635
Also fixes #646
Note this is a draft PR until #638 is merged