Actually, revert anything Alby would sign to nip04 since Alby doesn't support nip44 yet
This commit is contained in:
parent
37e55b4e18
commit
641d2872d8
|
@ -197,7 +197,7 @@ async function payZap(event: DittoEvent, signal: AbortSignal) {
|
||||||
|
|
||||||
const nwcRequestEvent = await signer.signEvent({
|
const nwcRequestEvent = await signer.signEvent({
|
||||||
kind: 23194,
|
kind: 23194,
|
||||||
content: await signer.nip44.encrypt(
|
content: await signer.nip04.encrypt(
|
||||||
event.pubkey,
|
event.pubkey,
|
||||||
JSON.stringify({ method: 'pay_invoice', params: { invoice: pr } }),
|
JSON.stringify({ method: 'pay_invoice', params: { invoice: pr } }),
|
||||||
),
|
),
|
||||||
|
|
|
@ -63,7 +63,7 @@ export class APISigner implements NostrSigner {
|
||||||
|
|
||||||
createAdminEvent({
|
createAdminEvent({
|
||||||
kind: 24133,
|
kind: 24133,
|
||||||
content: await new AdminSigner().nip44.encrypt(
|
content: await new AdminSigner().nip04.encrypt(
|
||||||
pubkey,
|
pubkey,
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
id: messageId,
|
id: messageId,
|
||||||
|
@ -93,7 +93,7 @@ export class APISigner implements NostrSigner {
|
||||||
this.#c.req.raw.signal.addEventListener('abort', close);
|
this.#c.req.raw.signal.addEventListener('abort', close);
|
||||||
|
|
||||||
for await (const event of sub) {
|
for await (const event of sub) {
|
||||||
const decrypted = await new AdminSigner().nip44.decrypt(event.pubkey, event.content);
|
const decrypted = await new AdminSigner().nip04.decrypt(event.pubkey, event.content);
|
||||||
|
|
||||||
const result = jsonSchema
|
const result = jsonSchema
|
||||||
.pipe(connectResponseSchema)
|
.pipe(connectResponseSchema)
|
||||||
|
|
Loading…
Reference in New Issue