Use CPrivKey typedef for keydata in CKey#11482
Use CPrivKey typedef for keydata in CKey#11482AmirAbrams wants to merge 1 commit intobitcoin:masterfrom AmirAbrams:patch-3
Conversation
|
When ACK 21f69f6. |
|
CPrivKey was intended to be a type for DER-encoded private keys, which the contents of CKey is not. If you're changing CPrivKey to be "generic secure storage of bytes", please update the comment above CPrivKey as well. |
- keydata uses a secure generic storage of bytes via secure_allocator
|
@sipa, I updated the comment to On a related subject, in some cases, it might be better to use an alias instead of a typedef because they can be used with templates: Stack Overflow typedef and using in C++11 to
|
He means the comment above CPrivKey here: https://github.com/bitcoin/bitcoin/blob/master/src/key.h#L30 |
|
Closing this for now, feel free to ping me if you want to pick this up again. |
Seems like the
keydatamember variable inCKeyshould be aCPrivKeytype. Is there a reason it was re-declared as astd::vector<unsigned char, secure_allocator<unsigned char> >and theCPrivKeytypedef isn't used?