]> Git Repo - secp256k1.git/blob - ecdsa.h
Comments
[secp256k1.git] / ecdsa.h
1 #ifndef _SECP256K1_ECDSA_
2 #define _SECP256K1_ECDSA_
3
4 namespace secp256k1 {
5
6 class Signature {
7 private:
8     Number r,s;
9
10 public:
11     bool Parse(const unsigned char *sig, int size);
12     bool Serialize(unsigned char *sig, int *size);
13     bool RecomputeR(Number &r2, const GroupElemJac &pubkey, const Number &message) const;
14     bool Verify(const GroupElemJac &pubkey, const Number &message) const;
15     bool Sign(const Number &seckey, const Number &message, const Number &nonce);
16     void SetRS(const Number &rin, const Number &sin);
17     std::string ToString() const;
18 };
19
20 }
21
22 #endif
This page took 0.025346 seconds and 4 git commands to generate.