Ask for a signer name and key, and hold saved Markdown whole to sign it
This commit is contained in:
@@ -17,6 +17,9 @@ It registers one provider, `signature`, for the `signed-webdav` scheme.
|
||||
| Server address | The folder's address, for example `https://dav.example.com/files/` |
|
||||
| Username | Optional account name for HTTP basic authentication |
|
||||
| Password | Optional password, stored as a secret |
|
||||
| Signer name | The ENS name that signs, for example `laptop.alice.eth` |
|
||||
| Signing key | The private key of the address the name resolves to, stored as a secret |
|
||||
| Sepolia RPC address | The endpoint used to check signers against ENS, by default `https://ethereum-sepolia-rpc.publicnode.com` |
|
||||
|
||||
Listing, reading, writing, creating directories, renaming and deleting behave
|
||||
as in the WebDAV plugin: reads and writes stream in pieces of at most 1 MiB,
|
||||
@@ -24,6 +27,15 @@ conditional writes use `If-Match` and `If-None-Match`, change polling is not
|
||||
supported, a rename never replaces an existing target, and a folder with
|
||||
contents is refused rather than removed whole.
|
||||
|
||||
## Signing
|
||||
|
||||
Saving a `.md` file holds it whole, up to 8 MiB, and writes it once finished,
|
||||
with `signer` and `signature` set in its frontmatter; every other file streams
|
||||
straight through. Reading passes every file through unchanged. The signing
|
||||
itself lives behind one small interface that the md-ens-signature library
|
||||
fills in; until then a saved file is written exactly as it arrives. The RPC
|
||||
address is for verifying signers, which a later version adds to reads.
|
||||
|
||||
## Building
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user