Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 6: [PATCH 06/17] feat(wallet): preserve Roots signing and spend controls on v31

src/wallet/scriptpubkeyman.h

Before: src/wallet/scriptpubkeyman.h · After: src/wallet/scriptpubkeyman.h

File metadata
index 00dd6eed4d1a71fc987c5c977fb918cda3833874..a34002350419639b14befa4743474a094873fc2f 100644

Download original patch · Release notes

Diff rows 1–8 of 8. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

src/wallet/scriptpubkeyman.h CHANGED
@@ -361,6 +361,8 @@ public:
361
 
362
  bool HavePrivateKeys() const override;
363
  bool HasPrivKey(const CKeyID& keyid) const EXCLUSIVE_LOCKS_REQUIRED(cs_desc_man);
 
 
364
  //! Retrieve the particular key if it is available. Returns nullopt if the key is not in the wallet, or if the wallet is locked.
365
  std::optional<CKey> GetKey(const CKeyID& keyid) const EXCLUSIVE_LOCKS_REQUIRED(cs_desc_man);
366
  bool HaveCryptedKeys() const override;
 
361
 
362
  bool HavePrivateKeys() const override;
363
  bool HasPrivKey(const CKeyID& keyid) const EXCLUSIVE_LOCKS_REQUIRED(cs_desc_man);
364
+ //! Derived key IDs available for signing, including encrypted roots; never retrieves secrets.
365
+ std::set<CKeyID> GetAvailableKeys(const CScript& script) const;
366
  //! Retrieve the particular key if it is available. Returns nullopt if the key is not in the wallet, or if the wallet is locked.
367
  std::optional<CKey> GetKey(const CKeyID& keyid) const EXCLUSIVE_LOCKS_REQUIRED(cs_desc_man);
368
  bool HaveCryptedKeys() const override;