You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling this method returns the new list’s updated `ref` and `historyref`, which you should use for future updates or access.
100
108
101
-
### Example Script
109
+
####Example Script:
102
110
103
111
The example script below performs the following key steps:
104
112
@@ -167,7 +175,7 @@ In order to view the members of our grantees list we need to use the 64 byte `re
167
175
The grantee list is encrypted, and only the owner can view the grantee list, make sure to use the owner node when using the `bee.getGrantees()` method.
168
176
:::
169
177
170
-
### Example Script
178
+
####Example Script:
171
179
172
180
The example script below performs the following operations:
173
181
@@ -236,7 +244,7 @@ The first list of grantees contains the first public key we gave access to when
236
244
237
245
We can upload our content with either of the two lists we created depending on which set of users we wish to give access too. In the example below, we use both lists.
238
246
239
-
### Example Script
247
+
####Example Script:
240
248
241
249
The example script below performs the following operations:
242
250
@@ -307,7 +315,7 @@ You can choose which `historyref` to share depending on which set of public keys
307
315
308
316
In order to download using ACT, we must pass in the public key from the grantee list creator along with the file reference and history reference returned from the file upload operation:
309
317
310
-
### Example Script
318
+
####Example Script:
311
319
312
320
The example script below performs the following operations:
Copy file name to clipboardExpand all lines: docs/documentation/gsoc.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar_label: GSOC
6
6
---
7
7
8
8
9
-
The GSOC (Graffiti Several Owner Chunk) feature allows a **full node** to receive messages from many other nodes using a shared Single Owner Chunk (SOC). This enables real-time communication and notification over Swarm.
9
+
The GSOC (Graffiti Several Owner Chunk) feature allows a **full node** to receive messages from many other nodes using a shared Single Owner Chunk (SOC). This enables real-time messaging over Swarm.
Copy file name to clipboardExpand all lines: docs/documentation/soc-and-feeds.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,15 @@ Swarm provides the ability to store content in content-addressed [chunks](https:
13
13
14
14
Feeds are a unique feature of Swarm which simulate the publishing of mutable content on Swarm's immutable storage. ***Feeds constitute the primary use case for SOCs.*** Developers can use Feeds to version revisions of a mutable resource by indexing sequential updates to a topic at predictably calculated addresses. Because Feeds are built on top of SOCs, their interfaces are somewhat similar and use common concepts.
15
15
16
+
17
+
## Requirements
18
+
19
+
Interactions with SOC and feeds requires the following:
20
+
21
+
* A fully initialized Bee light node running with fully synced postage batch data. (Running at `http://localhost:1633` by default)
22
+
* A valid postage batch ID.
23
+
* An Ethereum-compatible private key to sign updates. Using your node or blockchain account wallet's private key is strongly discouraged. Using a dedicated key for SOC / feeds is recommended.
24
+
16
25
## Single Owner Chunks
17
26
18
27
Bee-js calculates a SOC Swarm reference hash as the keccak256 hash of the concatenation of the `identifier` and `owner` Ethereum address. The `identifier` is a 32 byte long arbitrary value (by default a hex string or a `Uint8Array`). The `owner` is an Ethereum address that consists of 20 bytes in a format of a hex string or `Uint8Array`.
0 commit comments