diff options
| author | greenart7c3 <115044884+greenart7c3@users.noreply.github.com> | 2025-10-13 15:21:07 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-13 11:21:07 -0700 |
| commit | d54c4267091987f035819ff4714910e388f5d701 (patch) | |
| tree | c9907ae297d7659c544c73cfcf37347281114ec4 /55.md | |
| parent | 179e42101150616c07884a321a70c6d889285202 (diff) | |
[NIP 55] - Instructions on how to use the get_public_key method with content resolver (#2086)
Diffstat (limited to '55.md')
| -rw-r--r-- | 55.md | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -295,6 +295,8 @@ For the other types Signer Application returns the column "result" | |||
| 295 | 295 | ||
| 296 | If the user chose to always reject the event, signer application will return the column "rejected" and you should not open signer application | 296 | If the user chose to always reject the event, signer application will return the column "rejected" and you should not open signer application |
| 297 | 297 | ||
| 298 | Clients SHOULD save the user pubkey locally and avoid calling the `get_public_key` after the user is logged in to the Client | ||
| 299 | |||
| 298 | #### Methods | 300 | #### Methods |
| 299 | 301 | ||
| 300 | - **get_public_key** | 302 | - **get_public_key** |
| @@ -303,7 +305,7 @@ If the user chose to always reject the event, signer application will return the | |||
| 303 | ```kotlin | 305 | ```kotlin |
| 304 | val result = context.contentResolver.query( | 306 | val result = context.contentResolver.query( |
| 305 | Uri.parse("content://com.example.signer.GET_PUBLIC_KEY"), | 307 | Uri.parse("content://com.example.signer.GET_PUBLIC_KEY"), |
| 306 | listOf("login"), | 308 | listOf(hex_pub_key), |
| 307 | null, | 309 | null, |
| 308 | null, | 310 | null, |
| 309 | null | 311 | null |