feat: rewrite docs
This commit is contained in:
140 files changed
+4555
-701
No files matched your search
+4
-4
@@ -39,7 +39,7 @@ def H(s):
|
||||
|
||||
|
||||
def secret(name):
|
||||
return hashlib.sha256(("varve-spec fixture key: " + name).encode()).digest()
|
||||
return hashlib.sha256(("manuspec fixture key: " + name).encode()).digest()
|
||||
|
||||
|
||||
KEYS = {
|
||||
@@ -48,7 +48,7 @@ KEYS = {
|
||||
"ben-spot": {"name": "Ben Example", "purposes": ["spot-check"]},
|
||||
"cara": {"name": "Cara Example", "purposes": ["sign"]},
|
||||
}
|
||||
TEAM_SECRET = hashlib.sha256(b"varve-spec fixture team secret: smithlab").digest()
|
||||
TEAM_SECRET = hashlib.sha256(b"manuspec fixture team secret: smithlab").digest()
|
||||
|
||||
|
||||
def roster():
|
||||
@@ -513,8 +513,8 @@ def package_files(src, key, names, side, final, records, receipts=None, roster_r
|
||||
files["roster.json"] = (jcs.dumps(roster_rec) + "\n").encode()
|
||||
files["witnesses.json"] = (jcs.dumps({"witnesses": witnesses}) + "\n").encode()
|
||||
files["provenance.json"] = (jcs.dumps({
|
||||
"tools": [{"name": "varve-spec tools/build.py", "version": VERSION}],
|
||||
"stages": [{"stage": "hand", "processor": "local", "tool": "varve-spec tools/build.py"}],
|
||||
"tools": [{"name": "manuspec tools/build.py", "version": VERSION}],
|
||||
"stages": [{"stage": "hand", "processor": "local", "tool": "manuspec tools/build.py"}],
|
||||
"note": "Built by hand for the conformance suite; every reading is synthetic."}) + "\n").encode()
|
||||
levels = RC.effective_levels(nodes, vals, receipts or [], ROSTER_BY_ID if roster_rec else {})
|
||||
d = dict(src["document"])
|
||||
|
||||
Reference in new issue
Block a user