Skip to content

Commit

Permalink
Updated ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
jik18001 committed Apr 26, 2022
1 parent e066203 commit ad5470f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 11 additions & 1 deletion CTng/monitor/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,22 @@
- `Check_entity_pom`: check if there is a pom against the provided URL
- `isLogger`: check if the entities is in the Loggers list from the public config file
- `IsAuthority`: check if the entities is in the CAs list from the public config file
- `Check_entity_pom`: check if there is a PoM aganist this entity
- `AccuseEntity`: accuses the entity if its URL is provided
- `Send_to_gossiper`: send the input gossip object to the gossiper

- `PeriodicTasks` : query loggers once per MMD, accuse if the logger is inactive
## monitor_process.go
- `Process_valid_object`:
If the monitor receives a valid sth from a logger or valid revocation information from a CA (both need to be in the form of a gossip object),
this function will send the raw version of the gossip object to the gossiper, wait for gossip_wait_time, check updated local PoM database,
if there is no PoM against the signer of this sth/revocation information, threshold sign this sth/revocation information and send it to the gossiper


## Code Owners
- types.go is written by Finn
- monitor_process.go is written by Jie, reviewed by Finn
- `Queryloggers` and `QueryAuthorities` functions in monitor.go are written by Marcus, reviewed and edited by Finn
- `AccuseEntity` and `Send_to_Gossiper` functions in monitor.go are written by Jie, reviewed by Finn
- `Check_entity_pom` `isLogger` and `IsAuthority` functions monitor.go are written by Jie, reviewed and edited by Finn
- `PeriodicTasks` function in monitor.go is written by Finn
##### Readme written by Jie
2 changes: 0 additions & 2 deletions CTng/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func QueryAuthorities(c *MonitorContext) {

}

//Written by Jie
//This function accuses the entity if the damain name is provided
//It is called when the gossip object received is not valid, or the monitor didn't get response when querying the logger or the CA
//Accused = Domain name of the accused entity (logger etc.)
Expand Down Expand Up @@ -121,7 +120,6 @@ func AccuseEntity(c *MonitorContext, Accused string) {
Send_to_gossiper(c, accusation)
}

//Written by Jie
//Send the input gossip object to its gossiper
func Send_to_gossiper(c *MonitorContext, g gossip.Gossip_object) {
// Convert gossip object to JSON
Expand Down

0 comments on commit ad5470f

Please sign in to comment.