Skip to content

Commit b30c99a

Browse files
authored
Exclude some files from static site (#13)
1 parent 345531c commit b30c99a

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

.github/workflows/static.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
uses: actions/upload-pages-artifact@v3
4848
with:
4949
path: './www'
50+
exclude:
51+
- '**/target'
52+
- '**/pkg'
53+
- '**/src'
54+
- '**/Cargo.toml'
55+
- '**/Cargo.lock'
5056

5157
- name: Deploy to GitHub Pages
5258
id: deployment

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,29 @@ Implements
44
[BIP-322](https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki),
55
generic message signing and verification.
66

7-
87
## Types of Signatures
98

10-
- simple (only witness stack, consensus encoded, base64)
11-
- full (base64 encoded `to_sign`)
12-
- proof-of-funds (add utxos to `to_sign`)
13-
- No need to implement legacy
14-
15-
## Test Vectors
16-
17-
https://github.com/bitcoin/bitcoin/blob/29b28d07fa958b89e1c7916fda5d8654474cf495/src/test/util_tests.cpp#L2747
9+
- [x] simple (only witness stack, consensus encoded, base64)
10+
- [x] full (base64 encoded `to_sign` tx)
11+
- [ ] proof-of-funds (base64 encoded `to_sign` tx with utxos)
1812

19-
## Compile for WASM
2013

21-
For MacOs:
14+
## Compile for WASM (on MacOs)
2215

2316
```
2417
brew install llvm
2518
cargo install wasm-pack
2619
rustup target add wasm32-unknown-unknown
27-
cd www
2820
AR=/opt/homebrew/opt/llvm/bin/llvm-ar \
2921
CC=/opt/homebrew/opt/llvm/bin/clang \
30-
wasm-pack build --target web
22+
wasm-pack build \
23+
--target web \
24+
--out-name bip322 \
25+
www
3126
```
27+
28+
The WASM binary and Javascript glue code can then be found in `www/pkg`.
29+
30+
## Test Vectors
31+
32+
https://github.com/bitcoin/bitcoin/blob/29b28d07fa958b89e1c7916fda5d8654474cf495/src/test/util_tests.cpp#L2747

www/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ edition = "2021"
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
bitcoin = { version = "0.31.2" }
1110
bip322 = "0.0.2"
11+
bitcoin = "0.31.2"
1212
wasm-bindgen = "0.2.92"
1313

1414
[patch.crates-io]

0 commit comments

Comments
 (0)