Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions model/signature.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,19 @@ enum SignatureType {
BitcoinSignature = 1;
// in bytes: []byte{2,0,0,0} for multisig validation purpose only
MultisigSignature = 2;
}

// BitcoinPrivateKeyBytesLength represent the length of private key that can use
enum PrivateKeyBytesLength {
PrivateKeyInvalid = 0;
PrivateKey256Bits =32;
PrivateKey384Bits = 48;
PrivateKey512Bits = 64;
}

// BitcoinPublicKeyFormat represent the option of the Bitcoin public key format that can use
// public key format : https://bitcoin.org/en/wallets-guide#public-key-formats
enum BitcoinPublicKeyFormat {
PublicKeyFormatUncompressed = 0;
PublicKeyFormatCompressed = 1;
}