SAFE Network Dev Update - September 19, 2019

Summary

Here are some of the main things to highlight this week:

Marketing

This week, weā€™ve got some new videos! First up are the screencasts by @Karamu, where he goes through a few CLI commands such as running a vault and connecting to the shared vault and using the safe-authenticator-cli to authorise the safe-cli application. Thereā€™s no audio but Calum has very helpfully included comments within the commands to help you follow along.

And to accompany @joshuefā€™s forum post the other week (Build a SAFE Site), he has created a Medium version and a short video where he shows you the CLIs in action. Do you find these helpful? Weā€™re keen to create more tutorials to support all types of developers out there :smile_cat:

Next week, @dugcampbell will be down at the Blockchain Live conference in London for various meetings so if youā€™re heading along, give us a shout!

Vaults Phase 2

Project plan

Now that we have finished the planning and preparation work, we have started the implementation of Phase 2 Vaults. Remember, Phase 2 is all about running multiple Vaults: an important step that brings the ultimate goal of ā€˜Vaults from homeā€™ much closer. The team has also been reinforced by @lionel.faber, @marcin, @nbaksalyar, and @yogesh, which basically brings the entire SAFE Client Libs team to work on this project.

One of the main tasks of Phase 2 is to add Routing and PARSEC to Vaults. And thatā€™s where we start our adventure: initially, we integrate mock Routing, emulating the parts of the Routing functions we need while not directly depending on the Routing crate itself yet. This allows us to move asynchronously to the Routing team, so no team is held up. Currently, we are focusing on testing communication between multiple Vaults and ensuring all functions work as expected when we add more Vaults to a section.

In the Routing crate, work has progressed nicely on the PARSEC pruning functionality, with the first couple of PRs nearing completion. As outlined in last weekā€™s update, the idea is to treat a pruning event similar to a prefix change where a new PARSEC instance is created and events that have not yet reached consensus are reinserted.

SAFE CLI

Project plan

Today we have released a new version of the SAFE CLI (v0.4.0) which incorporates a couple of minor fixes, and only two additional features:

  1. files add command: this command allows users to add a single file to an existing FilesContainer either by providing a local file path or the XOR-URL of a file already uploaded on the network. The User Guide has been updated accordingly with information about this new command.
  2. Media-type (a.k.a. MIME-type) encoded in XOR-URLs: we added support for encoding the Media-type in the XOR-URLs, and with this, now all files uploaded to the network with the safe files commands will be linked from the FilesContainer using XOR-URLs which contain the fileā€™s Media-type.

Please be aware that if using this new version of the SAFE CLI, the files/sites/XOR-URLs generated with it wonā€™t be decodable/resolved properly by the existing PoC SAFE Browser, therefore we are preparing a new release of the PoC Browser which can handle these new XOR-URLs, and weā€™ll be making it available soon.

The API bindings weā€™ve been working on for the browser have had a fair going over this week. With Windows builds and packaging both finally working well and implemented for the CI system too. On top of this weā€™re working on adding a test suite too!

For those not following our Vault Phase 1 discussion on this forum, we are now trying to focus on getting the safe_auth CLI commands merged into the SAFE CLI, towards simplifying the UX for operating with the network using CLI. We are after the goal of having a single CLI where users can not only manage content, but also interact with the Authenticator. We are researching to find a way to run the Authenticator as a proper system daemon/service, which would expose an interface which any client application or Authenticator UI/GUI can interface with.

SAFE Network App

Project plan

Weā€™ve been firing in with update procedure and CI in a big way this last week. Thereā€™s been a lot of niggles to work out here to get something weā€™re comfortable with, but weā€™re zoning in on a process thatā€™s looking good. Our first release is getting closer!

This latest UX design sprint, which is looking further past the first release, has allowed us to round out the process for buying, generating and managing account invites to the SAFE Network. This naturally has implications for things like wallets and Safecoin for the benefactor, but then the onboarding process for the recipient too.

So this is where we have spent the rest of the design sprint: onboarding new users, and in particular helping them create Identitiesā€”otherwise known as Safe IDs.

Thereā€™s more to it than meets the eye. How does a user manage multiple identities? And how might they start from a position of anonymity? And how might they want to have data, transactions, and settings accessible alongside each Safe ID?

Itā€™s interesting and important work: to think scaled-up for the future, but then bring it back down to a manageable feature set to iterate upon.

Oh, and weā€™re building this set all with mobile front and centre, ready to be rapidly ported to desktop and beyond.

SAFE Desktop Browser

Project plan

This last week weā€™ve been refining the browser proof of concept that works with the new shared vaults. Weā€™ve added a few new tasty bits of functionality (NRS registry in the browser!? Manage sites and upload files?!?!?!) that are now working their way through QA. Once weā€™re satisfied there, weā€™ll be getting a new release of the browser out ASAP.

