any-sync/pkg/acl/account/accountdata.go
2022-09-13 10:44:02 +02:00

16 lines
585 B
Go

package account
import (
"github.com/anytypeio/go-anytype-infrastructure-experiments/util/keys"
"github.com/anytypeio/go-anytype-infrastructure-experiments/util/keys/asymmetric/encryptionkey"
"github.com/anytypeio/go-anytype-infrastructure-experiments/util/keys/asymmetric/signingkey"
)
type AccountData struct { // TODO: create a convenient constructor for this
// Identity is non utf8 encoded, but we use this type, to eliminate copying between []byte to string conversions
Identity string
SignKey signingkey.PrivKey
EncKey encryptionkey.PrivKey
Decoder keys.Decoder
}