Amend nip46 describe and delegate methods (#304)

This commit is contained in:
Marco Argentieri 2023-02-27 18:22:46 +01:00 committed by GitHub
parent 2bf08b3487
commit d70959aee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
46.md
View File

@ -61,7 +61,7 @@ These are mandatory methods the remote signer app MUST implement:
- **describe** - **describe**
- params [] - params []
- result `{"get_public_key": { params: [], result: anything }}` - result `["describe", "get_public_key", "sign_event", "connect", "disconnect", "delegate", ...]`
- **get_public_key** - **get_public_key**
- params [] - params []
- result `pubkey` - result `pubkey`
@ -77,8 +77,8 @@ These are mandatory methods the remote signer app MUST implement:
- **disconnect** - **disconnect**
- params [] - params []
- **delegate** - **delegate**
- params [`pubkey`, `conditions query string`] - params [`delegatee`, `{ kind: number, since: number, until: number }`]
- result `nip26 delegation token` - result `{ from: string, to: string, cond: string, sig: string }`
- **get_relays** - **get_relays**
- params [] - params []
- result `{ [url: string]: {read: boolean, write: boolean} }` - result `{ [url: string]: {read: boolean, write: boolean} }`