-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
syntax = "proto3"; | ||
package bitcoin.keys.taproot; | ||
|
||
import "amino/amino.proto"; | ||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/sideprotocol/side/bitcoin/keys/taproot"; | ||
|
||
message PubKey { | ||
option (amino.name) = "bitcoin/PubKeyTaproot"; | ||
// The Amino encoding is simply the inner bytes field, and not the Amino | ||
// encoding of the whole PubKey struct. | ||
// | ||
// Example (JSON): | ||
// s := PubKey{Key: []byte{0x01}} | ||
// out := AminoJSONEncoder(s) | ||
// | ||
// Then we have: | ||
// out == `"MQ=="` | ||
// out != `{"key":"MQ=="}` | ||
option (amino.message_encoding) = "key_field"; | ||
option (gogoproto.goproto_stringer) = false; | ||
|
||
bytes key = 1; | ||
} | ||
|
||
// PrivKey defines a Taproot private key. | ||
message PrivKey { | ||
option (amino.name) = "bitcoin/PrivKeyTaproot"; | ||
option (amino.message_encoding) = "key_field"; | ||
|
||
bytes key = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
syntax = "proto3"; | ||
package bitcoin.segwit; | ||
|
||
import "amino/amino.proto"; | ||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/sideprotocol/side/bitcoin/keys/segwit"; | ||
|
||
message PubKey { | ||
option (amino.name) = "bitcoin/PubKeySegWit"; | ||
// The Amino encoding is simply the inner bytes field, and not the Amino | ||
// encoding of the whole PubKey struct. | ||
// | ||
// Example (JSON): | ||
// s := PubKey{Key: []byte{0x01}} | ||
// out := AminoJSONEncoder(s) | ||
// | ||
// Then we have: | ||
// out == `"MQ=="` | ||
// out != `{"key":"MQ=="}` | ||
option (amino.message_encoding) = "key_field"; | ||
option (gogoproto.goproto_stringer) = false; | ||
|
||
bytes key = 1; | ||
} | ||
|
||
// PrivKey defines a SegWit private key. | ||
message PrivKey { | ||
option (amino.name) = "bitcoin/PrivKeySegWit"; | ||
option (amino.message_encoding) = "key_field"; | ||
|
||
bytes key = 1; | ||
} |