You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some types of requests to Nodes in the Pool allowing to use StateProof optimization in Client-Node communication.
3
+
Instead of sending requests to all nodes in the Pool, a client can send a request to a single Node and expect StateProof signed by BLS multi-signature.
4
+
5
+
BLS multi-signature (BLS MS) guaranties that there was a consensus of Nodes which signed some State identified by State RootHash.
6
+
StateProof (SP) is small amount of data which allows to verify particular values against RootHash.
7
+
Combination of BLS MS and SP allows clients to be sure about response of single node is a part of State signed by enough Nodes.
8
+
9
+
## Goals
10
+
Libindy allows to extend building of supported requests via plugged interface and send them.
11
+
It is nice to have a way to support BLS MS and SP verification for these plugged transactions.
12
+
13
+
Implementation of math for SP verification is a bit complicate for plugin logic.
14
+
Therefore libindy should perform all math calculation inside.
15
+
A plugin should provide handler to parse custom reply to fixed data structure.
16
+
17
+
## API
18
+
The signature of the handler is described below together with custom `free` call to deallocate result data.
0 commit comments