Closed mjg-foundation closed 2 months ago
Do you mean saving a file in the Coldcard format? https://coldcard.com/docs/sign-text-file/#text-file-format
I'd like the standard (electrum) format if possible
I'd like the standard (electrum) format if possible
Is this documented anywhere?
Not anywhere great, but it's already exported via QR here in the sparrow ui, and it follows this format:
signmessage <derivation path> ascii: <message>
for example:
signmessage m/84h/0h/0h/0/0 ascii: chancellor on the brink of second bailout
I'll have to double check in the morning if my code strips leading spaces on the message. It wasn't too clear to me if a space would be inserted between the colon and the message as part of the standard.
I think it would be better to use the same format as Coldcard, rather than introduce an effectively new format for this media? The format used for QRs is not really material, and is poorly documented as you say.
Ok, I can adapt to that. Thanks!
Implemented in 17093dbf. As per the Coldcard spec the message is saved as a single line (newlines are removed) but no further checks or amendments are made.
Would it be possible to add an option to sign messages with a given address via MicroSD from this screen? I'm working on the signing end of this with Passport, since some messages can be a bit too much to scan in a single QR code.