Help:Uploading to MaRDI Portal Storage
MaRDI Portal Storage keeps research files, such as datasets, code archives or PDFs, in MaRDI's IPFS storage. Its preservation network D-LOCKSS takes them into its archive. Every file gets a digital signature in your name, so the archive records you as its uploader.
MaRDI provides this service for the National Research Data Infrastructure (NFDI). It is open to members of universities and research institutions in Germany: faculty, staff and students. They log in with the account of their institution through NFDI AAI. See #Who can upload.
We are testing this service. Information on how long files are kept and on usage quotas will be added later.
Who can upload
You can upload if you log in through your institution and it reports you as a member: faculty, staff or student. Member means a member of the institution in the sense of the respective state higher education law (Landeshochschulgesetz), as defined by DFN-AAI. With a login through ORCID or a portal account, you cannot upload. Administrators can always upload.
If you cannot upload, Special:IpfsUpload shows a permission error instead of the form:

To log in through your institution:
- Open Log in and click Login with your NFDI AAI Account.
- On the NFDI AAI page, click Login with DFN AAI and choose your institution.
- Log in with the account of your institution.
After the login, the portal takes you to the upload form.
-
The portal's login page
-
The NFDI AAI page
Your identity
The portal does not learn who you are from the login. It saves a unique ID for your account instead. Law enforcement authorities can use this ID to have your institution identify you.
Besides this ID, the portal asks NFDI AAI only for your affiliation (faculty, staff, student or member). It does not keep a copy of it. It needs the affiliation only to check at each login whether you can upload. The exact request is in the portal's login configuration.
Uploading a file
- Log in through your institution.
- Open Special:IpfsUpload, if the login did not take you there.
- Under File, choose the file.
- Under Your key, enter a passphrase.
- On your first upload, you choose it here. It protects your key: without it, not even the portal's administrators can use your key.
- Nobody can look it up, change or restore it. Note it somewhere safe.
- On every later upload, enter the same passphrase. See #The passphrase.
- Click Upload and sign.

The page then shows the file's CID and the public key it was signed with. Note the CID: it is the permanent identifier of the file.

The file can now be downloaded by anyone, at
https://ipfs.portal.mardi4nfdi.de/ipfs/CID
with CID replaced by the file's CID. See #Getting a file by its CID for more.
Uploading from your own client
You can also upload straight from your computer, with the IPFS command line client and your key. This suits:
- large files: the upload form takes files up to 2 GB, uploads from your own client are not bound by that,
- your own workflows and scripts, for example to upload the results of a computation.
Each upload sends one file and gives it one CID. To keep a directory together under one CID, pack it into one archive file, for example with tar, and upload the archive.
You need:
- Kubo, set up as in #Setting it up,
- your key, imported as in #Using your key,
- the tool jq.
Set f to the file. The file name must not contain spaces.
f=FILE; cid=$(ipfs add -Q -n "$f"); sig=$(printf 'dlockss-upload %s' "$cid" | ipfs key sign -k mardi | jq -r .Signature); key=$(ipfs key list -l --ipns-base b58mh | awk '$2=="mardi"{print $1}'); curl -sS --data-binary @"$f" "https://ipfs.portal.mardi4nfdi.de/upload?cid=$cid&key=$key&sig=$sig&name=$(basename "$f")"
Your node only computes the CID, it does not add the file. The D-LOCKSS node checks the signature and asks the portal whether your key may upload. It answers with the CID of the record it created for the file.
Your key
A digital signature is made with a key. It has two parts. The private key makes signatures; only you may use it. The public key lets anyone check that a signature was made with your private key.
The portal holds such a key for you. It is created with your first upload. Under Your key the form shows its public key, a string starting with 12D3KooW.
The passphrase
- The passphrase encrypts your key. Without it, nobody can sign in your name, not even the portal's administrators.
- You choose it with your first upload. Enter the same passphrase every time after that.
- The passphrase of a key cannot be changed, and the portal cannot recover a forgotten one.
- You may leave it empty. Then anyone who can read the portal's database can sign in your name.
If the passphrase is wrong, nothing is uploaded and the form says so. Choose the file again and enter the right passphrase.
If you forgot the passphrase
Tick Create a new key and enter a new passphrase. The portal then creates a new key and signs with it. Files signed with your old key stay signed.
Downloading your private key
Enter your passphrase and click Download private key. You get a file named after your public key, ending in .key.
Keep it safe: anyone who has this file can sign in your name.
With the file you can use the same key in your own IPFS client, see #Using your own IPFS client.
What the CID means
The CID is computed from the file's content alone. The same file gives the same CID, whatever it is called. A file that differs in a single byte gets a different CID.
So anyone can check that a file is the one you uploaded: compute its CID and compare, see #Using your own IPFS client.
Archiving
D-LOCKSS is MaRDI's preservation network. It keeps copies of the uploaded files.
About a minute after your upload, D-LOCKSS writes an archive record for the file. The record contains:
- the CID,
- the file name and size,
- your public key and your signature.
So the archive records which key signed the file. It does not contain your name.
Getting a file by its CID
Anyone can download a file from any IPFS gateway, without logging in:
https://ipfs.portal.mardi4nfdi.de/ipfs/CID
Replace CID with the file's CID. To check that you got exactly the uploaded file, compute its CID, see #Downloading and checking a file.
Checking who signed a file
This address lists the public keys and signatures the portal holds for a CID:
https://portal.mardi4nfdi.de/w/rest.php/math/v0/signatures/CID
Replace CID with the file's CID. Each entry has a key and a signature.
If someone else uploaded the same file before you, the archive keeps the record of the first upload. Your signature is still listed at this address.
Using your own IPFS client
You can do the checks above, and use your key, with the IPFS command line client Kubo.
Setting it up
The portal adds files with the IPFS import profile unixfs-v1-2025. Set your node to the same profile once, so it computes the same CIDs:
ipfs init --profile unixfs-v1-2025
If you already have a node, use this instead:
ipfs config profile apply unixfs-v1-2025
Computing a CID
This prints the CID of a file without adding it anywhere:
ipfs add --only-hash -Q FILE
It is the same CID the portal shows after the upload.
Downloading and checking a file
curl -o FILE https://ipfs.portal.mardi4nfdi.de/ipfs/CID
ipfs add --only-hash -Q FILE
The second command prints the CID of what you downloaded. It must be the CID you asked for.
Checking a signature
What the portal signs is the text dlockss-upload, a space and the CID. Take a key and a signature from the list of signatures of the CID, then:
printf 'dlockss-upload %s' CID | ipfs key verify --key KEY --signature SIGNATURE
The output contains "SignatureValid":true if the signature is valid. You need only the public key for this, not the private key.
Using your key
Import the private key you downloaded:
ipfs key import mardi 12D3KooW….key
ipfs key list -l --ipns-base b58mh
The second command shows the key mardi with the same public key as in the form.
With it you can sign a CID yourself:
printf 'dlockss-upload %s' CID | ipfs key sign --key mardi
For a file you uploaded, the signature is exactly the one the portal lists for your key.

