ParseDERSignature recovers the signature from a sigStr.
(sigStr []byte, curve elliptic.Curve)
| 62 | |
| 63 | // ParseDERSignature recovers the signature from a sigStr. |
| 64 | func ParseDERSignature(sigStr []byte, curve elliptic.Curve) (*Signature, error) { |
| 65 | sig, err := ec.ParseDERSignature(sigStr, curve) |
| 66 | return (*Signature)(sig), err |
| 67 | } |
| 68 | |
| 69 | // IsEqual return true if two signature is equal. |
| 70 | func (s *Signature) IsEqual(signature *Signature) bool { |
no outgoing calls