Add todos for test helpers

This commit is contained in:
mcrakhman 2023-04-21 23:23:07 +02:00 committed by Mikhail Iudin
parent 5da565f68c
commit 5709bc99e3
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -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