diff --git a/nip55.test.ts b/nip55.test.ts index 43dd742..71f1460 100644 --- a/nip55.test.ts +++ b/nip55.test.ts @@ -68,23 +68,6 @@ test('Sign Event URI', () => { expect(jsonObject).toHaveProperty('current_user', 'hex_pub_key') }) -test('Get Relays URI', () => { - const uri = nip55.getRelaysUri({ - id: 'some_id', - currentUser: 'hex_pub_key', - appName: 'test app name', - }) - - const jsonObject = parseNostrSignerUri(uri) - - expect(jsonObject).toHaveProperty('type', 'get_relays') - expect(jsonObject).toHaveProperty('compressionType', 'none') - expect(jsonObject).toHaveProperty('returnType', 'signature') - expect(jsonObject).toHaveProperty('id', 'some_id') - expect(jsonObject).toHaveProperty('current_user', 'hex_pub_key') - expect(jsonObject).toHaveProperty('appName', 'test app name') -}) - test('Encrypt NIP-04 URI', () => { const callbackUrl = 'https://example.com/?event=' diff --git a/nip55.ts b/nip55.ts index ab67225..68481f5 100644 --- a/nip55.ts +++ b/nip55.ts @@ -90,13 +90,6 @@ export function signEventUri({ eventJson, ...params }: EventUriParams): string { }) } -/** - * @deprecated removed from NIP - */ -export function getRelaysUri(params: BaseParams & { id?: string; currentUser?: string }): string { - return buildDefaultUri('get_relays', params) -} - function encryptUri(type: 'nip44_encrypt' | 'nip04_encrypt', params: EncryptDecryptParams): string { return buildDefaultUri(type, { ...params, plainText: params.content }) }