MaidSafe Dev Update - October 5, 2017

This week we have some new Android binaries (we’ve updated the binaries in the alpha-2 release on GitHub). This update has some new features such as a network opt-in auto reconnect on app resume (to test the reconnect feature, minimise the app and switch airplane mode on then off, wait for Internet connection to be reestablished and then switch back to the app) while the password fields enable a toggle to view credentials along with some minor UI changes. Also, the minimum supported version is now Android 4.1.2 (API 16). iOS device support has also now been integrated so devs should be able to test these applications on their devices, and we’re working on getting the apps through the application review process so community members will also be able to try these example on their iOS devices.

As we have mentioned in previous updates, we are looking to grow the number of developers in order to speed up development while also spreading the volume of work across the dev team while as part of our commercialisation strategy we also continue to recruit across non-technical roles. At present we have 6 opportunities available.

We’re happy to report that this week Rachit Dixit is joining Krishna’s team as a junior mobile app developer and we have another remote network engineer at the final stages of the interview process. We are also waiting on another network engineer (HQ based) to confirm his start date, and we have a dedicated digital marketer starting work from our new office (more on that in a moment) on the 23rd of October. All things going well our team will have grown to 26 by the end of this month. Of course, the aim is not just to increase numbers, but to improve the average capability of the team and with a much more robust recruitment process in place, this is something we remain focussed on.

As work continues in earnest across the various layers of the network and Client, the operations department has been busy planning MaidSafe’s move to new offices. After around 7 years or so we are moving to an office in the nearby town of Ayr (pronounced ‘air’). It truly is the end of an era to move from what has sometimes unkindly been called the ‘hut in Troon’. As a former boat chandlery, it could be a little cold in the winter, but it has looked after us well and we have been very lucky to have such an accommodating landlord (cheers Shaun!) during our time in Troon.

The new office is modern and comfortable and we think it will be well suited to accommodating our growing local team while creating the right impression with business partners. The official move date is one week from today (12th October) and over the coming weeks, we will be putting the MaidSafe stamp on the interior by integrating our brand and making the workspace a home from home for the existing team, and another tool in our armory for attracting new recruits. We’ll include some pictures in next week’s update.

SAFE Authenticator & API

We are continuing the refactor work as explained last week. The email example application is being refactored to improve the readability of API usage by switching to async/await instead of promises. Along with that, we configured asar to reduce the size of the packaged app. Also, the reducer functions are being refactored as explained in MAID-2373.

We had a minor bugfix in the SAFE Browser (favicons in web pages were not loaded previously). We don’t have a test suite yet for complete testing of the browser. We only have a test suite for the backend of the browser. Hence, we have added a checklist to the browser repository for manual testing until we have a UI test suite integrated. The CI scripts are updated for automated packaging of the browser on version changes/tags. Signing the binaries and also automatically packaging the browser with mock-routing is being discussed within the team. The test cases for the DOM APIs have been improved and would serve as a good reference for devs too.

safe_app_nodejs clears the handles when the objects are garbage collected. We did perform tests to confirm that the objects are cleared as expected. We have added a few basic examples to demonstrate the Node.js API usage using the test feature, where devs can run these examples without needing the authenticator. The instructions are detailed in the README of the examples in safe_app_nodejs. We will keep expanding the examples as we move forward.

SAFE Client Libs

Earlier this week, we finally merged the dev branch to master. From now on, we’ll be continuing all current development on the master branch. This makes the current FFI API incompatible with the Alpha 2 release, and we understand that it might break some of the existing apps. However, we strive to make the magnitude of these changes minimal: it is not as big as the transition from Alpha 1 to Alpha 2 was.

The recent and upcoming improvements are about refactoring rather than structural changes: for example, we’re replacing superfluous functions with value types, so that instead of calling e.g. mdata_permission_set_is_allowed you’ll just look up a field in the PermissionSet structure. The same idea applies to the MDataInfo type: now we just have structures instead of returning opaque pointers, so you can just look up mdata_info.xor_name without going a complicated route of extracting the type tag and name of a Mutable Data object with mdata_info_extract_name_and_type_tag. Further, we simplified enumeration functions, such as mdata_keys_for_each: now, instead of having two callbacks (which are called for each item and at the end of the keys sequence respectively), we just return a pointer to the entire list of keys. Soon, we’re going to replace all pointers in input and output parameters with value types. It will make the API less confusing in regard to dealing with memory management and copying of values. For now, to make the memory management simpler for the front-end side, we expect them to copy all output values and hand them over to e.g. a garbage collector. This approach is not too efficient and obvious, so by moving from pointers to Rust-allocated memory we intend to make the copying implicit in most of the cases. Overall, we hope that these changes will make the API more optimised, understandable, and simple to use, and we’re preparing a complete list of API changes to simplify the transition for the existing apps.

We added support in the SAFE Client Libs for setting configuration options through config files. We deprecated the SAFE_MEMORY_STORE environment variable, replacing it with the dev option mock_in_memory_storage, and added a new option which wasn’t there before: mock_unlimited_mutations, which turns off the limit on mutations in the mock vault. We stopped prepending schemes to URIs so that the SAFE Client Libs are decoupled from the URI scheme and only concern themselves with payload encoding/decoding. This PR also removed padding so that we no longer need special handling for URIs on mobile devices. Another change in the API is the removal of the mdata_change_owner FFI function, which was confusing, as currently apps cannot change the owner of a Mutable Data object and have no way to request that from the owners themselves, as some of the developers have noticed. This problem is connected to the multi-ownership/multi-sig feature, which is not currently implemented as well because for now we can request the owners’ signatures only out-of-band and it’s not yet clear how we should do that in a more automatic way. We intend to address both of these problems in the future.

