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

Add Wasm Account Storage interface #597

Merged
merged 148 commits into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
f3b1fa6
compile account in WASM
Dec 7, 2021
e756160
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
Dec 10, 2021
6958f5f
PoC account and accountBuilder wasm bindings
Dec 10, 2021
bcb4379
WASM binding PoC create_account()
Dec 15, 2021
40ccb57
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
Dec 15, 2021
0c093d2
OneOrMany bindings PoC
Dec 16, 2021
41cb60b
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
Dec 16, 2021
6e9c903
bind create_method, delete_method, create_service
Dec 21, 2021
afd09f6
add bindings for attach_method_relationship
Jan 10, 2022
957f4c6
fix lint issues
Jan 10, 2022
f898303
remove empty lines
Jan 10, 2022
b221ff6
add detach_method_relationship
Jan 10, 2022
ee01e52
add bindings for delete_service
Jan 11, 2022
bc53a62
implement wasm_bindgen types needed for the storage trait
Jan 11, 2022
c170f97
fix MethodRelationship type
Jan 13, 2022
fa64fea
refactor AccountBuilder
Jan 13, 2022
94b9d64
remove Sync + Send bound in the Storage trait, impl storage for WasmS…
Jan 13, 2022
4e86c46
add create_did Account example
Jan 13, 2022
6d943f8
add manipulate_did account example
Jan 13, 2022
04bbb27
add lazy account example
Jan 13, 2022
f1f8956
add macro for allowing two different storage trait
Jan 14, 2022
d170ef2
merge with latest dev
Jan 17, 2022
6cd3ec6
enable wasm for identity account, impl macro for converting Result<Js…
Jan 17, 2022
402f905
add license
Jan 17, 2022
0717213
add missing docs
Jan 17, 2022
25584e1
rename extern type
Jan 17, 2022
ed7608e
improve js naming, add missing wasmfragment type
Jan 19, 2022
3603663
remove default-features from identity-account
Jan 19, 2022
7ab8fb7
remove default features from identity-account
Jan 19, 2022
840ccbb
remove DIDLease deserialize
Jan 19, 2022
871c70b
add binding for `sign()`
Jan 20, 2022
34e36e2
add node types
Jan 20, 2022
230d0dd
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
Jan 20, 2022
90edfbd
fix account version
Jan 21, 2022
6d7bb31
add typescript config example
Jan 22, 2022
5c44f08
remove redundant empty `accountBuilderOptions`
Jan 22, 2022
9492c9f
remove duplicate of `WasmSignatureOptions`
Jan 22, 2022
8304d6a
fix license, remove useless derives
Jan 24, 2022
df10ca1
Merge branch 'dev' into feat/wasm-storage
Jan 24, 2022
b09be84
bindings for `IdentitySetup`
Jan 24, 2022
c8966e6
add uncheked example
Jan 25, 2022
03ee5c1
small fix `unchecked.ts`
Jan 25, 2022
8890a7d
add explorer URL for the examples
Jan 25, 2022
2012cf3
initial js implementation of memstorage
Jan 25, 2022
8ab216d
add `method_secret` to `create_method(..)` binding
Jan 25, 2022
cfe3fc9
pass `auto_save` to account builder
Jan 25, 2022
c3d07dc
cargo fix
Jan 26, 2022
47b0bde
fix `update_documenet_unchecked` return type in the bindings
Jan 26, 2022
ef064dc
fix merge conflicts, fix clippy warnings
Jan 26, 2022
e1a0e77
fix cargo.toml format
Jan 26, 2022
1be4e2d
wasm bindings for `fetch_state()`
Jan 26, 2022
0664bb2
port `publish_with_optoins(..)`
Jan 26, 2022
84bd2fd
fix clippy issue
Jan 26, 2022
2f0fb41
cargo fmt fix
Jan 26, 2022
2634c8f
solve merge conflicts with dev
Jan 27, 2022
3fb1128
solve merge conflicts with account bindings
Jan 27, 2022
450bc5b
fix merge errors, change bindings folder structure
Jan 27, 2022
39660b5
fix format issue
Jan 27, 2022
b93d9d7
remove `comm` feature
Jan 27, 2022
998b550
add build command to README
Jan 27, 2022
49408a4
add placeholder multiple_identities example
Jan 27, 2022
80850f0
remove `setEncoding` from config.ts
Jan 27, 2022
a3bdcda
improve comment formating in config.ts
Jan 27, 2022
f4afa07
refactor `AccountBuilder` to take `Config` instead of `Client`
Jan 27, 2022
3e0bd1a
check for error type in config.ts
Jan 27, 2022
181f191
refactor delete_method to take duck-typed interface
Jan 27, 2022
78311fd
add node-fetch dependency
Jan 27, 2022
84f65db
move `WasmAutoSave` to seperate file
Jan 27, 2022
7f0cb2f
move `PromiseAccount` to seperate extern "C"
Jan 27, 2022
148bb3e
rename autosave
Jan 27, 2022
4430a86
move `identity_setup` to seperate file
Jan 27, 2022
5deeb19
typo in method_secret.rs
Jan 28, 2022
39e05e8
refactor deserialization in `attach_method_relationship`
Jan 28, 2022
e143c1d
refactor attach_method_relationship
Jan 28, 2022
0e5d27b
refactor attach_method_relationship
Jan 28, 2022
85ae4d4
refactor create_method.rs and create_service.rs
Jan 28, 2022
9a8ed2e
remove unused imports
Jan 28, 2022
8240688
rename `serviceType` to `type`
Jan 28, 2022
6e775b9
impl wasmdidlease, improve javascript memstorage
Jan 30, 2022
3e1c08a
some improvements
Jan 30, 2022
3486e20
derive clone for `Client` only if WASM
Jan 30, 2022
6a612bf
fix dependency issues
Jan 30, 2022
035fbc3
add is_empty check for detach_method_relationship
Jan 30, 2022
1896cf2
refactor (rename files)
Jan 30, 2022
be00e5f
merge `publish_with_options(..)` in `publish()`
Jan 30, 2022
d9617a0
extend unchecked.ts to include adding a custom property to document.
Jan 30, 2022
a9e2259
fix clippy issues
Jan 30, 2022
2bf3d18
remove logger
Jan 30, 2022
60dc7c6
refactor errors in updates
Jan 31, 2022
62fe8f9
add `properties` to `create_service`
Jan 31, 2022
1dcb801
cargo fmt
Jan 31, 2022
2f7b0ce
merge with account-bindings, fix clippy and fmt
Jan 31, 2022
07b7894
run cargo fmt, fix typo, change error variant
Jan 31, 2022
ea8efd9
add ts interface, fix typo
Feb 1, 2022
328d11f
add typescript_custom_section to generate an Storage interface
Feb 1, 2022
e9db13b
fmt, remove getter anotation
Feb 1, 2022
dbaccbd
fix doc
Feb 1, 2022
975f184
fix import format
Feb 2, 2022
1f1bcdf
fix typo, cargo fmt
Feb 2, 2022
a73f6fe
format cargo files
Feb 2, 2022
eacaf02
remove `structural`
Feb 2, 2022
f2749dc
remove wasmfragment, add wasmdidlease return, do not expose wasmident…
Feb 2, 2022
f98ce65
add doc for storage interface in ts, downcast jsvalue to wasmdidlease
Feb 2, 2022
dc00538
fix exposed `process_update(..)`
Feb 3, 2022
117dcfe
implement multiple_identities.ts
Feb 3, 2022
9930107
create implementation for options
Feb 3, 2022
8769906
refactor `.storage()` to return an `Arc`
Feb 3, 2022
7a31e80
refactor duplicated defaults in `create_method.rs`
Feb 3, 2022
3979ec0
refactor `create_signed_*`
Feb 3, 2022
9ce9b90
improve documentation
Feb 4, 2022
778fd26
cargo fmt
Feb 4, 2022
28f15e2
fix formatting issue
Feb 4, 2022
e09d4a2
small example fix
Feb 4, 2022
a67291f
improve `.storage()` return type.
Feb 4, 2022
6810cb2
Solve conflicts with wasm-account-bindings
Feb 4, 2022
ffd2773
improve README
Feb 7, 2022
19662f5
improve config.ts
Feb 7, 2022
f8dbcc3
improve TS examples
Feb 7, 2022
52dac18
change `WasmRefCell` to `RefCell`
Feb 7, 2022
6475728
rename `account_builder.rs` to `wasm_account_builder.rs`
Feb 7, 2022
5e6cd84
rename `at/detach_relationship(..)`
Feb 7, 2022
4996f61
rename `at/detach_method_relationship.rs`
Feb 7, 2022
75d21d0
improve `create_service.rs`
Feb 7, 2022
ec0356a
small improvements
Feb 7, 2022
0c3bbc5
remove `as_ref()` and change `WasmRefCell`
Feb 7, 2022
e21f7ea
remove `from` implementation for a borrow
Feb 7, 2022
9b3e009
remove `wasm` dependency from `identity/cargo.toml`
Feb 7, 2022
b842417
update api-reference
Feb 7, 2022
7d4643e
remove `autopublish` from `manipulate_did.ts
Feb 7, 2022
90c6584
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
Feb 7, 2022
6526dc4
remove `milestone`
Feb 7, 2022
b503fe5
remove useless conversion
Feb 7, 2022
c85826b
typo in config.ts
abdulmth Feb 7, 2022
644c9ad
Apply suggestions from code review
abdulmth Feb 7, 2022
b579228
update links for the examples
Feb 7, 2022
7cbc644
use builder instead of `AccountConfig`
Feb 7, 2022
aec32e9
implement `From` for `SignatureOptions`
Feb 7, 2022
6850fb8
reverse to original `impl From<WasmSignatureOptions>`
Feb 8, 2022
5e9cdd2
solve merge with account bindings
Feb 14, 2022
68b251a
merge with epic branch
Feb 18, 2022
d041967
move update files
Feb 18, 2022
9fc551c
add cfg_attr to avoid CI warnings
Feb 18, 2022
a54ede7
merge with epic - remove didlease conflicts
Feb 21, 2022
b557e73
add comments, remove useless code, rename types
Feb 21, 2022
ad1779f
remove file, throw error in ts, remove unused type
Feb 22, 2022
86a8585
improve erro msgs, and comments
Feb 22, 2022
28affe7
clippy
Feb 22, 2022
c07aa0c
merge with epic - docs
Feb 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ description = "Web Assembly bindings for the identity-rs crate."
crate-type = ["cdylib", "rlib"]

[dependencies]
async-trait = { version = "0.1", default-features = false }
console_error_panic_hook = { version = "0.1" }
futures = { version = "0.3" }
iota-crypto = { version = "0.7", default-features = false, features = ["ed25519"] }
js-sys = { version = "0.3" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", default-features = false }
Expand Down