Implement account public key endpoint
This commit is contained in:
parent
a3cef6e9b5
commit
cba73d6bc1
6 changed files with 66 additions and 52 deletions
|
|
@ -3,6 +3,7 @@ import { extractPublic } from '../../../../crypto_key';
|
|||
import { ILocalAccount } from '../../../../models/user';
|
||||
|
||||
export default ({ username, account }) => ({
|
||||
id: `${config.url}/@${username}/publickey`,
|
||||
type: 'Key',
|
||||
owner: `${config.url}/@${username}`,
|
||||
publicKeyPem: extractPublic((account as ILocalAccount).keypair)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue