mirror of https://codeberg.org/pzp/pzp-wiki.git
36 lines
580 B
Markdown
36 lines
580 B
Markdown
---
|
|
sidebar_position: 4
|
|
---
|
|
|
|
# Feed
|
|
|
|
A feed is a special type of tangle, where the root is a predictable (by any peer) message with no content.
|
|
|
|
```mermaid
|
|
graph RL;
|
|
D--"A"-->C--"A"-->B--"A"-->A;
|
|
F-->E-->C;
|
|
G-->D & F;
|
|
|
|
style A color:red;
|
|
```
|
|
|
|
Root:
|
|
|
|
```typescript
|
|
interface Msg {
|
|
data: null // MUST be null
|
|
metadata: {
|
|
dataHash: null // MUST be null
|
|
dataSize: 0 // MUST be 0
|
|
account: string // MUST be an ID
|
|
accountTips: null // MUST be null
|
|
tangles: {} // MUST be empty object
|
|
domain: string
|
|
v: 2
|
|
}
|
|
pubkey: Pubkey
|
|
sig: Signature
|
|
}
|
|
```
|