Open thekuwayama opened 1 year ago
Hey @thekuwayama , does this also apply in the no_std
or sequential
branches? @ivmarkov made some changes to the QR code logic in those branches.
@nevi-me @thekuwayama
TL;DR:
The issue applies to the no_std
and sequential
branches as well.
Long story: I've not changed how the QR printing code works conceptually. I've only removed allocations from it and made sure that the aspects that do require Rust STD (the actual display of the QR code in the console) are not called / compiled-out for baremetal / no_std.
Related: ideally we should replace the qrcode
lib which does need Rust STD with something that is no_std
(and ideally - no-alloc - compatible.). Say - this one.
@thekuwayama Would you mind contributing a PR for this?
@ivmarkov OK! :+1: Could you assign me to this?
I can't (no perms). But I guess if you open a PR that would be good enough in terms of an assignment.
Hello there,
I have a suggestion regarding the
print_pairing_code_and_qr()
function. Currently, it acceptscomm_data: &CommissioningData
as an argument. However, according to section 5.1 of the Matter-1.0-Core-Specification, both MPC and QR Code require a passcode.The
CommissioningData
has eitherVerifierOption::Password
orVerifierOption::Verifier
. In my understanding, passingVerifierOption::Verifier
instead ofVerifierOption::Password
as an argument toprint_pairing_code_and_qr()
will result in a runtime error.To avoid this issue, I recommend passing
VerifierOption::Password
as the argument toprint_pairing_code_and_qr()
instead.