File tree Expand file tree Collapse file tree 3 files changed +21
-14
lines changed
Expand file tree Collapse file tree 3 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -4,28 +4,29 @@ Implements
44[ BIP-322] ( https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki ) ,
55generic 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```
2417brew install llvm
2518cargo install wasm-pack
2619rustup target add wasm32-unknown-unknown
27- cd www
2820AR=/opt/homebrew/opt/llvm/bin/llvm-ar \
2921CC=/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
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ edition = "2021"
77crate-type = [" cdylib" ]
88
99[dependencies ]
10- bitcoin = { version = " 0.31.2" }
1110bip322 = " 0.0.2"
11+ bitcoin = " 0.31.2"
1212wasm-bindgen = " 0.2.92"
1313
1414[patch .crates-io ]
You can’t perform that action at this time.
0 commit comments