Add todos for test helpers

This commit is contained in:
mcrakhman 2023-04-21 23:23:07 +02:00
parent e684088ca4
commit 63c797d35b
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

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