Skip to content

Commit

Permalink
chore: update ceramic http dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1do committed May 14, 2024
1 parent 1b8968c commit e68e9b4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 63 deletions.
82 changes: 22 additions & 60 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ anyhow.workspace = true
async-trait.workspace = true
ceramic-core.workspace = true
iroh-car.workspace = true
ceramic-http-client = { git = "https://github.com/3box/ceramic-http-client-rs.git", branch = "main", default-features = false }
#ceramic-http-client = { path = "../../ceramic-http-client-rs", default-features = false }
ceramic-http-client = { git = "https://github.com/3box/ceramic-http-client-rs.git", branch = "chore/lib-update", default-features = false }
# ceramic-http-client = { path = "../../ceramic-http-client-rs", default-features = false }
clap.workspace = true
did-method-key = "0.2"
goose = { version = "0.16", features = ["gaggle"] }
Expand Down
3 changes: 2 additions & 1 deletion runner/src/scenario/ceramic/anchor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ async fn auth_header(url: String, controller: String, digest: Cid) -> Result<Str
let signer = JwkSigner::new(DidDocument::new(controller.as_str()), &node_private_key)
.await
.unwrap();
let auth_jws = Jws::for_data(&signer, &auth_payload).await?;
let auth_jws = Jws::builder(&signer).build_for_data(&auth_payload).await?;

let (sig, protected) = auth_jws
.signatures
.first()
Expand Down

0 comments on commit e68e9b4

Please sign in to comment.