zk-Lokomotive / zkl-aus

Arweave uploader scripts
0 stars 0 forks source link

impl: uploading and retrieving blobs to/from Arweave #1

Open fybx opened 2 months ago

fybx commented 2 months ago

@virjilakrum Can you revise your work to follow the guidelines provided below, thanks. You can convert this task to an issue in a repository.


The approach we use is like this:

I advise you to check out https://git.fybx.dev/fyb/zkl-kds/src/branch/main/key-derivation.js and https://git.fybx.dev/fyb/zkl-kds/src/branch/main/key.js to get an idea on how to develop modules with pure functions.

virjilakrum commented 2 months ago

I'll try to update by the meeting tomorrow, thanks. @fybx

virjilakrum commented 2 months ago

Modular Structure:

// file-upload.js
export function uploadFile(file, walletKey) {
  // Implementation
}

// metadata.js
export function createMetadata(name, description, imageUrl, attributes) {
  // Implementation
}

// arweave-transaction.js
export function createAndSignTransaction(data, walletKey) {
  // Implementation
}

// arweave-upload.js
export function uploadToArweave(transaction) {
  // Implementation
}