Imports github.com/gorilla/websocket github.com/pkg/errors github.com/tjfoc/gmsm/sm2 github.com/tjfoc/gmsm/x509 Standard library imports crypto/aes crypto/cipher crypto/elliptic crypto/rand crypto/sha512 encoding/hex encoding/json fmt io log math/big net/url strings time