-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |