nip46: remove "nip44_get_key" method as it was removed from the spec.

This commit is contained in:
fiatjaf
2024-10-25 10:21:54 -03:00
parent cae06fc4fe
commit f2d421fa4f
2 changed files with 1 additions and 7 deletions

View File

@@ -1,4 +1,3 @@
import { hexToBytes } from '@noble/hashes/utils'
import { NostrEvent, UnsignedEvent, VerifiedEvent } from './core.ts'
import { generateSecretKey, finalizeEvent, getPublicKey, verifyEvent } from './pure.ts'
import { AbstractSimplePool, SubCloser } from './abstract-pool.ts'
@@ -251,11 +250,6 @@ export class BunkerSigner {
return await this.sendRequest('nip04_decrypt', [thirdPartyPubkey, ciphertext])
}
async nip44GetKey(thirdPartyPubkey: string): Promise<Uint8Array> {
let resp = await this.sendRequest('nip44_get_key', [thirdPartyPubkey])
return hexToBytes(resp)
}
async nip44Encrypt(thirdPartyPubkey: string, plaintext: string): Promise<string> {
return await this.sendRequest('nip44_encrypt', [thirdPartyPubkey, plaintext])
}

View File

@@ -1,7 +1,7 @@
{
"type": "module",
"name": "nostr-tools",
"version": "2.9.1",
"version": "2.9.2",
"description": "Tools for making a Nostr client.",
"repository": {
"type": "git",