Skip to content

Commit 51580c7

Browse files
signature: add enum private key length and bitcoin public key format (#103)
1 parent 9c8ac2f commit 51580c7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

model/signature.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,19 @@ enum SignatureType {
1111
BitcoinSignature = 1;
1212
// in bytes: []byte{2,0,0,0} for multisig validation purpose only
1313
MultisigSignature = 2;
14+
}
15+
16+
// BitcoinPrivateKeyBytesLength represent the length of private key that can use
17+
enum PrivateKeyBytesLength {
18+
PrivateKeyInvalid = 0;
19+
PrivateKey256Bits =32;
20+
PrivateKey384Bits = 48;
21+
PrivateKey512Bits = 64;
22+
}
23+
24+
// BitcoinPublicKeyFormat represent the option of the Bitcoin public key format that can use
25+
// public key format : https://bitcoin.org/en/wallets-guide#public-key-formats
26+
enum BitcoinPublicKeyFormat {
27+
PublicKeyFormatUncompressed = 0;
28+
PublicKeyFormatCompressed = 1;
1429
}

0 commit comments

Comments
 (0)