Skip to content
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

Support combination of revocable / non-revocable credentials and timestamp override #102

Merged

Conversation

whalelephant
Copy link
Contributor

No description provided.

@whalelephant whalelephant force-pushed the nonrevoked-interval-checks branch from 71e1b71 to 7274ca0 Compare February 9, 2023 06:10
@whalelephant whalelephant changed the title wip: for interface review Support combination of revocable / non-revocable credentials and timestamp override Feb 9, 2023
@whalelephant whalelephant force-pushed the nonrevoked-interval-checks branch 3 times, most recently from 76b1625 to 599da2c Compare February 13, 2023 14:46
@whalelephant whalelephant marked this pull request as ready for review February 13, 2023 15:01
@whalelephant whalelephant force-pushed the nonrevoked-interval-checks branch 2 times, most recently from e6b9195 to 5bea53c Compare February 15, 2023 22:43
Copy link
Member

@TimoGlastra TimoGlastra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Like the extensive comments!

pub struct FfiNonrevokedIntervalOverride<'a> {
rev_reg_def_id: FfiStr<'a>,
/// Timestamp in the `PresentationRequest`
requested_from_ts: i64,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good later on to use i32s here. I think we map them to a u64 later and it would help in the JS side where every number is an f32.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah good idea! fixed

) -> Result<(Vec<AttributeInfo>, Option<NonRevokedInterval>)> {
trace!("_get_revealed_attributes_for_credential >>> sub_proof_index: {:?}, requested_credentials: {:?}, pres_req: {:?}",
sub_proof_index, requested_proof, pres_req);
let mut nonrevoked_interval: Option<NonRevokedInterval> = None;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let mut nonrevoked_interval: Option<NonRevokedInterval> = None;
let mut non_revoked_interval: Option<NonRevokedInterval> = None;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@whalelephant whalelephant force-pushed the nonrevoked-interval-checks branch from 0b3d7a9 to 9dd8674 Compare February 17, 2023 21:22
@TimoGlastra
Copy link
Member

@whalelephant is this ready to merge? Any blockers here?

@TimoGlastra
Copy link
Member

Do we need any updates to the FFI wrappers? If so could you point me in the right direction on what needs to be fixed?

@whalelephant
Copy link
Contributor Author

whalelephant commented Feb 24, 2023

The wrapper has been implemented and this is ready to be merged. Note, it is breaking change for anoncreds_verify_presentation interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants