Skip to content

Commit

Permalink
nip46: remove "nip44_get_key" method as it was removed from the spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 25, 2024
1 parent cae06fc commit f2d421f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions nip46.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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])
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit f2d421f

Please sign in to comment.