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

@@ -8,7 +8,6 @@ export const PERMISSIONS_REQUIRED = {
getPublicKey: 1,
getRelays: 5,
signEvent: 10,
'nip26.delegate': 10,
'nip04.encrypt': 20,
'nip04.decrypt': 20,
}
@@ -17,7 +16,6 @@ const ORDERED_PERMISSIONS = [
[1, ['getPublicKey']],
[5, ['getRelays']],
[10, ['signEvent']],
[10, ['nip26.delegate']],
[20, ['nip04.encrypt']],
[20, ['nip04.decrypt']]
]
@@ -28,7 +26,6 @@ const PERMISSION_NAMES = {
signEvent: 'sign events using your private key',
'nip04.encrypt': 'encrypt messages to peers',
'nip04.decrypt': 'decrypt messages from peers',
'nip26.delegate': 'create key delegation tokens',
}
export function getAllowedCapabilities(permission) {