77c02f36ee
- Keep comments to 80 cols for consistency with the rest of the code base - Made verify a method off of Signature instead of PublicKey since one verifies a signature with a public key as opposed to the other way around - Return new signature from Sign function directly rather than creating a local temporary variable - Modify a couple of comments as recommended by @owainga - Update sample usage in doc.go for both signing messages and verifying signatures ok @owainga
70 lines
4.9 KiB
Text
70 lines
4.9 KiB
Text
|
|
github.com/conformal/btcec/field.go fieldVal.Normalize 100.00% (93/93)
|
|
github.com/conformal/btcec/field.go fieldVal.Inverse 100.00% (88/88)
|
|
github.com/conformal/btcec/field.go fieldVal.Mul2 100.00% (73/73)
|
|
github.com/conformal/btcec/field.go fieldVal.SquareVal 100.00% (73/73)
|
|
github.com/conformal/btcec/signature.go parseSig 100.00% (51/51)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.addZ2EqualsOne 100.00% (35/35)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.addGeneric 100.00% (35/35)
|
|
github.com/conformal/btcec/field.go fieldVal.PutBytes 100.00% (32/32)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.addZ1EqualsZ2 100.00% (30/30)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.addZ1AndZ2EqualsOne 100.00% (29/29)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.addJacobian 100.00% (22/22)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.doubleZ1EqualsOne 100.00% (18/18)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.doubleGeneric 100.00% (18/18)
|
|
github.com/conformal/btcec/signature.go Signature.Serialize 100.00% (13/13)
|
|
github.com/conformal/btcec/field.go fieldVal.MulInt 100.00% (12/12)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.fieldJacobianToBigAffine 100.00% (12/12)
|
|
github.com/conformal/btcec/field.go fieldVal.Add 100.00% (11/11)
|
|
github.com/conformal/btcec/field.go fieldVal.NegateVal 100.00% (11/11)
|
|
github.com/conformal/btcec/field.go fieldVal.SetBytes 100.00% (11/11)
|
|
github.com/conformal/btcec/field.go fieldVal.Add2 100.00% (11/11)
|
|
github.com/conformal/btcec/field.go fieldVal.Zero 100.00% (10/10)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.Add 100.00% (10/10)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.ScalarMult 100.00% (10/10)
|
|
github.com/conformal/btcec/btcec.go initS256 100.00% (9/9)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.doubleJacobian 100.00% (9/9)
|
|
github.com/conformal/btcec/signature.go canonicalizeInt 100.00% (8/8)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.Double 100.00% (7/7)
|
|
github.com/conformal/btcec/pubkey.go PublicKey.SerializeHybrid 100.00% (7/7)
|
|
github.com/conformal/btcec/pubkey.go PublicKey.SerializeCompressed 100.00% (6/6)
|
|
github.com/conformal/btcec/field.go fieldVal.SetByteSlice 100.00% (5/5)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.IsOnCurve 100.00% (4/4)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.bigAffineToField 100.00% (4/4)
|
|
github.com/conformal/btcec/field.go fieldVal.SetHex 100.00% (4/4)
|
|
github.com/conformal/btcec/pubkey.go PublicKey.SerializeUncompressed 100.00% (4/4)
|
|
github.com/conformal/btcec/signature.go canonicalPadding 100.00% (4/4)
|
|
github.com/conformal/btcec/privkey.go PrivKeyFromBytes 100.00% (3/3)
|
|
github.com/conformal/btcec/pubkey.go paddedAppend 100.00% (3/3)
|
|
github.com/conformal/btcec/field.go fieldVal.Bytes 100.00% (3/3)
|
|
github.com/conformal/btcec/field.go fieldVal.SetInt 100.00% (3/3)
|
|
github.com/conformal/btcec/field.go fieldVal.Set 100.00% (2/2)
|
|
github.com/conformal/btcec/field.go fieldVal.Equals 100.00% (2/2)
|
|
github.com/conformal/btcec/field.go fieldVal.AddInt 100.00% (2/2)
|
|
github.com/conformal/btcec/field.go fieldVal.IsZero 100.00% (2/2)
|
|
github.com/conformal/btcec/btcec.go S256 100.00% (2/2)
|
|
github.com/conformal/btcec/field.go fieldVal.String 100.00% (2/2)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.Params 100.00% (1/1)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.ScalarBaseMult 100.00% (1/1)
|
|
github.com/conformal/btcec/btcec.go KoblitzCurve.QPlus1Div4 100.00% (1/1)
|
|
github.com/conformal/btcec/btcec.go initAll 100.00% (1/1)
|
|
github.com/conformal/btcec/field.go fieldVal.IsOdd 100.00% (1/1)
|
|
github.com/conformal/btcec/field.go fieldVal.Negate 100.00% (1/1)
|
|
github.com/conformal/btcec/field.go fieldVal.Mul 100.00% (1/1)
|
|
github.com/conformal/btcec/field.go fieldVal.Square 100.00% (1/1)
|
|
github.com/conformal/btcec/privkey.go PrivateKey.ToECDSA 100.00% (1/1)
|
|
github.com/conformal/btcec/pubkey.go isOdd 100.00% (1/1)
|
|
github.com/conformal/btcec/signature.go Signature.Verify 100.00% (1/1)
|
|
github.com/conformal/btcec/signature.go ParseSignature 100.00% (1/1)
|
|
github.com/conformal/btcec/signature.go ParseDERSignature 100.00% (1/1)
|
|
github.com/conformal/btcec/pubkey.go PublicKey.ToECDSA 100.00% (1/1)
|
|
github.com/conformal/btcec/pubkey.go ParsePubKey 92.86% (26/28)
|
|
github.com/conformal/btcec/signature.go SignCompact 90.91% (20/22)
|
|
github.com/conformal/btcec/pubkey.go decompressPoint 88.89% (8/9)
|
|
github.com/conformal/btcec/signature.go recoverKeyFromSignature 86.96% (20/23)
|
|
github.com/conformal/btcec/signature.go RecoverCompact 77.78% (7/9)
|
|
github.com/conformal/btcec/signature.go hashToInt 77.78% (7/9)
|
|
github.com/conformal/btcec/privkey.go PrivateKey.Sign 75.00% (3/4)
|
|
github.com/conformal/btcec/pubkey.go PublicKey.Verify 0.00% (0/1)
|
|
github.com/conformal/btcec ------------------------------------- 98.48% (908/922)
|
|
|