bitcoin/ecdsa.h

21 lines
434 B
C
Raw Normal View History

2013-03-10 01:34:04 -03:00
#ifndef _SECP256K1_ECDSA_
#define _SECP256K1_ECDSA_
namespace secp256k1 {
class Signature {
private:
Number r,s;
public:
2013-03-16 11:51:55 -03:00
bool Parse(const unsigned char *sig, int size);
bool RecomputeR(Number &r2, const GroupElemJac &pubkey, const Number &message);
bool Verify(const GroupElemJac &pubkey, const Number &message);
void SetRS(const Number &rin, const Number &sin);
std::string ToString() const;
2013-03-10 01:34:04 -03:00
};
}
#endif