Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAll ¶
GenerateAll creates bundles for all friends in the project.
func GenerateBundle ¶
func GenerateBundle(params BundleParams) error
GenerateBundle creates a single bundle ZIP file for one friend.
func GenerateReadme ¶
func GenerateReadme(data ReadmeData) string
GenerateReadme creates the README.txt content with all embedded information.
func VerifyBundle ¶
VerifyBundle verifies the integrity of a bundle ZIP file. Returns nil if valid, or an error describing the problem.
Types ¶
type BundleParams ¶
type BundleParams struct {
OutputPath string
ProjectName string
Friend project.Friend
OtherFriends []project.Friend
Threshold int
Total int
ManifestData []byte
ManifestChecksum string
RecoverHTML string
RecoverChecksum string
Version string
GitHubReleaseURL string
SealedAt time.Time
Anonymous bool
RecoveryURL string
}
BundleParams contains all parameters for generating a single bundle.
type Config ¶
type Config struct {
Version string // Tool version (e.g., "v1.0.0")
GitHubReleaseURL string // URL to GitHub release for CLI download
WASMBytes []byte // Compiled recover.wasm binary
RecoveryURL string // Optional: base URL for QR code (e.g. "https://example.com/recover.html")
}
Config holds configuration for bundle generation.
type ReadmeData ¶
type ReadmeData struct {
ProjectName string
Holder string
OtherFriends []project.Friend
Threshold int
Total int
Version string
GitHubReleaseURL string
ManifestChecksum string
RecoverChecksum string
Created time.Time
Anonymous bool
}
ReadmeData contains all data needed to generate README.txt
Click to show internal directories.
Click to hide internal directories.