https://raw.githubusercontent.com/ipfs/ipfs-docs/main/docs/concepts/ipns.md
第一步:我们把组件画好
graph TB
Record>"IPNS Record"]
subgraph Routing
Publisher
Resolver
Local[("Local store")]
subgraph Transports
PubSub[(PubSub)]
DHT[(DHT)]
end
end
第二步:我们添加组件之间的流程(关系)
graph TB
Record>"IPNS Record"]
subgraph Routing
Publisher
Resolver
Local[("Local store")]
subgraph Transports
PubSub[(PubSub)]
DHT[(DHT)]
end
end
Resolver-- resolve -->Record-- "(re)publish" -->Publisher
Publisher-- PUT -->DHT-. GET .->Resolver
Publisher-- PUT -->PubSub-. GET .->Resolver
Publisher-- Cache -->Local-. GET .->Resolver-- Cache -->Local