Changeset View
Changeset View
Standalone View
Standalone View
src/key.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | public: | ||||
*/ | */ | ||||
bool SignECDSA(const uint256 &hash, std::vector<uint8_t> &vchSig, | bool SignECDSA(const uint256 &hash, std::vector<uint8_t> &vchSig, | ||||
bool grind = true, 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::array<uint8_t, CPubKey::SCHNORR_SIZE> &sig, | |||||
uint32_t test_case = 0) const; | |||||
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; | ||||
/** | /** | ||||
* Create a compact ECDSA signature (65 bytes), which allows reconstructing | * Create a compact ECDSA signature (65 bytes), which allows reconstructing | ||||
* the used public key. | * the used public key. | ||||
* The format is one header byte, followed by two times 32 bytes for the | * The format is one header byte, followed by two times 32 bytes for the | ||||
* serialized r and s values. | * serialized r and s values. | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |