-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(legacy): bump version to 3.6.0 (#500)
- Loading branch information
Showing
35 changed files
with
1,641 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
syntax = "proto2"; | ||
package hw.trezor.messages.nostr; | ||
|
||
// Sugar for easier handling in Java | ||
option java_package = "com.satoshilabs.trezor.lib.protobuf"; | ||
option java_outer_classname = "TrezorMessageNostr"; | ||
|
||
/** | ||
* Request: PublicKey at the specified index | ||
* @start | ||
* @next NostrPublicKey | ||
*/ | ||
message NostrGetPublicKey { | ||
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node | ||
optional bool show_display = 2; // optionally show on display before sending the result | ||
} | ||
|
||
/** | ||
* Response: NostrPublicKey for the given index | ||
* @end | ||
*/ | ||
message NostrPublicKey { | ||
optional string publickey = 1; | ||
optional string npub = 2; | ||
} | ||
|
||
/** | ||
* Request: Ask device to sign Nostr event | ||
* @start | ||
* @next NostrSignEvent | ||
*/ | ||
message NostrSignEvent { | ||
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node | ||
required bytes event = 2; // serialized raw transaction | ||
} | ||
|
||
/** | ||
* Response: Contains nostr event signature | ||
* @end | ||
*/ | ||
message NostrSignedEvent { | ||
required bytes event = 1; | ||
} | ||
|
||
/** | ||
* Request: Ask device to sign Nostr hash | ||
* @start | ||
* @next NostrSignedSchnorr | ||
*/ | ||
message NostrSignSchnorr { | ||
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node | ||
required string hash = 2; // hash | ||
} | ||
|
||
/** | ||
* Response: Contains nostr hash signature | ||
* @end | ||
*/ | ||
message NostrSignedSchnorr { | ||
required bytes signature = 1; | ||
} | ||
|
||
/** | ||
* Request: Ask device to encrypt nostr message | ||
* @start | ||
* @next NostrEncryptedMessage | ||
*/ | ||
message NostrEncryptMessage { | ||
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node | ||
required string pubkey = 2; // pubkey | ||
required string msg = 3; // message | ||
optional bool show_display = 4; // optionally show on display before sending the result | ||
} | ||
|
||
/** | ||
* Response: Contains encrypted message | ||
* @end | ||
*/ | ||
message NostrEncryptedMessage { | ||
required string msg = 1; | ||
} | ||
|
||
/** | ||
* Request: Ask device to decrypt nostr message | ||
* @start | ||
* @next NostrEncryptedMessage | ||
*/ | ||
message NostrDecryptMessage { | ||
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node | ||
required string pubkey = 2; // pubkey | ||
required string msg = 3; // message | ||
optional bool show_display = 4; // optionally show on display before sending the result | ||
} | ||
|
||
/** | ||
* Response: Contains decrypted message | ||
* @end | ||
*/ | ||
message NostrDecryptedMessage { | ||
required string msg = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.