Skip to content

Commit

Permalink
Add missing auth id(0x02~0x05)
Browse files Browse the repository at this point in the history
including
* eos
* tron
* bitcoin
* dogecoin

Add hash functions: sha256 and ripemd160
Fix rust toolchains
Code format
  • Loading branch information
XuJiandong committed Jan 3, 2024
1 parent abdcb11 commit 0b55623
Show file tree
Hide file tree
Showing 10 changed files with 900 additions and 47 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,12 @@ ${PROTOCOL_SCHEMA}:
curl -L -o $@ ${PROTOCOL_URL}

ALL_C_SOURCE := $(wildcard c/omni_lock.c c/omni_lock_acp.h c/omni_lock_time_lock.h \
tests/omni_lock/omni_lock_sim.c tests/omni_lock/ckb_syscall_omni_lock_sim.h tests/omni_lock/omni_lock_supply.h\
c/rce_validator.c /always_success.c c/rce.h c/xudt_rce.c \
c/rce_validator.c tests/xudt_rce/*.c tests/xudt_rce/*.h\
c/validate_signature_rsa.h c/validate_signature_rsa.c)
c/rce_validator.c c/validate_signature_rsa.h c/validate_signature_rsa.c \
c/ripemd160.h c/conversion.h c/sha256.h c/ckb_identity.h)

fmt:
docker run --rm -v `pwd`:/code ${CLANG_FORMAT_DOCKER} bash -c "cd code && clang-format -i -style=Google $(ALL_C_SOURCE)"
git diff --exit-code $(ALL_C_SOURCE)
docker run -u `id -u`:`id -g` --rm -v `pwd`:/code ${CLANG_FORMAT_DOCKER} bash -c "cd code && clang-format -i -style=Google $(ALL_C_SOURCE)"

mol:
rm -f c/xudt_rce_mol.h
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const BINARIES: &[(&str, &str)] = &[
),
(
"omni_lock",
"86ea7ee58a0ecacfb1f7f2675a06d96223e0597dfe06a2474f9c06a72a7ccabc",
"2010378214cc62a9c0c48426b553f73bff80e063b015c9079e93008f3da3e971",
),
];

Expand Down
Loading

0 comments on commit 0b55623

Please sign in to comment.