1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Add sym key

This commit is contained in:
mcrakhman 2023-03-24 13:01:53 +01:00 committed by Mikhail Iudin
parent 3a07939b01
commit 7c4abdbb8c
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
13 changed files with 112 additions and 134 deletions

View file

@ -5,8 +5,8 @@ import (
"github.com/anytypeio/any-sync/commonspace/object/keychain"
"github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto"
"github.com/anytypeio/any-sync/util/cidutil"
"github.com/anytypeio/any-sync/util/crypto"
"github.com/anytypeio/any-sync/util/keys/asymmetric/signingkey"
"github.com/anytypeio/any-sync/util/keys/symmetric"
"github.com/gogo/protobuf/proto"
"time"
)
@ -21,7 +21,7 @@ type BuilderContent struct {
Identity []byte
IsSnapshot bool
SigningKey signingkey.PrivKey
ReadKey *symmetric.Key
ReadKey *crypto.AESKey
Content []byte
}