mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Use 71 byte signature for DUMMY_SIGNATURE_CREATOR
Changes DUMMY_SIGNATURE_CREATOR to create 71 byte dummy signatures. Update comments to reflect this change
This commit is contained in:
parent
18dfea0dd0
commit
48b1473c89
3 changed files with 10 additions and 10 deletions
|
|
@ -423,16 +423,16 @@ public:
|
|||
bool CreateSig(const SigningProvider& provider, std::vector<unsigned char>& vchSig, const CKeyID& keyid, const CScript& scriptCode, SigVersion sigversion) const override
|
||||
{
|
||||
// Create a dummy signature that is a valid DER-encoding
|
||||
vchSig.assign(72, '\000');
|
||||
vchSig.assign(71, '\000');
|
||||
vchSig[0] = 0x30;
|
||||
vchSig[1] = 69;
|
||||
vchSig[1] = 68;
|
||||
vchSig[2] = 0x02;
|
||||
vchSig[3] = 33;
|
||||
vchSig[3] = 32;
|
||||
vchSig[4] = 0x01;
|
||||
vchSig[4 + 33] = 0x02;
|
||||
vchSig[5 + 33] = 32;
|
||||
vchSig[6 + 33] = 0x01;
|
||||
vchSig[6 + 33 + 32] = SIGHASH_ALL;
|
||||
vchSig[4 + 32] = 0x02;
|
||||
vchSig[5 + 32] = 32;
|
||||
vchSig[6 + 32] = 0x01;
|
||||
vchSig[6 + 32 + 32] = SIGHASH_ALL;
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue