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 privateKey on Person
master
Matt Baer
5 anos atrás
pai
b417e93a0f
commit
05ac12f10e
2 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
+1
-0
activitystreams/data.go
+8
-0
activitystreams/person.go
+ 1
- 0
activitystreams/data.go
Ver arquivo
@@ -13,6 +13,7 @@ type (
ID string `json:"id"`
Owner string `json:"owner"`
PublicKeyPEM string `json:"publicKeyPem"`
privateKey []byte
}
Image struct {
+ 8
- 0
activitystreams/person.go
Ver arquivo
@@ -41,3 +41,11 @@ func (p *Person) AddPubKey(k []byte) {
PublicKeyPEM: string(k),
}
}
func (p *Person) SetPrivKey(k []byte) {
p.PublicKey.privateKey = k
}
func (p *Person) GetPrivKey() []byte {
return p.PublicKey.privateKey
}
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar