ethersphere / bee

Bee is a Swarm client implemented in Go. It’s the basic building block for the Swarm network: a private; decentralized; and self-sustaining network for permissionless publishing and access to your (application) data.
https://www.ethswarm.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 337 forks source link

feat: pre-signed chunks #4719

Closed nugaon closed 2 weeks ago

nugaon commented 2 weeks ago

Introducing Swarm-Postage-Stamp header on /chunk and /soc POST endpoints.

It allows to push chunk to the Swarm network with pre-signed postage stamp on the attached chunk by the Bee client.

The header value must be a valid Postage Stamp otherwise error 400 has been thrown. It means that the stamp is signed against the attached chunk and the signature is created by its on-chain owner. A correct Postage Stamp value is 113 bytes encoded as hex string and consists of:

Closes #2905

Checklist

Description

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):