mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Merge branch 'bunker-44' into 'main'
Switch to NIP-44 bunker encryption See merge request soapbox-pub/ditto!608
This commit is contained in:
commit
bb50ad7a43
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