Lastly, we merged fixes for bugs in the app revocation code. These bugs were found out during soak testing (running the test suite many times over) and fixed thanks to a change which made test runs deterministically. @adam also fixed a rare test failure (also found during the soak testing) caused by a mistake in the test itself.

Routing, Vault & Crust

Routing efforts are still focused on developing a secure mechanism for passing messages between sections. We keep hitting issues with every proposal that is being put forth, but we are constantly working on finding new solutions to every problem that pops up.

As mentioned in the previous update, we’ve been gradually rebasing Crust on the Tokio crate, which will allow us to use futures in the networking code. This will make the existing code cleaner and simplify our work on upcoming features (which include the uTP protocol integration). We’re steadily progressing with this huge refactoring. The current progress can be tracked in this code branch.

80 Likes

First - maybe Oo…

It is amazing to hear how steady the team is growing =)
And I can’t wait to see the new headquarter :blush: things are moving forward in a lot of ways at the same time :upside_down_face:

Especially the mobile reconnect thing sounds very sensible :hugs:
(ps: aaaaaand it is awesome! I love the mobile messaging app!)

16 Likes

Well done bring it !!!

9 Likes

So close, yet so far… 3rd is nothing to be ashamed of :grin:

Best part of mobile is I can simply pull over and get my fix, no more waiting to get home!!!
Whooohoooo

:point_up:

Excitement overflow!

17 Likes

Thanks Maidsafe devs. This is my last update on vacation, I wish you super ants could take 6 weeks off and AI could code for you. :stuck_out_tongue:

13 Likes

Thanks for the update! Good luck with the move to the new office

10 Likes

Thanks so much to the team for all of the hard work. And it’s very exciting to move to a nicer building!

9 Likes

What’s the status on data chains?

8 Likes

Wonderful stuff. I now have Authenticator and SAFE Messaging app installed and working on both Android tablet and (ancient) mobile phone. :clap:

Message me at happy2 (the account with happybeing is maxed out, so I can’t use that now).

:slight_smile:

Thank you team, and for your help getting me over a few coding hurdles this week.

13 Likes

Show and tell!!! :sunglasses::sunglasses:

5 Likes

Here was today’s, with special mention for Gabriel / @bochaco who is one of my heroes (very quick to pick up, and responds with laser precision), @Krishna_Kumar too, but community members are also jumping in to rescue me when I stray out of my depth. Thank you all!

Dumb DOM API questions - #94 by happybeing - API - Safe Dev Forum

That’s a 96 post geek topic going back to July, but you did ask :slight_smile:. I know you really want to know what apps I’m working on though… :wink: no secret there, as many of the remotestorage apps as I can get working. I have several half working, some blocked by limitations (I need a way to share files by URL, and one is too big to upload to a single account), some by a SAFE bug (in SAFE Browser - which doesn’t seem to like hash URLs), and all of them blocked by bugs in my fork of RS.js - slowly being squashed and should have something to play with soon, fingers crossed.

17 Likes

A team of 26 !!!

Congrats on your move to the new offices. Any update on datachains ?

9 Likes

About 30 yrs ago I stayed at a static caravan park in Ayr when I went to visit my (great) Auntie Ruby and Uncle David (Let’s hear it for the Ramsay Crew ‘wayht ah minnat, wayht a minnat’).

Mentioning Ayr has just brought back a lovely memory of playing shop in their shed. And also, counting my spending money (16x £1 coins) over and over again on their fireplace. I went to the toilet (which smelled of Pears soap) and when I came back, I re-counted and there was £17. Ayr is a clearly magical place, I approve of the move :wink:

20 Likes

The ant team is growing steadily but surely! That is s healthy sign of a project progressing. Happy for them as they have a better environment to work. That’s again for the update!

10 Likes

So the team are coming out of the cave and into a university complex with a startup culture…that was the plan, so I assume that’s whats still happening. Sure to give everyone a boost in moral as well as waistlines due to what I believe are some exotic local baking products.

8 Likes

Thank you once again for a really inspiring update ! We are moving home and workshop here too, sharing the feeling of packing crates, dusting drawers and discovering new spaces and energy ! :slight_smile:

Automatic reconnect for mobile was really needed , that is great news :slight_smile: Are there plans for porting this to desktop too ? It could be neat to see the connection revive on its own after suspend / hibernate . ( or could it be a security concern ? thinking as I type )

9 Likes

Nice work everyone. Thank you for the update.

8 Likes

Moving to more modern offices? Next you will tell us that the dev team are wearing white shirts and ties

7 Likes

I was just about to nudge and say, let’s not get too kushy now. :smile: only kidding of course. The new space is well deserved and sounds like it is a strategic move that will garner some good interest from the right people. Always thinking @maidsafe! A lot of big things happening and I couldn’t be more proud to be witnessing the growth of this movement front row and center with all of you other safenetforum members :slight_smile: here’s to progress! :beers:

10 Likes

Well done team, Alpha3 its around córner. :slight_smile:

4 Likes