Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init commit create react app with react-app-rewired #12

Closed
wants to merge 63 commits into from
Closed
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
be04088
Vendor rust-elements and wally into workspace
luckysori Nov 16, 2020
7e4a744
Inline wally into elements-fun
thomaseizinger Nov 16, 2020
2d2e3a6
Rename serde crate to fix feature mess
thomaseizinger Nov 16, 2020
78b2792
Replace serde macros with custom derives
thomaseizinger Nov 16, 2020
68ca550
Only rename serde crate if feature is enabled
thomaseizinger Nov 17, 2020
11ca035
Enable derive feature of serde
thomaseizinger Nov 17, 2020
8ac28ac
Don't import serde because we rename it in the root
thomaseizinger Nov 17, 2020
14090ad
Start modelling messages
luckysori Nov 16, 2020
0a8329b
Compose Message0
luckysori Nov 16, 2020
4e208df
Make Bob build transaction after receiving Message0
luckysori Nov 16, 2020
f319d86
WIP: next message from Bob to Alice with first signature
bonomat Nov 16, 2020
eabfc7a
Add helper methods to rpc client
bonomat Nov 17, 2020
7c56ca1
Wip: Alice can't unblind Bob
bonomat Nov 17, 2020
3db1ce7
WIP: Signatures are wrong
luckysori Nov 17, 2020
2b41407
WIP: debugging
luckysori Nov 17, 2020
cbf3224
Make it work :) by sending over the outputs ephemeral keys
bonomat Nov 17, 2020
d372dc3
Let Bob send transaction to Alice with his signature
luckysori Nov 17, 2020
229c292
Remove fluff
luckysori Nov 17, 2020
f1aff33
Tackle/remove TODOs
luckysori Nov 17, 2020
27dc687
Verify that Bitcoin outputs created are spendable
luckysori Nov 17, 2020
0968002
Merge pull request #7 from comit-network/messages
bonomat Nov 17, 2020
b559023
Fix clippy warnings
thomaseizinger Nov 17, 2020
0058835
Cargo fmt the whole codebase
thomaseizinger Nov 17, 2020
56f5549
Make decoder always receive a buffer
thomaseizinger Nov 17, 2020
42ae3d5
Introduce TxInWitness::encoded_length
thomaseizinger Nov 17, 2020
683f710
Introduce TxOutWitness::encoded_length
thomaseizinger Nov 17, 2020
c2ff20d
Introduce dedicated types for explicit and confidential aspects
thomaseizinger Nov 17, 2020
1b8b95b
Introduce ConfidentialTxOut::unblind
thomaseizinger Nov 17, 2020
b4af743
Add TODO
thomaseizinger Nov 17, 2020
084661a
Merge pull request #6 from thomaseizinger/better-type-system
luckysori Nov 17, 2020
2736fb7
Improve error message and variable naming
thomaseizinger Nov 18, 2020
d1919ec
Remove `original_asset` from `UnblindedTxOut`
thomaseizinger Nov 18, 2020
c13664d
Re-enable asset issuance test assertion
thomaseizinger Nov 18, 2020
3b798d3
Merge impl blocks of TxOut
thomaseizinger Nov 18, 2020
2b19558
Introduce convenience constructors for TxOut
thomaseizinger Nov 18, 2020
ac96c63
Re-order code in transactions.rs to be sane
thomaseizinger Nov 18, 2020
8d34d26
Update description of `elements-fun`
thomaseizinger Nov 18, 2020
7c2deb7
Introduce newtypes for asset and value blinding factors
thomaseizinger Nov 18, 2020
17e1d87
Use more newtypes within asset_surjectionproof
thomaseizinger Nov 18, 2020
83aff7a
Use blinding factor newtypes for `asset_final_vbf`
thomaseizinger Nov 18, 2020
a265e0f
Encapsulate weird logic around `asset_final_vbf` within elements-fun
thomaseizinger Nov 18, 2020
f5a2a13
Correct doc comment
thomaseizinger Nov 18, 2020
3178f66
Fix clippy warning on `asset_surjectionproof`
thomaseizinger Nov 18, 2020
89fcab1
Clarify name of parameter
thomaseizinger Nov 18, 2020
1909e26
Pass `AssetId` instead of bytes to wally functions
thomaseizinger Nov 18, 2020
f9747e8
Refactor how commitment and blinding factors are constructed
thomaseizinger Nov 18, 2020
1ae5d93
Merge pull request #9 from thomaseizinger/magic
thomaseizinger Nov 19, 2020
1b53299
Make it explicit that asset_surjectionproof needs randomness
thomaseizinger Nov 19, 2020
3a3e344
Use the `Context` impl on `Option` to turn them into `Result`s
thomaseizinger Nov 19, 2020
3d71e51
Format everything with dprint
thomaseizinger Nov 19, 2020
2a71332
Merge pull request #10 from comit-network/dprint
luckysori Nov 19, 2020
fff1ad2
Init commit create react app with react-app-rewired
bonomat Dec 1, 2020
f521e3d
Add rust library to react-app
bonomat Dec 1, 2020
052ddaf
Git ignore eslint file
bonomat Dec 1, 2020
486076d
dprint formatted
bonomat Dec 1, 2020
274d591
Rename folder
bonomat Dec 1, 2020
56be301
Format all the things
bonomat Dec 1, 2020
c06b798
Add start to lib initializor
bonomat Dec 2, 2020
f73cb3b
Rename lib to wallet lib
bonomat Dec 2, 2020
888b770
Make tests pass
bonomat Dec 2, 2020
989533c
Add missing new line
bonomat Dec 2, 2020
71bfea2
Disable wasm-opt as this makes the build fail
bonomat Dec 2, 2020
1cf142e
Add CI build/test for react app
bonomat Dec 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .dprintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://dprint.dev/schemas/v0.json",
"projectType": "openSource",
"incremental": true,
"markdown": {
},
"rustfmt": {
"merge_imports": true
},
"includes": ["**/*.{md,rs,toml}"],
"excludes": [
"**/target"
],
"plugins": [
"https://plugins.dprint.dev/markdown-0.4.1.wasm",
"https://plugins.dprint.dev/rustfmt-0.3.0.wasm",
"https://github.com/thomaseizinger/dprint-plugin-cargo-toml/releases/download/0.1.0/cargo-toml-0.1.0.wasm"
]
}
21 changes: 8 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,19 @@ jobs:
with:
profile: minimal
override: true
components: rustfmt, clippy
components: clippy

- name: Cache ~/.cargo/bin directory
- name: Cache dprint
uses: actions/cache@v1
with:
path: ~/.cargo/bin
key: ubuntu-rust-${{ env.RUST_TOOLCHAIN }}-cargo-bin-directory-v1
path: ~/.cargo/bin/dprint
key: ubuntu-rust-${{ env.RUST_TOOLCHAIN }}-dprint

- name: Install tomlfmt
run: which cargo-tomlfmt || cargo install cargo-tomlfmt
- name: Install dprint
run: which dprint || cargo install dprint

- name: Check Cargo.toml formatting
run: |
cargo tomlfmt -d -p Cargo.toml
cargo tomlfmt -d -p elements-harness/Cargo.toml

- name: Check code formatting
run: cargo fmt --all -- --check
- name: Check formatting
run: dprint check

- name: Run clippy with default features
run: cargo clippy --workspace --all-targets -- -D warnings
Expand Down
Loading