Skip to content

Commit

Permalink
UCAN v0.9 (#455)
Browse files Browse the repository at this point in the history
* use nb field in Capability, set ucv to 0.9

* support encoding as raw or dagjson

* common trait impls

* block de/encoding for Ucans

* update proof ref to be "ucan:<CID>"

* impl basic revocation message

* did vm url verification

* fix warnings and revocation sig verification

* update tests

Co-authored-by: Charles Cunningham <[email protected]>
Co-authored-by: Charles Cunningham <[email protected]>
Co-authored-by: Charles Cunningham <[email protected]>
Co-authored-by: Charles Cunningham <[email protected]>
Co-authored-by: Charles Cunningham <[email protected]>
  • Loading branch information
6 people authored Jul 13, 2022
1 parent e108c35 commit e865520
Show file tree
Hide file tree
Showing 8 changed files with 594 additions and 1,682 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ snarkvm-algorithms = { version= "0.7.9", optional = true }
snarkvm-curves = { version= "0.7.9", optional = true }
snarkvm-utilities = { version = "0.7.9", optional = true }
snarkvm-parameters = { version = "0.7.9", optional = true }
serde_with = "1.14"
serde_with = { version = "1.14", features = ["base64"]}
libipld = { version = "0.13", features = ["serde-codec"] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
clear_on_drop = "0.2.4"
Expand Down
1 change: 1 addition & 0 deletions src/jws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ pub fn split_detached_jws(jws: &str) -> Result<(&str, &str), Error> {
Ok((header_b64, signature_b64))
}

#[derive(Clone, PartialEq)]
pub struct DecodedJWS {
pub header: Header,
pub signing_input: Vec<u8>,
Expand Down
Loading

0 comments on commit e865520

Please sign in to comment.