Changeset View
Changeset View
Standalone View
Standalone View
src/key.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | public: | ||||
*/ | */ | ||||
CPubKey GetPubKey() const; | CPubKey GetPubKey() const; | ||||
/** | /** | ||||
* Create a DER-serialized ECDSA signature. | * Create a DER-serialized ECDSA signature. | ||||
* The test_case parameter tweaks the deterministic nonce. | * The test_case parameter tweaks the deterministic nonce. | ||||
*/ | */ | ||||
bool SignECDSA(const uint256 &hash, std::vector<uint8_t> &vchSig, | bool SignECDSA(const uint256 &hash, std::vector<uint8_t> &vchSig, | ||||
uint32_t test_case = 0) const; | bool grind = true, uint32_t test_case = 0) const; | ||||
/** | /** | ||||
* Create a Schnorr signature. | * Create a Schnorr signature. | ||||
* The test_case parameter tweaks the deterministic nonce. | * The test_case parameter tweaks the deterministic nonce. | ||||
*/ | */ | ||||
bool SignSchnorr(const uint256 &hash, std::vector<uint8_t> &vchSig, | bool SignSchnorr(const uint256 &hash, std::vector<uint8_t> &vchSig, | ||||
uint32_t test_case = 0) const; | uint32_t test_case = 0) const; | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |