diff --git a/CTng/HTTP/Readme.md b/CTng/HTTP/Readme.md index 668a908..28b2f0b 100644 --- a/CTng/HTTP/Readme.md +++ b/CTng/HTTP/Readme.md @@ -20,11 +20,14 @@ and update the Timer_CArs_LastCheckIn. Monitor_ng.go -func Monitor_accuseEntity(c *crypto.CryptoConfig, Accused string) (gossip.Gossip_object, error) //this function accuses the entity if its URL is provided -func Monitor_send_to_gossiper(c *MonitorContext, g gossip.Gossip_object) //this function send the input gossip object to the gossiper +func Monitor_accuseEntity(c *crypto.CryptoConfig, Accused string) (gossip.Gossip_object, error) +//this function accuses the entity if its URL is provided + +func Monitor_send_to_gossiper(c *MonitorContext, g gossip.Gossip_object) +//this function send the input gossip object to the gossiper + func Monitor_process_valid_object(c *MonitorContext, g gossip.Gossip_object) -//if the logger sends the sth to the monitor,this function will send the raw version to the gossiper, wait for gossip_wait_time, check its updated PoM database, -if the signer of this sth is not in it, threshold sign this sth and send it to the gossiper +//if the logger sends the sth to the monitor,this function will send the raw version to the gossiper, wait for gossip_wait_time, check its updated PoM database, if the signer of this sth is not in it, threshold sign this sth and send it to the gossiper // Same thing applies to revocation information and CA //it will store all the valid gossip object from its own gossiper, including different types of PoMs and fully signed sths and revocation information diff --git a/CTng/PoM/Readme.md b/CTng/PoM/Readme.md new file mode 100644 index 0000000..df957d6 --- /dev/null +++ b/CTng/PoM/Readme.md @@ -0,0 +1,2 @@ +This file mainly deals with Proof of Misbehavior generated after receiving threshold number of accusations (as part of the process accusations). +This file also contains the process accusations function for the gossiper to invoke.