本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
writeas
/
web-core
镜像来自
https://github.com/writeas/web-core
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
0
活動
瀏覽代碼
Add support for including a public key on a Person
master
Matt Baer
5 年之前
父節點
d16108618b
當前提交
b5d7dbe3a3
共有
1 個檔案被更改
,包括
9 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
activitystreams/person.go
+ 9
- 0
activitystreams/person.go
查看文件
@@ -32,3 +32,12 @@ func NewPerson(accountRoot string) *Person {
return &p
}
func (p *Person) AddPubKey(k []byte) {
p.Context = append(p.Context, "https://w3id.org/security/v1")
p.PublicKey = PublicKey{
ID: p.ID + "#main-key",
Owner: p.ID,
PublicKeyPEM: string(k),
}
}
Write
Preview
Loading…
取消
儲存