Files
zeekayandHanzo Dev da299df77d the corporate name is Lux Industries Inc
Lux Partners Limited is not the entity behind this work. Every place the
old name stood — copyright lines, site footers, brand config, legal and
compliance text — now names the company that actually holds it.

lux.fund is the exception and is not renamed to match: that site belongs
to Lux Assets Management LLC, a different company, and it says so.

Two kinds of line were left for a person rather than rewritten. A dated
news item recording that Lux Partners Limited was established in the Isle
of Man is a historical fact, and renaming it would falsify the record. And
a sentence asserting that the company is domiciled in the Isle of Man is a
claim about a jurisdiction, not a name — an Inc or an LLC is not an Isle
of Man company, so swapping the name there would assert something untrue.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-28 13:05:15 -07:00
..

Public Archive Downloader SDK

This Go package provides a utility to download and extract tar archives from public URLs. It's tailored for downloading Lux network archives but can be adapted for other use cases.

Features

  • Downloads files from predefined URLs.
  • Tracks download progress and logs status updates.
  • Safely unpacks .tar archives to a target directory.
  • Includes security checks to prevent path traversal and manage large files.

Usage example

// Copyright (C) 2025, Lux Industries, Inc. All rights reserved
// See the file LICENSE for licensing terms.

package main

import ( "fmt" "os"

"github.com/luxfi//sdk/network"
"github.com/luxfi/luxd/utils/constants"
"github.com/luxfi/luxd/utils/logging"
"github.com/your-repo-name/publicarchive"

)

func main() { // Initialize the downloader downloader, err := publicarchive.NewDownloader(network.TestnetNetwork(), logging.Debug) if err != nil { fmt.Printf("Failed to create downloader: %v\n", err) os.Exit(1) }

// Start downloading
if err := downloader.Download(); err != nil {
	fmt.Printf("Download failed: %v\n", err)
	os.Exit(1)
}

// Specify the target directory for unpacking
targetDir := "./extracted_files"
if err := downloader.UnpackTo(targetDir); err != nil {
	fmt.Printf("Failed to unpack archive: %v\n", err)
	os.Exit(1)
}

fmt.Printf("Files successfully unpacked to %s\n", targetDir)

}