mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Switch to NIP-44 bunker encryption
https://gitlab.com/soapbox-pub/ditto/-/issues/279
This commit is contained in:
parent
75f9c90a8c
commit
139e600b79
2 changed files with 2 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ async function getToken(
|
|||
const nip46Seckey = generateSecretKey();
|
||||
|
||||
const signer = new NConnectSigner({
|
||||
encryption: 'nip44',
|
||||
pubkey: bunkerPubkey,
|
||||
signer: new NSecSigner(nip46Seckey),
|
||||
relay: await Storages.pubsub(), // TODO: Use the relays from the request.
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ export class ConnectSigner implements NostrSigner {
|
|||
|
||||
async init(signer: NostrSigner): Promise<NConnectSigner> {
|
||||
return new NConnectSigner({
|
||||
encryption: 'nip44',
|
||||
pubkey: this.opts.bunkerPubkey,
|
||||
// TODO: use a remote relay for `nprofile` signing (if present and `Conf.relay` isn't already in the list)
|
||||
relay: await Storages.pubsub(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue