How to choose Encoding and Base algorithm?

Hi,

Currently trying to understand the prefix of the CIDv1 I tried to change the encoding algorithm and the base encoding however there is no flag to precise it. We can choose the hash algorithm with the flag

 --hash 

But not the encoding and the base.

Any ideas ?

Thank you for your time

ipfs cid --helpipfs cid format... allows you to swap bases etc.

ok so if I understand we can convert a existing CID to another base but we can’t create it directly with the wanted base encoding.

Yes… (but note that the CID is the same… changing the base is just changing the text representation of it).

1 Like

thank you for your time

Also, you might want to check out https://cid.ipfs.io/ to see a visual deconstruction of a CID