Programmatic generation of Storj keys

I am working on an idea which I think can use Storj

As I’ve developed the idea it has changed a few times as you can see with my threads

What I think I am looking for now is a way to programmatically generate a key which can be used to write and to delete files from the storj network

So I have a Storj account right now but I want to use ideally nodejs to generate a key pair and to upload files and to also be able to delete files

I’ve been looking around and I will keep looking around but nothing obvious so far so I want to ask so someone here can let me know if there is reading material for this

Code does not have to be nodejs I can work with another language if there’s already more available in another lang

Thanks!

Just to be super clear I don’t want to generate a key pair using the browser and then copy paste into an env file or something like that

It’s important that I have a program which can get the key itself, if it has to send a request to a Storj server that is fine

This program will be running in a TEE trusted execution environment

I can have the TEE boot with some credentials that maybe authorize the creation of keys for my account

But I want the TEE program to generate or request and receive a key and this key me the developer I don’t want access to, it is to stay with the TEE

I am reading more about keys

I think I need to use the S3 compatible API

I don’t want to spell out my idea fully because I’m trying to make a living

But my requirements are

  1. I give code in TEE credentials for a storj account
  2. The code can store files on the network
  3. I don’t know the location / paths of these files
  4. at a later date the TEE can reveal the file paths
  5. given the file paths I can get the file from the network
  6. the file is unencrypted or decrypted for me

I think I might have to use some combination of the S3 compat API

Maybe another way to frame this is: can I create an S3 type bucket that the root account can Read but cannot List?

I have more information now and I’m going to open a more specific thread / topic admins can close this

2 Likes