graph-store: if there is no hash in added node, replace signatures with ~, otherwise check validity of signatures

This commit is contained in:
Logan Allen 2020-07-30 15:02:04 -07:00
parent 7fb50a3f97
commit 871818b241

View File

@ -183,7 +183,9 @@
=/ =validated-portion:store
[parent-hash author.p time-sent.p contents.p]
=/ =hash:store `@ux`(sham validated-portion)
?~ hash.p node
?~ hash.p node(signatures.post *signatures:store)
~| "signatures do not match the calculated hash"
?> (are-signatures-valid:sigs signatures.p hash now.bowl)
~| "hash of post does not match calculated hash"
?> =(hash u.hash.p)
node