Documentation ¶
Index ¶
- Variables
- func GenerateUsersig(privateKey string, appid int, identifier string) (string, error)
- func GenerateUsersigWithExpire(privateKey string, appid int, identifier string, expire int64) (string, error)
- func GenerateUsersigWithUserbuf(privateKey string, appid int, identifier string, expire int64, userbuf []byte) (string, error)
- func VerifyUsersig(publicKey string, usersig string, appid int, identifier string) error
- func VerifyUsersigWithUserbuf(publicKey string, usersig string, appid int, identifier string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorIdentifierNotMatch = errors.New("identifier not match") ErrorAppidNotMatch = errors.New("appid not match") ErrorExpired = errors.New("expired") ErrorInvalidSignature = errors.New("invalid signature") )
View Source
var (
ErrorInvalidKeyType = errors.New("invalid key type")
)
Functions ¶
func GenerateUsersig ¶
func VerifyUsersig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.