From 871818b24100ae0eee43a56a8fe4ec590f6a5164 Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Thu, 30 Jul 2020 15:02:04 -0700 Subject: [PATCH] graph-store: if there is no hash in added node, replace signatures with ~, otherwise check validity of signatures --- pkg/arvo/app/graph-store.hoon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/arvo/app/graph-store.hoon b/pkg/arvo/app/graph-store.hoon index ffc2317362..5d901f781d 100644 --- a/pkg/arvo/app/graph-store.hoon +++ b/pkg/arvo/app/graph-store.hoon @@ -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