Browse Source

add hash type

main
John-Mark Gurney 5 years ago
parent
commit
af2e10943e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      README.md

+ 5
- 1
README.md View File

@@ -39,7 +39,7 @@ Look at adding units.

### Hash String

The hash string is name of hash followed by a colon followed by the hex string.
The hash string is name of hash (hash type) followed by a colon followed by the hex string (hash value).

The list of valid hashes is:
- sha256
@@ -49,6 +49,10 @@ The list of valid hashes is:

A reference is the UUID optionally followed by two dashes (--) followed by the modified date of the object. The modified date is neccessary in some cases to know what version of the object is being referenced.

### Hashes

For storing multiple hashes, a hashes type is used. This will be serialized as a list of hash strings. The list is used to reduce serialization overhead, and when loaded, may be parsed out into a dictionary for faster lookup. Only one hash string of each hash type is allowed. If there are duplicates, the object is invalid and MUST be ignored.

## Objects

These are the nodes that contain a majority of the data.


Loading…
Cancel
Save