Skip to content

Commit

Permalink
Add prefilled data(empty implementation) (#40)
Browse files Browse the repository at this point in the history
* Update auth.md

* Add prefilled_data argument

* clang-format

* Add CkbAuthValidatorType
  • Loading branch information
XuJiandong authored Jan 10, 2024
1 parent c17dc11 commit 3937fed
Show file tree
Hide file tree
Showing 11 changed files with 622 additions and 563 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ build/*
tests/bin
tests/.crates.toml
tests/.crates2.json

.vscode

6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ build/libed25519.a: build/ed25519/sign.o build/ed25519/verify.o build/ed25519/sh
build/ed25519/key_exchange.o build/ed25519/ge.o build/ed25519/fe.o build/ed25519/add_scalar.o
$(AR) cr $@ $^

build/auth: c/auth.c c/cardano/cardano_lock_inc.h c/ripple.h deps/mbedtls/library/libmbedcrypto.a build/libed25519.a build/libnanocbor.a
build/auth: c/auth.c c/ckb_auth.h c/elf_setup.h c/cardano/cardano_lock_inc.h c/ripple.h deps/mbedtls/library/libmbedcrypto.a build/libed25519.a build/libnanocbor.a
$(CC) $(AUTH_CFLAGS) $(LDFLAGS) -fPIE -pie -Wl,--dynamic-list c/auth.syms -o $@ $^
cp $@ $@.debug
$(OBJCOPY) --strip-debug --strip-all $@
Expand All @@ -99,7 +99,9 @@ ALL_C_SOURCE := c/always_success.c \
c/auth.c \
c/auth_libecc.c \
c/ckb_hex.h \
c/ripple.h
c/ripple.h \
c/elf_setup.h \
tests/auth-c-lock/auth_c_lock.c

fmt:
clang-format -i $(ALL_C_SOURCE)
Expand Down
Loading

0 comments on commit 3937fed

Please sign in to comment.