Versions in this module Expand all Collapse all v2 v2.2.0 Dec 18, 2024 v2.1.0 Apr 4, 2023 Changes in this version + const PrivKeyBytesLen + const PubKeyBytesLenCompressed + func AddNonConst(p1, p2, result *JacobianPoint) + func DecompressY(x *FieldVal, odd bool, resultY *FieldVal) bool + func DoubleNonConst(p, result *JacobianPoint) + func GenerateSharedSecret(privkey *PrivateKey, pubkey *PublicKey) []byte + func IsCompressedPubKey(pubKey []byte) bool + func PrivKeyFromBytes(pk []byte) (*PrivateKey, *PublicKey) + func ScalarBaseMultNonConst(k *ModNScalar, result *JacobianPoint) + func ScalarMultNonConst(k *ModNScalar, point, result *JacobianPoint) + type CurveParams = secp.CurveParams + func Params() *CurveParams + type Error = secp.Error + type ErrorKind = secp.ErrorKind + type FieldVal = secp.FieldVal + type JacobianPoint = secp.JacobianPoint + func MakeJacobianPoint(x, y, z *FieldVal) JacobianPoint + type KoblitzCurve = secp.KoblitzCurve + func S256() *KoblitzCurve + type ModNScalar = secp.ModNScalar + func NonceRFC6979(privKey []byte, hash []byte, extra []byte, version []byte, ...) *ModNScalar + type PrivateKey = secp.PrivateKey + func NewPrivateKey() (*PrivateKey, error) + type PublicKey = secp.PublicKey + func NewPublicKey(x, y *FieldVal) *PublicKey + func ParsePubKey(pubKeyStr []byte) (*PublicKey, error)