Versions in this module Expand all Collapse all v1 v1.0.0 May 30, 2018 Changes in this version + type BitCurve struct + B *big.Int + BitSize int + Gx *big.Int + Gy *big.Int + N *big.Int + P *big.Int + func S160() *BitCurve + func S192() *BitCurve + func S224() *BitCurve + func S256() *BitCurve + func (BitCurve *BitCurve) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int) + func (BitCurve *BitCurve) Double(x1, y1 *big.Int) (*big.Int, *big.Int) + func (BitCurve *BitCurve) GenerateKey(rand io.Reader) (priv []byte, x, y *big.Int, err error) + func (BitCurve *BitCurve) IsOnCurve(x, y *big.Int) bool + func (BitCurve *BitCurve) Marshal(x, y *big.Int) []byte + func (BitCurve *BitCurve) Params() *elliptic.CurveParams + func (BitCurve *BitCurve) ScalarBaseMult(k []byte) (*big.Int, *big.Int) + func (BitCurve *BitCurve) ScalarMult(Bx, By *big.Int, k []byte) (*big.Int, *big.Int) + func (BitCurve *BitCurve) Unmarshal(data []byte) (x, y *big.Int) + type Conf struct + AccountType string + AppidAt3rd string + ExpireAfter string + Identifier string + SdkAppid string + Sig string + Time string + Version string + func NewConf(sdkAppId string, identifier string) *Conf + func VerifyUserSig(pemPublicKey string, userSig string) (*Conf, bool, error) + func (c *Conf) GenUserSig(pemPrivateKey string) (string, error) + func (c *Conf) WithExpire(expireInSeconds int) *Conf