NodeJs script to w3s delegated upload#387
Closed
red-0ne wants to merge 1 commit into
Closed
Conversation
f7ddad0 to
11b5735
Compare
11b5735 to
697b53c
Compare
Contributor
|
Thanks for the PR @red-0ne . I skimmed through and it looks nice. I think it'll be the way to go to use this script instead of the Saying that, let's park it (and keep as draft) until I complete the work on the w3s driver (livepeer/catalyst#375). It should take no more than a few days. After that, we'll come back to your PR and fill the script with all the commands we need, plus do a the actual code review. |
This was referenced Jan 27, 2023
iameli
pushed a commit
that referenced
this pull request
Feb 21, 2023
Files changed: M manifest.yaml Co-authored-by: livepeer-docker <livepeer-docker@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NodeJs script that uploads a file to w3.storage given a delegation proof. It takes the following arguments
--pathPath to the file to upload.--secreted25519 base64 encoded private key.--delegationbase64 encoded proof coming from client.It outputs CID of the uploaded file to stdout.
Note: It uses some ES modules that prevented packaging by pkg.
From
cmd/, install direct dependencies:Test
We create the user and setup a delegation proof that will be used by our script.
Use delegation to upload a file to that space
Closes livepeer/catalyst#365