DFX Updates This Week

Hi everyone and happy Friday! I’d like to share some highlights from the SDK team for this week.

New Features and Changes

Keyring integration

You’ll now be able to use the OS-native keyring to decrypt your identity. Sure beats having to type your password for every command.

 
### feat: use OS-native keyring for pem file storage

If keyring integration is available, PEM files (except for the default identity) are now by default stored in the OS-provided keyring.
If it is not available, it will fall back on the already existing password-encrypted PEM files.
Plaintext PEM files are still available (e.g. for use in non-interactive situations like CI), but not recommended for use since they put the keys at risk.

To force the use of one specific storage mode, use the `--storage-mode` flag with either `--storage-mode password-protected` or `--storage-mode plaintext`.
This works for both `dfx identity new` and `dfx identity import`.

The flag `--disable-encryption` is deprecated in favour of `--storage-mode plaintext`. It has the same behavior.

Motoko 0.7.4

The latest version of DFX includes version 0.7.4 of Motoko, which fixed some bugs and introduced a few new language features. See the Motoko release notes here: Release 0.7.4 · dfinity/motoko · GitHub

In-flight

DFX pull

This feature allows you to pull in third party dependencies automatically via dfx, rather than building and installing each manually. This should make it much smoother to build integrations with canisters such as Internet Identity, InfinitySwap, or others.

Check out the full changelog here: sdk/CHANGELOG.md at master · dfinity/sdk · GitHub

Other fun stuff

I’ve been an avid user of the Arc browser since it launched, and I have had such a good experience with it, I want to share it with you. I have one invite code I can give to one lucky forum member, so whoever grabs this first can try Arc right away, without having to join the waitlist: A friend is gifting you Arc

More on the Arc browser: Arc Browser: Early Access Look | App Review - YouTube

Have a wonderful weekend and build something great!

7 Likes

Very much looking forward to playing with dfx pull to see how it can simplify local development integration with other canisters! I’m hoping that we can use this feature to make local idp integration dead-easy: Allow mainnet II delegations to sign localnet messages

To confirm, this is currently unreleased?

Yes, still unreleased and will probably still take a while until it’s production ready. @lwshang is working on this

1 Like