Skip to content

Add a way to configure the default multibase used #8889

Open
@Jorropo

Description

@Jorropo

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

Description

After #8886.

We could configure what the default multibase is, for example myself I work mainly in the terminal and prefer base64url because it's shorter and pollute less of my screen.

I think the best way to do that would be an environment variable that the client read.
(there is no reason to force that config global to the node, however we don't have any client only config file and I don't think we need one).

Simply a simple:

export IPFS_DEFAULT_MULTIBASE=base256emoji

would be enough.

This flag would be used as default. If a command has a good reason to override it, such as ipfs cid format -b base32 for example, it would be ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementA net-new feature or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions