From e2a402ca994f7535fd5b7d96498fcd73e528fd39 Mon Sep 17 00:00:00 2001 From: Tom Dudzik Date: Wed, 16 May 2018 20:09:07 -0400 Subject: [PATCH 1/2] add final project submission, taproot stuff --- projects/taproot/Makefile | 7 + projects/taproot/README.md | 29 +++ projects/taproot/hash.h | 41 +++ projects/taproot/hash_impl.c | 281 +++++++++++++++++++++ projects/taproot/main.c | 105 ++++++++ projects/taproot/slides/taproot_slides.pdf | Bin 0 -> 218458 bytes projects/taproot/util.c | 39 +++ projects/taproot/util.h | 6 + 8 files changed, 508 insertions(+) create mode 100644 projects/taproot/Makefile create mode 100644 projects/taproot/README.md create mode 100644 projects/taproot/hash.h create mode 100644 projects/taproot/hash_impl.c create mode 100644 projects/taproot/main.c create mode 100644 projects/taproot/slides/taproot_slides.pdf create mode 100644 projects/taproot/util.c create mode 100644 projects/taproot/util.h diff --git a/projects/taproot/Makefile b/projects/taproot/Makefile new file mode 100644 index 0000000..d863259 --- /dev/null +++ b/projects/taproot/Makefile @@ -0,0 +1,7 @@ + +CFLAGS=-Wall -Wextra -Werror -W -g +LFLAGS=-lsecp256k1 +SOURCES= main.c hash_impl.c util.c + +all: $(SOURCES) + gcc $(CFLAGS) $(LFLAGS) $(SOURCES) -o taproot diff --git a/projects/taproot/README.md b/projects/taproot/README.md new file mode 100644 index 0000000..ca9fe52 --- /dev/null +++ b/projects/taproot/README.md @@ -0,0 +1,29 @@ + +# Taproot + +Tool to create taproot privkeys/pubkeys that commit to an additional script. + +## Building + +Simply `cd` into the directory and run `make`. + +## Usage +``` +./taproot