-
Notifications
You must be signed in to change notification settings - Fork 16
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
Sync CLI options with SDK options #402
Conversation
TBD Spec Test Vectors Report (web5-rs)
❌ Missing Vectors (13)These are test vectors without any test cases.
Automatically generated at: 2024-10-25T18:33:22.037Z |
@@ -92,6 +121,24 @@ impl Commands { | |||
} | |||
}, | |||
}; | |||
let issuance_date = match issuance_date { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can issuance date be none?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It cannot. Will default to current date and time.
@@ -92,6 +121,24 @@ impl Commands { | |||
} | |||
}, | |||
}; | |||
let issuance_date = match issuance_date { | |||
None => None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it should do the issuance date now()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SDK will take care of that. This is just meant to be a passthrough from the CLI to the SDK function.
TBD Spec Test Vectors Report (web5-core-kt)
❌ Missing Vectors (15)These are test vectors without any test cases.
Automatically generated at: 2024-10-25T18:37:46.981Z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also do you mind switching it to use chrono instead of System time for generating the timestamp:
There was unknown wasm black hole when using it
here was a fix in tbdex-rs - TBD54566975/tbdex-rs@6bac761
use chrono::{Duration, Utc};
use std::time::SystemTime;
let now = Utc::now();
let exp = now + Duration::seconds(60);
let now_system_time: SystemTime = now.into();
let exp_system_time: SystemTime = exp.into();
What type of PR is this? (check all applicable)
Description
This PR allows the web5 cli to pass in a number of options when creating a VC.
Related Tickets & Documents
Resolves #
Mobile & Desktop Screenshots/Recordings
Added code snippets?
Added tests?
No tests? Add a note
This is simple plumbing
Added to documentation?
No docs? Add a note
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?