vulpemventures / marina

Liquid Wallet browser extension
MIT License
37 stars 19 forks source link

Add Nostr Web Provider #279

Open tiero opened 2 years ago

tiero commented 2 years ago

Would be useful to add support for Nostr protocol events, used to build alternative decentralized Twitter and so on

https://github.com/fiatjaf/nostr

window.nostr.getPublicKey
window.nostr.signEvent

Web provider: https://github.com/fiatjaf/nos2x/blob/master/extension/nostr-provider.js

bordalix commented 2 years ago

@tiero can you describe a use case where this would be useful for/with Marina?

I'm not sure if you mean: a) allow Marina to be used also as a nostr extension (inject window.nostr) b) or to use nostr.signEvent inside Marina for some new functionality

tiero commented 2 years ago

a) allow Marina to be used also as a nostr extension (inject window.nostr)

yes, to be able to use the Marina to inject a nostr web provider. So it will be injected in parallel with the marina one.

Ideally we should derive a key pair from the xpub and use it as "permanent identity" public Key