Skip to content

James O'Beirne's CTV vault adapted to using ANYPREVOUT instead of CTV

Notifications You must be signed in to change notification settings

darosior/simple-anyprevout-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

James O'Beirne CTV vault using ANYPREVOUT in place of CTV

About

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:

  1. An adaptation of the Scripts to Taproot
  2. A drop-in replacement of using an APO-AS signature in place of a CTV
  3. A cleanup removing the CTV-specific stuff

Demo

$ 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

Credits

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.

About

James O'Beirne's CTV vault adapted to using ANYPREVOUT instead of CTV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages