Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidToken is returned when the token is invalid ErrInvalidToken = fmt.Errorf("invalid token") )
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
// DID of the user
Did string `json:"_id"`
// DID document of the primary identity
Username string `json:"username"`
// contains filtered or unexported fields
}
func NewUser ¶
func NewUser(c controller.Controller, username string) *User
func (*User) PrimaryIdentity ¶
func (u *User) PrimaryIdentity() (*types.DidDocument, error)
Click to show internal directories.
Click to hide internal directories.