Giter VIP home page Giter VIP logo

Comments (9)

n8fr8 avatar n8fr8 commented on June 28, 2024 1
  1. It shouldn't be on the fly - only when the "See more" screen is open
  2. The verification doesn't unpack the entire app into memory - it operates on the streams in the file to verify the bytes. I think it is fairly memory efficient.

from signal-x-proofmode.

basilesimon avatar basilesimon commented on June 28, 2024

@maxSafronovForte – unzipping on the fly and fetching the PGP key for verification, is that doable? I remember we said in #34 that reading from the actual ZIPs could be really hard.

from signal-x-proofmode.

n8fr8 avatar n8fr8 commented on June 28, 2024

The ProofMode library provides a method for unpacking the zip and verifying everything. It just needs to be given an InputStream that points to the zip bytes, and then it returns a boolean whether the integrity check was successful or not.

I would recommend then, that any UI display would say something like "Signature and Hash Integrity Confirmed" possibly with "Signed by Key 0xABC123"

from signal-x-proofmode.

maxSafronovForte avatar maxSafronovForte commented on June 28, 2024

We can't do unzipping file on a fly(in message screen), cause it'll need a lot of resources of device
Example:

  1. User sent us 50 messages
  2. When user opens dialog with bot we can't start unpacking all zips, we can unpack only that files, which user can see

And if user do scroll - we start a lot of background threads which will unpack zips.
It cause time and device memory, when not every device can give us

from signal-x-proofmode.

maxSafronovForte avatar maxSafronovForte commented on June 28, 2024

We can put key in message body and in this case it'll easier to do

from signal-x-proofmode.

maxSafronovForte avatar maxSafronovForte commented on June 28, 2024

However, we can check whatever we want in "See more" screen
Example:

  1. User press "See more" button
  2. We pass zip file and other info in new screen
  3. Show loading state while we unzip data and do some logic
  4. Show whatever we want after loading state finished

from signal-x-proofmode.

maxSafronovForte avatar maxSafronovForte commented on June 28, 2024

So if we need to do verification in "See more" screen, we can plan this work just after Mobile Coin integration
What do you think, @basilesimon ?

from signal-x-proofmode.

basilesimon avatar basilesimon commented on June 28, 2024

Well, it seems like the "see more" button is offering us a neat way of doing this. I'm in agreement that, if feasible, this verification / check is worth surfacing – it would be a waste otherwise!

Nathan, Carrie and I actually discussed what "verified" means or might mean to a user. So your formulation below seems just right:

"Signature and Hash Integrity Confirmed" possibly with "Signed by Key 0xABC123"

Max, we can look at how to rank it in the priorities list on the board. I suspect we're starting to have a long list there, but at least that gives us options.

from signal-x-proofmode.

n8fr8 avatar n8fr8 commented on June 28, 2024

I've started looking into this. One challenge is that See More... is attached to the Photo+Message proof display, while the proof zip is in the subsequent separate message. Figuring out how to get a URI/inputstream handle to the proof zip now, which I expect @maxSafronovForte knows how to do.

from signal-x-proofmode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.