mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
refactor: Use CPubKey vector constructor where possible
This commit is contained in:
parent
fabb6dfe6e
commit
fa05dddc42
4 changed files with 8 additions and 8 deletions
|
|
@ -124,7 +124,7 @@ bool DecompressScript(CScript& script, unsigned int nSize, const CompressedScrip
|
|||
unsigned char vch[33] = {};
|
||||
vch[0] = nSize - 2;
|
||||
memcpy(&vch[1], in.data(), 32);
|
||||
CPubKey pubkey(&vch[0], &vch[33]);
|
||||
CPubKey pubkey{vch};
|
||||
if (!pubkey.Decompress())
|
||||
return false;
|
||||
assert(pubkey.size() == 65);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue