Documentation ¶
Index ¶
- Constants
- type User
- func (u *User) EncryptPrivateKey() error
- func (u *User) GetCache(c cache.Cache) error
- func (u *User) GetDatabase(db database.Database) error
- func (u *User) NewId() error
- func (u *User) NewKeyEncryptionKey(passphrase string) error
- func (u *User) NewKeyPair() error
- func (u *User) SetCache(c cache.Cache) error
- func (u *User) SetDatabase(db database.Database) error
- func (u *User) String() string
- func (u *User) Validate() error
- type UserServer
Constants ¶
View Source
const ( MaxUint8 = 1<<8 - 1 MaxKeyIds = 1<<(2*8) - 1 MaxNonce = 1<<(10*8) - 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
func NewUser ¶
NewUser creates a user given an ephemeral passphrase. The passphrase should only exist in memory until this function returns.
func (*User) EncryptPrivateKey ¶
func (*User) NewKeyEncryptionKey ¶
func (*User) NewKeyPair ¶
type UserServer ¶
func (*UserServer) CreateUser ¶
func (u *UserServer) CreateUser(ctx context.Context, req *connect.Request[cycapv1.CreateUserRequest]) (*connect.Response[cycapv1.CreateUserResponse], error)
Click to show internal directories.
Click to hide internal directories.