ParseSignature recovers the signature from a sigStr using koblitz curve.
(sigStr []byte)
| 57 | |
| 58 | // ParseSignature recovers the signature from a sigStr using koblitz curve. |
| 59 | func ParseSignature(sigStr []byte) (*Signature, error) { |
| 60 | return ParseDERSignature(sigStr, ec.S256()) |
| 61 | } |
| 62 | |
| 63 | // ParseDERSignature recovers the signature from a sigStr. |
| 64 | func ParseDERSignature(sigStr []byte, curve elliptic.Curve) (*Signature, error) { |