Skip to content

Commit

Permalink
Add commet: Bitcoin signature type (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
joii2020 authored Jan 8, 2024
1 parent fcddadf commit 0019119
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/omni_lock_rust/tests/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ pub const SECP256K1_TAG_PUBKEY_UNCOMPRESSED: u8 = 0x04;
pub const SECP256K1_TAG_PUBKEY_HYBRID_EVEN: u8 = 0x06;
pub const SECP256K1_TAG_PUBKEY_HYBRID_ODD: u8 = 0x07;

// Refer to https://en.bitcoin.it/wiki/BIP_0137
// These values are used to denote the signature types of Bitcoin.
// Each type corresponds to a distinct public key hash and a unique signature
// data header.
pub const BITCOIN_V_TYPE_P2PKHUNCOMPRESSED: u8 = 27;
pub const BITCOIN_V_TYPE_P2PKHCOMPRESSED: u8 = 31;
pub const BITCOIN_V_TYPE_SEGWITP2SH: u8 = 35;
Expand Down

0 comments on commit 0019119

Please sign in to comment.