Discover Packages
github.com/ethersphere/bee/v2
pkg
soc
package
Version:
v2.2.0-rc5
Opens a new window with list of versions in this module.
Published: Sep 2, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 7 modules, 9 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package soc provides the single-owner chunk implementation
and validator.
CreateAddress creates a new SOC address from the id and
the ethereum address of the owner.
Valid checks if the chunk is a valid single-owner chunk.
SOC wraps a content-addressed chunk.
FromChunk recreates a SOC representation from swarm.Chunk data.
New creates a new SOC representation from arbitrary id and
a content-addressed chunk.
NewSigned creates a single-owner chunk based on already signed data.
Address returns the SOC chunk address.
Chunk returns the SOC chunk.
func (s *SOC ) OwnerAddress() []byte
OwnerAddress returns the ethereum address of the SOC owner.
Sign signs a SOC using the given signer.
It returns a signed SOC chunk ready for submission to the network.
Signature returns the SOC signature.
WrappedChunk returns the chunk wrapped by the SOC.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.