add nip-26 support
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user