-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add mDoc reader functions #22
Conversation
b2c7823
to
fc1fe25
Compare
Signed-off-by: Ryan Tate <[email protected]>
Signed-off-by: Ryan Tate <[email protected]>
Signed-off-by: Ryan Tate <[email protected]>
Signed-off-by: Ryan Tate <[email protected]>
The BLE ident isn't currently verified (an issue already exists) so it didn't break anything. Was unable to double-check with a non-mobile-sdk wallet.
Also re-add e2e test which had disappeared
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.
LGTM to merge, we can always make improvements as the implementation in a real application is done and tested.
src/mdl/reader.rs
Outdated
// TODO what was this for? Reusing the same reader? | ||
#[derive(thiserror::Error, uniffi::Error, Debug)] | ||
pub enum MDLReaderRequestBuildError { | ||
#[error("{value}")] | ||
Generic { value: String }, | ||
} |
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.
Either remove the comment or the enum?
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.
removed the whole thing as it's unused
src/mdl/reader.rs
Outdated
// Bytes(Vec<u8>), // already converted in string | ||
ItemMap(HashMap<String, MDocItem>), | ||
Array(Vec<MDocItem>), | ||
// Image(Vec<u8>) maybe? |
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 remove this comments?
You would typically recreate a new flow
Checklist:
ble_ident
is correct. But probably not because we go from bytes to hex string back to bytes without decoding the string.MDocItem
type work in Kotlin, or move back to JSON as it is the type returned byisomdl