Skip to main content

Interface: SingleOwnerChunk

Defined in: core-sdk/src/chunk/soc.ts:52

Single Owner Chunk (SOC) - a chunk type where the address is determined by the owner and an arbitrary identifier. Its integrity is attested by the owner's digital signature rather than by hashing the content directly.

  • span indicates the size of the payload in bytes.
  • payload contains the actual data or the body of the chunk.
  • data contains the full chunk data - identifier, signature, span and payload.
  • address is the Swarm hash (or reference) of the chunk.
  • identifier is an arbitrary identifier selected by the uploader.
  • signature is the 65-byte (r || s || v) signature of the owner over the identifier and the wrapped chunk's address.
  • owner is the Ethereum address of the chunk owner.

Properties

address

address: Reference

Defined in: core-sdk/src/chunk/soc.ts:56


data

readonly data: Uint8Array

Defined in: core-sdk/src/chunk/soc.ts:53


identifier

identifier: Identifier

Defined in: core-sdk/src/chunk/soc.ts:57


owner

owner: EthAddress

Defined in: core-sdk/src/chunk/soc.ts:59


payload

payload: Bytes

Defined in: core-sdk/src/chunk/soc.ts:55


signature

signature: Signature

Defined in: core-sdk/src/chunk/soc.ts:58


span

span: Span

Defined in: core-sdk/src/chunk/soc.ts:54

💬 Get Help