feat: initial user identity structs

This commit is contained in:
Derrick Hammer 2024-01-05 08:46:08 -05:00
parent 93782c9db7
commit 22e72da15c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
package metadata
import "git.lumeweb.com/LumeWeb/libs5-go/encoding"
type UserIdentityMetadata struct {
UserID *encoding.CID
Details UserIdentityMetadataDetails
SigningKeys []UserIdentityPublicKey
EncryptionKeys []UserIdentityPublicKey
Links map[int]*encoding.CID
}

View File

@ -0,0 +1,7 @@
package metadata
type UserIdentityMetadataDetails struct {
Created int64
CreatedBy string
Modified int64
}

View File

@ -0,0 +1,5 @@
package metadata
type UserIdentityPublicKey struct {
Key []byte
}