remove nip26.

https://fiatjaf.com/4c79fd7b.html
This commit is contained in:
fiatjaf
2023-06-09 16:24:03 -03:00
parent 6775fa413e
commit 4759ce6d36
4 changed files with 1 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ import {
getPublicKey,
nip19
} from 'nostr-tools'
import {nip04, nip26} from 'nostr-tools'
import {nip04} from 'nostr-tools'
import {Mutex} from 'async-mutex'
import {
@@ -142,11 +142,6 @@ async function handleContentScriptMessage({type, params, host}) {
let {peer, ciphertext} = params
return decrypt(sk, peer, ciphertext)
}
case 'nip26.delegate': {
let { delegateePubkey, conditionsJson } = params
let parameters = { pubkey: delegateePubkey, ...conditionsJson }
return nip26.createDelegation(sk, parameters)
}
}
} catch (error) {
return {error: {message: error.message, stack: error.stack}}