Skip to content

Implement signing feature#1003

Merged
AlaaElattar merged 21 commits into
developmentfrom
development_signing
May 6, 2025
Merged

Implement signing feature#1003
AlaaElattar merged 21 commits into
developmentfrom
development_signing

Conversation

@AlaaElattar

@AlaaElattar AlaaElattar commented Apr 27, 2025

Copy link
Copy Markdown
Contributor

Changes

  • Added signing screens.
  • User can hash data with md5 and sign it with one of its wallets.
  • Data can be given through text, qr code or a link.
2025-04-27.16.37.20.mp4

Related Issues

Tested Scenarios

A list of scenarios tried to match the deliverables

  • Tested all screens with valid and invalid data inputs.

@AhmedHanafy725 AhmedHanafy725 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add a destination URL in all of the signing methods to send the signature to that destination in a post request with an application/json header, and set the signed data in the signature key
{ "signature": "<signed data>" }

Comment thread app/lib/jrouter.dart Outdated
Comment thread app/lib/apps/sign/sign.dart Outdated
Comment thread app/lib/screens/signing/signing.dart Outdated
Comment thread app/lib/screens/signing/signing.dart Outdated
Comment thread app/lib/screens/signing/signing.dart Outdated
Comment thread app/lib/screens/signing/sign_with_text.dart Outdated
Comment thread app/lib/screens/signing/sign_with_qrcode.dart Outdated
Comment thread app/lib/screens/signing/sign_with_qrcode.dart Outdated
Comment thread app/lib/screens/signing/sign_with_qrcode.dart Outdated
setState(() {
linkError = 'Missing required parameters';
});
_showInvalidLinkDialog();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tried to use the raw content of the repo readme as the link but it fails
https://raw.githubusercontent.com/threefoldtech/tfgrid-sdk-dart/refs/heads/development/README.md

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@AlaaElattar AlaaElattar marked this pull request as draft April 28, 2025 10:24
AlaaElattar and others added 9 commits April 28, 2025 13:52
Co-authored-by: AhmedHanafy725 <41957921+AhmedHanafy725@users.noreply.github.com>
Co-authored-by: AhmedHanafy725 <41957921+AhmedHanafy725@users.noreply.github.com>
Co-authored-by: AhmedHanafy725 <41957921+AhmedHanafy725@users.noreply.github.com>
Co-authored-by: AhmedHanafy725 <41957921+AhmedHanafy725@users.noreply.github.com>
Co-authored-by: AhmedHanafy725 <41957921+AhmedHanafy725@users.noreply.github.com>
Co-authored-by: AhmedHanafy725 <41957921+AhmedHanafy725@users.noreply.github.com>
Co-authored-by: AhmedHanafy725 <41957921+AhmedHanafy725@users.noreply.github.com>
@AlaaElattar AlaaElattar marked this pull request as ready for review April 28, 2025 11:59
@AhmedHanafy725

Copy link
Copy Markdown
Contributor

@ehab-hassan, can you have a look at the design here?

Comment thread app/lib/screens/signing/sign_with_text.dart Outdated
Comment thread app/lib/screens/signing/sign_with_text.dart Outdated
Comment thread app/lib/screens/signing/sign_with_text.dart Outdated
Comment thread app/lib/screens/signing/sign_with_link.dart Outdated
Comment thread app/lib/screens/signing/sign_with_qrcode.dart Outdated
@AlaaElattar AlaaElattar marked this pull request as draft April 30, 2025 08:11
@ehab-hassan

ehab-hassan commented Apr 30, 2025

Copy link
Copy Markdown

@ehab-hassan, can you have a look at the design here?

All good to me, just small comments
Keep all buttons sizes in the App to be the same font as the sign-in

old

New

For signing in, use this.
https://pictogrammers.com/library/mdi/icon/draw/

@AlaaElattar

Copy link
Copy Markdown
Contributor Author

@ehab-hassan, can you have a look at the design here?

All good to me, just small comments Keep all buttons sizes in the App to be the same font as the sign-in

old

New

For signing in, use this. https://pictogrammers.com/library/mdi/icon/draw/

  • Updated the icon.

@AlaaElattar AlaaElattar marked this pull request as ready for review April 30, 2025 12:38

@override
Widget build(BuildContext context) {
final wallets = ref.watch(walletsNotifier);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What if the wallets were not loaded?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

2025-05-05.13.55.03.mp4

@AlaaElattar AlaaElattar marked this pull request as draft May 5, 2025 08:56
@AlaaElattar AlaaElattar marked this pull request as ready for review May 5, 2025 10:54
@AlaaElattar AlaaElattar merged commit 789cb07 into development May 6, 2025
2 checks passed
@AlaaElattar AlaaElattar deleted the development_signing branch May 6, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants