Skip to content

Commit

Permalink
add pt2r support and solution.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nesopie committed Apr 12, 2024
1 parent a199a86 commit f394564
Show file tree
Hide file tree
Showing 8 changed files with 225 additions and 281 deletions.
10 changes: 10 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ export const WITNESS_RESERVED_VALUE =
"0000000000000000000000000000000000000000000000000000000000000000";

export const MAX_VALUE = 0xffffffff;

export const TAP_SIG_HASH = "TapSighash";
export const TAP_LEAF = "TapLeaf";
export const TAP_BRANCH = "TapBranch";
export const TAP_TWEAK = "TapTweak";

export const SECP256K1_ORDER = Buffer.from(
"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",
"hex"
);
4 changes: 0 additions & 4 deletions src/features/block/coinbaseTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { MAX_VALUE, WITNESS_RESERVED_VALUE } from "../../constants";
import { compactSize } from "../encoding/compactSize";
import { Input, Output, Transaction } from "../transaction";

// export const ZEROS =
// "0000000000000000000000000000000000000000000000000000000000000000";
// const MAX_VALUE = 0xffffffff;
// const height = 538403;
const blockReward = 1250000000;

export const generateCoinbaseTransaction = (
Expand Down
Loading

0 comments on commit f394564

Please sign in to comment.