This is a fork of jamesob/simple-ctv-vault. Please refer to this repo for any information about the scheme.
See this commit for the logic specific to replacing CTV with an ANYPREVOUTANYSCRIPT signature. See the master branch's commits for the whole diff which contains:
- An adaptation of the Scripts to Taproot
- A drop-in replacement of using an APO-AS signature in place of a CTV
- A cleanup removing the CTV-specific stuff
$ git clone https://github.com/darosior/simple-anyprevout-vault
$ cd simple-anyprevout-vault
$ pip install -r requirements.txt
# build the ANYPREVOUT implementation in Bitcoin Core
# https://github.com/remyers/bitcoin/commits/202101-anyprevout
$ bitcoind -regtest -txindex=1 &
# Run the functional tests, the easiest way to exercise the two paths
$ pip install pytest && pytest
James for the original vault implem, i only converted it to use ANYPREVOUT. Richard Myers, i stole some snippets from his APO covenant branch https://github.com/remyers/bitcoin/commits/covenant-anyprevout.