From 5709bc99e31e6a8caa469966513c4ede35c8e721 Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Fri, 21 Apr 2023 23:23:07 +0200 Subject: [PATCH] Add todos for test helpers --- commonspace/payloads_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commonspace/payloads_test.go b/commonspace/payloads_test.go index 65bf917d..899b56dd 100644 --- a/commonspace/payloads_test.go +++ b/commonspace/payloads_test.go @@ -541,6 +541,7 @@ func rawSettingsPayload(accountKeys *accountdata.AccountKeys, spaceId, aclHeadId } func rawAclWithId(accountKeys *accountdata.AccountKeys, spaceId string) (aclHeadId string, rawWithId *aclrecordproto.RawAclRecordWithId, err error) { + // TODO: use same storage creation methods as we use in spaces readKeyBytes := make([]byte, 32) _, err = rand.Read(readKeyBytes) if err != nil { @@ -602,6 +603,7 @@ func rawAclWithId(accountKeys *accountdata.AccountKeys, spaceId string) (aclHead } func rawHeaderWithId(accountKeys *accountdata.AccountKeys) (spaceId string, rawWithId *spacesyncproto.RawSpaceHeaderWithId, err error) { + // TODO: use same storage creation methods as we use in spaces identity, err := accountKeys.SignKey.GetPublic().Marshall() if err != nil { return