Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
writeas
/
web-core
espelhamento de
https://github.com/writeas/web-core
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
0
Atividade
Ver código fonte
Add support for including a public key on a Person
master
Matt Baer
5 anos atrás
pai
d16108618b
commit
b5d7dbe3a3
1 arquivos alterados
com
9 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+9
-0
activitystreams/person.go
+ 9
- 0
activitystreams/person.go
Ver arquivo
@@ -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),
}
}
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar