Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Bytes upload with pre-defined key

Open
#5,202 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@nugaon is already working on this.

Since Sep 1, 2025.

Assessment

This issue has not been assessed yet.

Description

Summary

Add support for pre-defined encryption keys at /bytes endpoint uploads. Currently, encryption keys are randomly generated internally, but users should be able to specify their own keys for deterministic encryption.

Motivation

Enable efficient encrypted streaming where all stream segments are encrypted by a pre-defined key derived from the same seed.

The seed could be shared in an ACT among participants instead of creating ACT for each stream segment (or even for unrelated content since this seed should change only in case of participant list change).

Implementation
  • Add optional header to /bytes endpoint: Swarm-Encryption-Key
    • Swarm-Encrypt: true header should be passed with it to keep the correctness of its definition.
  • Modify encryption pipeline and hashtrie components
Drawbacks
  • User responsibility for secure key generation
Dominant language
Go
Stars
1.5k
Forks
390
Avg merge
2d 11h
Merged PRs (30d)
23

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ethersphere/bee

All issues in ethersphere/bee

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.