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

Command syntax:

dag event sign 
-net <net_name> 
-chain <chain_name> 
-event <event_hash> 
-cert <priv_cert_name>

Options:

-net - name of the Cellframe network. The list of networks can be found in the <Config_dir> \ etc \ network folder folder or received by the Cellframe-Node-Cli Net List command
-chain - the name of Chain. The list of chain can be found in the directory <Config_dir> \ etc \ network \ <network_name> or get the Cellframe-Node-App Net List Chains command
-event - hash of the event
-cert - name of the private root certificate

CLI Example

Command:

cellframe-node-cli dag event sign 
-net foobar 
-chain zerochain 
-event 0x43F9AAF6C632377DBC2E531FE7A706D51B574D6DB239B268F8DB566FB71E91A1 
-cert foobar.root.pvt.1

Response:

Added new sign with cert "foobar.root.pvt.1", event 0x8C386F7B4EF3FA736C0220D4DB193E737D869E6F4606BA48AF55B2E282EA724C placed back in round.new

JSON-RPC Example

JSON-RPC Request - DAG EVENT SIGN

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
}
Link to original