Skip to content

Commit

Permalink
Omit unused nbf and nnc
Browse files Browse the repository at this point in the history
  • Loading branch information
cdata committed Apr 1, 2022
1 parent aeda853 commit 7203f32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ucan-key-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ repository = "https://github.com/cdata/rs-ucan/"
homepage = "https://github.com/cdata/rs-ucan"
license = "Apache-2.0"
readme = "README.md"
version = "0.3.0-alpha.5"
version = "0.3.0-alpha.6"

[features]
default = []
web = ["wasm-bindgen", "wasm-bindgen-futures", "js-sys", "web-sys", "ucan/web", "getrandom/js"]

[dependencies]
ucan = {path = "../ucan", version = "0.5.0-alpha.5" }
ucan = {path = "../ucan", version = "0.5.0-alpha.6" }
anyhow = "1.0.52"
async-trait = "0.1.52"
ed25519-zebra = "^3"
Expand Down
2 changes: 1 addition & 1 deletion ucan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository = "https://github.com/cdata/rs-ucan/"
homepage = "https://github.com/cdata/rs-ucan"
license = "Apache-2.0"
readme = "README.md"
version = "0.5.0-alpha.5"
version = "0.5.0-alpha.6"
edition = "2021"

[features]
Expand Down
3 changes: 2 additions & 1 deletion ucan/src/ucan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use serde_json::Value;
use std::str;
use std::sync::Arc;

// use crate::crypto::did::{did_to_signing_key, SigningKeyResult};
use crate::crypto::did::DidParser;
use crate::time::now;

Expand All @@ -21,7 +20,9 @@ pub struct UcanPayload {
pub iss: String,
pub aud: String,
pub exp: u64,
#[serde(skip_serializing_if = "Option::is_none")]
pub nbf: Option<u64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub nnc: Option<String>,
pub att: Vec<Value>,
pub fct: Vec<Value>,
Expand Down

0 comments on commit 7203f32

Please sign in to comment.