Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jik18001 authored Apr 21, 2022
1 parent 9592026 commit f41e6cc
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions CTng/server/Readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
Monitor_ng.go
# 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
##### Monitor_accuseEntity: this function accuses the entity if its URL is provided
##### Monitor_send_to_gossiper: this function send the input gossip object to the gossiper
##### Monitor_process_valid_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/revocation information 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

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
// 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

func Monitor_handle_gossip(c *MonitorContext, w http.ResponseWriter, r *http.Request)
//Handles gossip object it received through HTTP
###### func Monitor_handle_gossip: Handles gossip object it received through HTTP

0 comments on commit f41e6cc

Please sign in to comment.