-
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
3 changed files
with
27 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Monitor Implementation | ||
|
||
## Contents | ||
- `types.go`: type declarations for monitor context and some basic monitor methods definitions | ||
- `monitor.go`: implementation of some monitor functions that will be used by monitor_server in the server folder | ||
- `monitor_process.go`: contains only the process valid gossip object function | ||
|
||
## types.go | ||
-`Monitor_context`: monitor context is a object that contains all the configuration and storage information about the monitor | ||
- `methods`: internal methods defined in this file includes savestorage, loadstorage, getobject, isduplicate, and store object | ||
## monitor.go | ||
- `Queryloggers`: HTTP get request send to loggers | ||
- `QueryAuthorities`: HTTP get request send to CAs | ||
- `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 | ||
- `AccuseEntity`: accuses the entity if its URL is provided | ||
- `Send_to_gossiper`: send the input gossip object to the gossiper | ||
|
||
## monitor_process.go | ||
- `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 |
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
This file was deleted.
Oops, something went wrong.