Commit 82640d2
authored
Major upgrade from WACC to Comrade DSL, added bs-p2p, bs-peer, all the bs (#18)
Major upgrade for BetterSign from my Comrade and BestSign projects.
branched off of comrade/bestsign branch 81b2c99
p2p
peer
wallet
evolved traits
type-safe
fixes #4, #15, supersedes #16
Commits:
* scaffold comrade & component
* add parser
* eval script test passing
* fix comments
* fixup comments
* cleanup
* fix bug in lock/unlock curr/proposed stack push
* rename crypto to reference
its the reference impl
it has wacc and runtime and parser and ast...
what else do you call it
* add wasm component
* cleanup
* WIP: Start to scaffold the main API
Work in progress
* nice clean api
* add rustdoc comments
* scaffold virtual runtime
* rename vm -> runtime
because it runs the script
* haul in deps for wasm runtime
* makeruntimes optional and extensible
* add runtime trait and Runner bounds
* fix typo
* scaffold build bytes and justfile recipes
* set wasmi_runtime_layer to v0.40
* add wasm32 build, test, just recipes
* random module is for wasm32 only
* add layer definitions
* use Pairable supertrait
* tested logs
* impl try_unlock
* more tests
* test passing!
* add readme rustdoc tests
* small fixes
* add direct runtime
* switch to direct runtime as default
* web tests
* rm dead code
* use CondSync
since wasm32 doesn't need Send + Sync
* comrade use Pairs only
rm Pairable
* mk comrade worspace dep
* update lifetime
* fix missing dep (again)
cryptidtech/multicid@2458479
* update trait to incl Error too
* update plog and open
* haul in bs-p2p
* use Self::Error assoc type in traits
* add cond_send for wasm32 and native compat
* constraint data references by (Cond)Sync bounds
* elide lifetimes where poss, add Panics comments to uncheched fns
* rm workspace dep with js feat
* trait, associate types, sync and async
* add `with_domain` for non-"/" paths
* readme edits
* add readme
* readme
* use shiny new traits in bs and cli
* READMEs (plural)
* README
* map_err
* use set_error method
* WIP: Stash
* add prev_cid to VerifyIter
* fix comments
* first pass (incomplete)
* add wallet with updated traits
* update deps
* fix content-addressable errors and tests
* immutable trait
* use wallet in browser peer
* fix Error types in trait and tests
testing passes
* add README note for running tests
* fix Codec
* fix the fix
* add entry_key mod
* fix bug in verifyiter
* add failing comrade tests
* upraded, passing tests
* cleanup
* store BsPeer config to blockstore
* add tests to update_plog
* update cli plog
* use directories for blockstore
* save arbitrary data to log and blockstore
* add cargo config.toml
* add vlad.cid() method
* store plog entries to blockstore
* use test fixtures
* evolve key, keypath and signing traits
* tidy up
* add dep
* use NonZeroUsize for threshold and limit, plus general update
* progress VladParams
* modernize VladParams API
* rn, mv, tightly couple FirstEntryKeyParams to Vlad
* refactor open::Config
* update cli and docs
for VladParams type safety
* refactor update::Config
* derive first lock script from within Vlad
* web tests
* add update and load tests
* add network to bs-peer
* add resolver and interop test
* progress tests
* passing interop tests
* revamp Resolver trait
* use ResolverExt in bs crate
* complete rustdoc para
* add log detail
* add error details
* plog get_value includes ops
* improve native test
* downgrade trace
* add test README details
* add more docs
* export DefaultBsPeer
* export bs_peer utils
* impl Display for Vlad
and test it
* save swarm config to directories
* re-exports
* log runtime errors
* rename from peerpiper to bettersign
* export Client
* scaffold bs-server
* record plog to DHT
* error is not connected and trying to DHT publish
* convert Entry to use bon builder, add rustdocs
* update checks seqno for lipmaa and sets accordingly
* move entry as it gets signed
* no more cloning
* update tests
* add justfile for chromedriver download
* new Vlad generate API
* add Vlad::try_from_str
* Nonce creation methods
* better rustdocs
* re-export ResolverExt
* mv Resolver to network client
* docs
* add PartialEq
* make public fn
* impl Clone for BsPeer
* entry signing key methods
* wrap plog on Arc Mutex
* shorter lock hold in block
* fix tests (deadlock)
* enable StartConfig
* derive Hash on types
* export Libp2pEvents
* entrie vlad goes in DHT as bytes
* add tracing
* add timeout, SuperResolver supertrait for CondSend
so we can use timeout in both wasm and tokio
* rm unneeded lock
* store entries on update
* cleanup deps
* updated API and tests
* add ability to rotate keys
* publish to pubsub too
* rm dead import
* add vlad length to test output
* [email protected]1 parent e04d40e commit 82640d2
File tree
205 files changed
+15187
-4835
lines changed- .cargo
- cli
- src
- subcmds
- crates
- bs-p2p
- src
- behaviour
- events
- swarm
- bs-peer
- .cargo
- src
- config
- platform
- browser
- native
- tests
- bs-server
- .cargo
- src
- bs-traits
- src
- bs-wallets
- src
- bs
- src
- config
- ops
- open
- params
- update
- comrade-component
- .vscode
- src
- wit
- comrade-reference
- src
- context
- parser
- comrade
- src
- runtime
- direct
- layer
- tests
- content-addressable/src/fs
- interop-tests
- src
- bin
- multicid/src
- serde
- multihash
- src
- multikey
- src
- views
- multisig/src
- provenance-log
- src
- entry
- key
- wacc
- examples
- log
- .cargo
- src
- signature_first
- .cargo
- src
- signature_lock
- .cargo
- src
- unlock
- .cargo
- src
- wast
- src
- api
- storage
- vm
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
205 files changed
+15187
-4835
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
26 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
35 | | - | |
| 45 | + | |
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| 51 | + | |
41 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
42 | 56 | | |
43 | 57 | | |
44 | 58 | | |
| |||
49 | 63 | | |
50 | 64 | | |
51 | 65 | | |
52 | | - | |
53 | 66 | | |
54 | 67 | | |
55 | 68 | | |
| 69 | + | |
| 70 | + | |
56 | 71 | | |
57 | 72 | | |
58 | 73 | | |
| 74 | + | |
| 75 | + | |
59 | 76 | | |
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
67 | 87 | | |
68 | 88 | | |
69 | 89 | | |
70 | | - | |
| 90 | + | |
71 | 91 | | |
72 | 92 | | |
73 | 93 | | |
| 94 | + | |
| 95 | + | |
74 | 96 | | |
75 | 97 | | |
76 | 98 | | |
77 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
32 | 43 | | |
33 | 44 | | |
34 | 45 | | |
| |||
98 | 109 | | |
99 | 110 | | |
100 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
101 | 116 | | |
102 | 117 | | |
103 | 118 | | |
| |||
158 | 173 | | |
159 | 174 | | |
160 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
161 | 180 | | |
0 commit comments