Adds sign to event in the round.new. Hash doesn’t include other signs so event hash doesn’t change upon adding signature.

Request Structure

JSON object:

{
  "method": "dag",
  "subcommand": ["event","sign"],
  "arguments": {
    "net": "network_name",
    "chain": "chain_name",
    "event": "event_hash",
    "cert": "priv_cert_name"
  },
  "id": "1"
}

Parameters: net (network_name) - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received using - Node Command - NET LIST chain - the name of chain (main or zerochain) event - hash of the event cert - name of the private root certificate

If you make a request in the Cellframe network, use parameter chain:zerochain.

Request Structure

JSON object:

curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '
{
  "method": "dag",
  "subcommand": ["event","sign"],
  "arguments": {
    "net": "foobar",
    "chain": "zerochain",
    "event": "0x43F9AAF6C632377DBC2E531FE7A706D51B574D6DB239B268F8DB566FB71E91A1 ",
    "cert": "foobar.root.pvt.1"
  },
  "id": "1"
}'
 

Response:

{
  "type": 0,
  "result": "Added new sign with cert \"foobar.root.pvt.1\", event 0x28B95D8E082CCD1D80CFBDE1499D4797F3C7889F4C56F5478EBD40B47561119C placed back in round.new\n",
  "errors": null,
  "id": 1
}