Interface and basic functionality.
Just learning how to make a basic extension. Creating an interface and setting up some basic plumbing.
This commit is contained in:
14
Shared (Extension)/Resources/nostr.js
Normal file
14
Shared (Extension)/Resources/nostr.js
Normal file
@@ -0,0 +1,14 @@
|
||||
console.log("hello from nostr module");
|
||||
|
||||
window.nostr = {
|
||||
async getPublicKey() {
|
||||
console.log("getting public key!");
|
||||
return "285d4ca25cbe209832aa15a4b94353b877a2fe6c3b94dee1a4c8bc36770304db";
|
||||
},
|
||||
|
||||
async signEvent(event) {
|
||||
console.log("Signing event");
|
||||
console.log(event);
|
||||
return "signed event";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user