| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
| |
This is a helper method & isn't used anywhere else. It should have
never been exported.
|
| | |
|
| |
|
|
| |
I will be using some of this elsewhere, so it really should be there.
|
| |
|
|
|
|
| |
In case these leak, they will expire automatically. Currently, they use
the same method as the gift wrap expirations: expiration + 2 days after
the creation timestamp.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Currently, this just takes a message from the text box and returns its
decrypted version, but next I will make it decrypt messages it gets from
relays.
This code works with both NIP-07 (window.nostr) and getPrivateKey(). If
both are available, it chooses NIP-07 like the encryption code.
|
| |
|
|
|
|
|
|
|
| |
If window.nostr is available, I don't need the sender's SK, I can do
everything with its functions. Otherwise, I'll ask for the SK using
getPrivateKey().
The override public key was only for testing, but I still don't need it
because I can get the users' private keys from the settings tab.
|
| |
|
|
| |
This makes the system work with any nostr extensions you might be using.
|
|
|
This is based on an audited NIP-44 implementation.
|