Documentation ¶
Index ¶
- func Base64Decode(data string) ([]byte, error)
- func Base64Encode(data []byte) string
- func Decrypt(sharedKey []byte, b64cipherData string) ([]byte, error)
- func DecryptByPass(pass string, b64cipherData string) ([]byte, error)
- func ECDH(priKey, pubKey []byte) ([]byte, error)
- func Encrypt(sharedKey, data []byte) (string, error)
- func EncryptByPass(pass string, data []byte) string
- func EncryptUserAddress(ctx *swe.Context, pubKey []byte, addr *RewardUserAddress) (string, error)
- func GenerateECDHKeyPair() (priKey, pubKey []byte, err error)
- func GenerateID() int64
- func IsValidTimeString(ts string) bool
- func LogRenderer() swe.LogRenderer
- func TimeStringToUTC(ts string) (int64, error)
- func TimeToCSTString(timestamp int64) string
- type PriorQueue
- type RewardUserAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func EncryptByPass ¶
func EncryptUserAddress ¶
func GenerateECDHKeyPair ¶
func GenerateID ¶
func GenerateID() int64
func IsValidTimeString ¶
func LogRenderer ¶
func LogRenderer() swe.LogRenderer
func TimeStringToUTC ¶
func TimeToCSTString ¶
Types ¶
type PriorQueue ¶
type PriorQueue[T any] struct { // contains filtered or unexported fields }
func PriorityQueue ¶
func PriorityQueue[T any](cmp func(*T, *T) bool) *PriorQueue[T]
func (*PriorQueue[T]) Head ¶
func (q *PriorQueue[T]) Head() *T
func (*PriorQueue[T]) Pop ¶
func (q *PriorQueue[T]) Pop() *T
func (*PriorQueue[T]) Put ¶
func (q *PriorQueue[T]) Put(value *T)
type RewardUserAddress ¶
type RewardUserAddress struct { Name string `json:"name"` Phone string `json:"phone"` Addr string `json:"addr"` }
func DecryptUserAddress ¶
Click to show internal directories.
Click to hide internal directories.