Changeset View
Changeset View
Standalone View
Standalone View
src/script/descriptor.h
// Copyright (c) 2018 The Bitcoin Core developers | // Copyright (c) 2018 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_SCRIPT_DESCRIPTOR_H | #ifndef BITCOIN_SCRIPT_DESCRIPTOR_H | ||||
#define BITCOIN_SCRIPT_DESCRIPTOR_H | #define BITCOIN_SCRIPT_DESCRIPTOR_H | ||||
#include <outputtype.h> | #include <outputtype.h> | ||||
#include <script/script.h> | #include <script/script.h> | ||||
#include <script/sign.h> | #include <script/sign.h> | ||||
#include <script/signingprovider.h> | #include <script/signingprovider.h> | ||||
#include <optional> | |||||
#include <vector> | #include <vector> | ||||
using ExtPubKeyMap = std::unordered_map<uint32_t, CExtPubKey>; | using ExtPubKeyMap = std::unordered_map<uint32_t, CExtPubKey>; | ||||
/** Cache for single descriptor's derived extended pubkeys */ | /** Cache for single descriptor's derived extended pubkeys */ | ||||
class DescriptorCache { | class DescriptorCache { | ||||
private: | private: | ||||
/** Map key expression index -> map of (key derivation index -> xpub) */ | /** Map key expression index -> map of (key derivation index -> xpub) */ | ||||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |