Skip to content

Commit

Permalink
Fixed type in regtest address prefix (HRP)
Browse files Browse the repository at this point in the history
  • Loading branch information
Horobchenko Andrii committed Sep 4, 2024
1 parent bf855de commit 3d0253f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BitcoinNetworkEncoder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ library BitcoinNetworkEncoder {

string constant BTC_BECH32_MAINNET = 'bc';
string constant BTC_BECH32_TESTNET = 'tb';
string constant BTC_BECH32_REGTEST = 'brct';
string constant BTC_BECH32_REGTEST = 'bcrt';
string constant BTC_BECH32_SIMNET = 'sb';

bytes constant BTC_P2PKH_MAINNET = hex"31"; // prefix = 1
Expand Down Expand Up @@ -86,4 +86,4 @@ library BitcoinNetworkEncoder {
revert("Unknown network type");
}
}
}
}

0 comments on commit 3d0253f

Please sign in to comment.