Skip to content

Commit

Permalink
feat: add AppAgentWebsocket & move client signing (#50)
Browse files Browse the repository at this point in the history
* Add client signing

* Clippy fix

* Export ZomeCallTarget

* Require signer to be send+sync

* Review comments and changelog

* Clean up with changes from the 0.3 PR

* Avoid port clashes
  • Loading branch information
ThetaSinner authored Mar 5, 2024
1 parent 4cd516c commit b732bde
Show file tree
Hide file tree
Showing 17 changed files with 686 additions and 215 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:

- name: Build client
run: cargo build -p holochain_client

- name: Lint
run: cargo clippy --all-features -- -D warnings

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

- name: Run tests
run: cargo test
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## \[Unreleased\]

### Added
- Capability to create zome call signing credentials with the `AdminWebsocket` using `authorize_signing_credentials`.
- `ClientAgentSigner` type which can store (in memory) signing credentials created with `authorize_signing_credentials`.
- `AppAgentWebsocket` to simplify making zome calls. It is a wrapper around a `AppWebsocket` but can be created directly.
### Changed
### Fixed
### Removed
- The utilities crate, it is now replaced by signing built into the client. Please see the updated tests for examples of how to use this.

## 2024-02-29: v0.4.7
### Added
Expand Down
151 changes: 91 additions & 60 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,29 @@ resolver = "2"
version = "0.4.7"

[workspace]
members = ["fixture/zomes/foo", "utilities"]
members = ["fixture/zomes/foo"]

[workspace.dependencies]
holochain_zome_types = "0.2.6"

[dependencies]
again = "0.1"
anyhow = "1.0"
ed25519-dalek = "1"
ed25519-dalek = { version = "2.1", features = ["rand_core"] }
holo_hash = { version = "0.2.6", features = ["encoding"] }
holochain_conductor_api = "0.2.6"
holochain_serialized_bytes = "0.0.53"
holochain_state = "0.2.6"
holochain_types = "0.2.6"
holochain_websocket = "0.2.6"
holochain_zome_types = { workspace = true }
serde = ">=1.0.0, <=1.0.166"
url = "2.2"
rand = "0.8"
async-trait = "0.1"
parking_lot = "0.12.1"

[dev-dependencies]
arbitrary = "1.2"
holochain = { version = "0.2.6", features = ["test_utils"] }
rand = "0.7"
tokio = { version = "1.3", features = ["full"] }
utilities = { path = "utilities" }
Loading

0 comments on commit b732bde

Please sign in to comment.