2023-07-31 09:02:07 -03:00
2023-07-28 10:12:46 -03:00
2023-07-31 09:02:07 -03:00
2023-07-26 16:44:33 -03:00
2023-07-26 16:44:33 -03:00
2023-07-26 16:44:33 -03:00
2023-07-31 09:02:07 -03:00
2023-07-26 16:44:33 -03:00
2023-07-28 15:26:37 -03:00
2023-07-26 16:44:33 -03:00
2023-07-26 16:36:23 -03:00
2023-07-28 16:38:53 -03:00
2023-07-26 16:44:33 -03:00

Amber: Nostr event signer for Android

Designed to have your keys on only one application

Adding Amber support for your application

  • Add a package querie in your AndroidManifest.xml
<queries>
    <package android:name="com.greenart7c3.nostrsigner"/>
</queries>
  • Create the Nostr Event
val event = TextNoteEvent(noteId = "", pubKey, TimeUtils.now(), tags, message, signature = "")
  • Convert the event to json
val json = event.toJson()
  • Create the intent using the nostrsigner scheme
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("nostrsigner:$json"))
  • Add an extra information with the write relays separated by commas of the current user
intent.putExtra("relays", "wss://relay.damus.io,wss://nostr.wine")
  • Set the package name of the signer app for the intent
intent.`package` = "com.greenart7c3.nostrsigner"
  • Start the signer Activity
context.startActivity(intent)
  • In Amber you will see 3 buttons

    • The left one you can select the relays to post the Event
    • The button in the middle is to sign the event and copy the raw event json to the clipboard
    • The button on the right is to sign the event and send to the choosen relays

Contributing

Issues and pull requests are very welcome.

S
Description
No description provided
Readme MIT
18 MiB
Languages
Kotlin 93.5%
DM 5.5%
Shell 0.7%
Dockerfile 0.2%
Python 0.1%