add random salt and result/error checksum

This commit is contained in:
2025-08-06 15:41:25 +03:00
parent cd9e3ab6c4
commit c08135309f
4 changed files with 47 additions and 20 deletions

View File

@@ -11,10 +11,13 @@ type RPCRequest struct {
}
type RPCResponse struct {
JSONRPC string `json:"jsonrpc"`
ID *json.RawMessage `json:"id"`
Result any `json:"result,omitempty"`
Error any `json:"error,omitempty"`
JSONRPC string `json:"jsonrpc"`
ID *json.RawMessage `json:"id"`
Result any `json:"result,omitempty"`
Error any `json:"error,omitempty"`
ResponsibleNode string `json:"responsible-node,omitempty"`
Salt string `json:"salt,omitempty"`
Checksum string `json:"checksum,omitempty"`
}
const (