diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -351,6 +351,7 @@ # script library add_library(script script/bitfield.cpp + script/descriptor.cpp script/interpreter.cpp script/ismine.cpp script/script.cpp diff --git a/src/Makefile.am b/src/Makefile.am --- a/src/Makefile.am +++ b/src/Makefile.am @@ -187,8 +187,9 @@ rpc/util.h \ rwcollection.h \ scheduler.h \ - script/scriptcache.h \ + script/descriptor.h \ script/ismine.h \ + script/scriptcache.h \ script/sigcache.h \ script/sign.h \ script/standard.h \ @@ -438,6 +439,7 @@ netbase.cpp \ protocol.cpp \ scheduler.cpp \ + script/descriptor.cpp \ script/ismine.cpp \ script/sign.cpp \ script/standard.cpp \ diff --git a/src/Makefile.test.include b/src/Makefile.test.include --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -64,6 +64,7 @@ test/cuckoocache_tests.cpp \ test/dbwrapper_tests.cpp \ test/denialofservice_tests.cpp \ + test/descriptor_tests.cpp \ test/dstencode_tests.cpp \ test/excessiveblock_tests.cpp \ test/feerate_tests.cpp \ diff --git a/src/script/descriptor.h b/src/script/descriptor.h new file mode 100644 --- /dev/null +++ b/src/script/descriptor.h @@ -0,0 +1,116 @@ +// Copyright (c) 2018 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_SCRIPT_DESCRIPTOR_H +#define BITCOIN_SCRIPT_DESCRIPTOR_H + +#include