Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Email string `json:"email"` Registration *registration.Resource `json:"registration"` // contains filtered or unexported fields }
Account 用户账户
func CreateAccount ¶
CreateAccount 创建用户账户
func (*Account) GetPrivateKey ¶
func (acc *Account) GetPrivateKey() crypto.PrivateKey
GetPrivateKey 获取用户私钥
func (*Account) GetRegistration ¶
func (acc *Account) GetRegistration() *registration.Resource
GetRegistration 获取注册源
Click to show internal directories.
Click to hide internal directories.