Other than that, with the new bindings finally working with Windows properly, weā€™ve at long last, been able to enable Windows tests and builds with the CI. Something that was previously impossible due to some nodejs FFI and windows incompatibilities.

SAFE Mobile Browser

Project plan

As mentioned last week, we are continuing with setting up and running UI tests (locally and in CI). Until now we were dependant on the IDE to run and examine the test results, but now we can run the UI tests independently on any platform (Windows/Mac/Linux) and therefore on Azure DevOps which we are using for CI. The tests are run via Cake build scripts uses nunit-console runner to run Xamarin-UITests. We are currently able to run tests on the CI and can examine the test results published in XML format.

We also fixed an issue that was causing app crashes by checking if the session object is null before fetching content and returning the appropriate error message.

SAFE App C#

Project plan

This week we actively discussed and started working on some more project restructuring and refactoring tasks so that the library is ready to use new bindings to provide APIs for the new data types and other functionalities.

We also raised a draft PR to the safe-cli repo which includes the basic setup required to generate the native libs for desktop and mobile platform and to use the FFI bindings from safe_app_csharp. We still have a long way to go before we release a new NuGet package with the new APIs.

SAFE Client Libs

Now that development has started for Vaults Phase 2, SAFE Client Libs has no active development. We will continue to fix any issues from Phase 1 and make improvements wherever we can, however, the team will be mostly focused on integrating routing with the Vault. See you on the other side!

BLS

Project plan

This week saw continued steady progress for the BLS project, including implementing Distributed Key Generation (DKG) in mock-parsec, as well as modifying the candidate approval process to enable Adults to participate in DKG. A subtle bug related to premature consensus was also fixed in mock-parsec.

Useful Links


Feel free to send us translations of this Dev Update and weā€™ll list them here:

82 Likes

Glad to be part of this :blush:

marvellous detail! love it! (and was hoping for it :smiley: )

28 Likes

Thanks so much to all of the team for all of their hard work!

23 Likes

Bronze! Now to read ā€¦ :slight_smile:

Another great update - really looking forward to seeing how Phase 2 comes along on the road to Vaults from home!

20 Likes

Lightspeed ahead :racing_car: this is awesome.

23 Likes

would it be this difficult to expose the functions like the ffi interface for the client_libs?
implementing all the operations for all the different data types is quite some work (thats why @dask and me wanted to be sure the api doesnā€™t change anymore before continue working on the python libs - but exposing those basic operations that come with the client libs should be rather straight forward i guess (?) and would come with the benefit of not having to implement all functions on our own + automatically being compatible with the cli :open_mouth: ā€¦

nice ! =)

15 Likes

Afterburners engaged. Hold onto your seats ladies and gentlemen! :boom::rocket:

Amazing update all around. Weā€™re headed straight towards a highly functional network.

Edit: Looks like you and I were really drawn to the same thing @Josh :joy:

23 Likes

Blimey Iā€™m late, was writing a post!

Great work team, I find it impressive to have several fronts advancing alongside each other with deliverables arriving every few days and being able to see the network get closer each week. Thank you!

20 Likes

Indeed we are accelerating to cruising altitude! :slight_smile: Be well folks. Take care.

19 Likes

I think this is a great idea. I know itā€™s been acknowledged that is how the majority of the global population access the internet and it also is good to get the hard part done first. There is so much less real estate on mobile to fit all these fancy things so tackling that up front will be a good idea and will easily translate to desktop.

24 Likes

Great to see more solid progress. Canā€™t wait for vaults phase 2! :sunglasses:

21 Likes

Vault phase 2 implementation !!!

15 Likes

The team has also been reinforced by @lionel.faber, @marcin, @nbaksalyar, and @yogesh

That is making my post after 11h later bit outdated. Great news!

18 Likes

Just a thought.

Donā€™t we risk diluting our marketing efforts by releasing everything all at once? Mobile app, browser etcā€¦?

3 Likes

Coming back from vacation and an international move and itā€™s all of a sudden tricky to catch up! Fantastic work.

12 Likes

Great update as always, and the summary is back!

15 Likes

I didnā€™t understand most of the update. Not unusual for me. But I am keeping my eyes fixed on Vaults 2 progress. In my unsophiscated mind, if/when that works we can all get drunk.

15 Likes

I am more looking forward to when networking comes into play(vaults from home) and we can see real latencies and such that only come from a decentralized network. But getting consensus/parsec working within a local node is a good and necessary step to work towards it!

13 Likes

YES, full steam ahead! Vault Phase 2 is going to be epic (and not just because weā€™ll have squashed so many ā€œEpicsā€) :wink:

12 Likes

Not only that: the idea here is that once we get it working within a local node, we donā€™t really need to do much extra work to make it work across the network. :slight_smile: Thatā€™s usually the main intent behind these ā€˜mocksā€™: once we have them working, it means we can just switch from a mock to the real thing without a lot of effort.

27 Likes