diff options
author | Ava Chow <github@achow101.com> | 2024-01-02 10:47:20 -0500 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-01-02 10:56:43 -0500 |
commit | 265250687b8b3585b893302f3b7e03a63c04a676 (patch) | |
tree | ccfb91ce99d2d417fb8b57752c1d25faa91369e6 /src/serialize.h | |
parent | d036a868157202804bb7a29c115097b0fa3856c1 (diff) | |
parent | fa1d49542e4b69a5d8b1177ffe4207f051a468bb (diff) |
Merge bitcoin/bitcoin#28455: refactor: share and use `GenerateRandomKey` helper
fa1d49542e4b69a5d8b1177ffe4207f051a468bb refactor: share and use `GenerateRandomKey` helper (Sebastian Falbesoner)
Pull request description:
Making the `GeneratingRandomKey` helper (recently introduced in PR #28433, commit b6934fd03f080d437acb1fd2b665503c3d6de785) available to other modules via key.{h.cpp} allows us to create random private keys directly at CKey instantiation, in contrast to the currently needed two-step process of creating an (invalid) CKey instance first and then having to call `MakeNewKey(...)`.
This is mostly used in unit tests and a few instances in the wallet.
ACKs for top commit:
Sjors:
re-ACK fa1d49542e4b69a5d8b1177ffe4207f051a468bb
achow101:
ACK fa1d49542e4b69a5d8b1177ffe4207f051a468bb
sipa:
utACK fa1d49542e4b69a5d8b1177ffe4207f051a468bb
kristapsk:
cr utACK fa1d49542e4b69a5d8b1177ffe4207f051a468bb
stratospher:
ACK fa1d495.
Tree-SHA512: 6fec73f33efe5bd77ca7d3c2fc06725d96f789f229294c39377e682ff222cfc7990b77c92e0bfd4cb6cf891d007ab1f86d395907511f06e87044bae37652a2fd
Diffstat (limited to 'src/serialize.h')
0 files changed, 0 insertions, 0 deletions