add nip-26 support

This commit is contained in:
pablof7z
2023-03-14 12:16:24 +00:00
committed by fiatjaf_
parent 185ee772e1
commit e96683d235
4 changed files with 18 additions and 3 deletions

View File

@@ -26,6 +26,12 @@ window.nostr = {
}
},
nip26: {
async delegate(delegateePubkey, conditionsJson) {
return window.nostr._call('nip26.delegate', {delegateePubkey, conditionsJson})
}
},
_call(type, params) {
return new Promise((resolve, reject) => {
let id = Math.random().toString().slice(4)