使用方法
java -jar plantuml.1.2021.8.jar /Users/imac/Documents/coderep/understandchain/md/filecoin_puml/phala.puml
## 如果需要math等數(shù)學(xué)公式插件,可以下載相應(yīng)的包,然后將jar文件放到跟plantuml jar文件同一個(gè)目錄下
imacdeiMac:tools imac$ tree
.
├── batik-all-1.7.jar
├── jlatexmath-minimal-1.0.3.jar
├── jlm_cyrillic.jar
├── jlm_greek.jar
├── plantuml-jlatexmath.zip
├── plantuml.1.2021.8.jar
## uml目錄的文件內(nèi)容為
@startuml phala
'節(jié)點(diǎn)注冊(cè)過(guò)程 gatekeeper或者miner
gatekeeper -> gatekeeper: pRuntime.GetIdentity
gatekeeper -> gatekeeper : pRuntime.GetRAQuote
gatekeeper -> Remote_Attestation_Service : q
Remote_Attestation_Service -> gatekeeper: q_signed
note right
Try also
<math>d/dxf(x)=lim_(h->0)(f(x+h)-f(x))/h</math>
<math>P(y|bb"x") or f(bb"x")+epsilon</math>
end note
' gatekeeper -> blockchain : q_signed
@enduml

uml效果