Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
writeas
/
web-core
réplica de
https://github.com/writeas/web-core
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
0
Actividad
Explorar el Código
Add privateKey on Person
master
Matt Baer
hace 5 años
padre
b417e93a0f
commit
05ac12f10e
Se han
modificado 2 ficheros
con
9 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-0
activitystreams/data.go
+8
-0
activitystreams/person.go
+ 1
- 0
activitystreams/data.go
Ver fichero
@@ -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 fichero
@@ -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
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar