Skip to content

Commit

Permalink
Add witness transactions
Browse files Browse the repository at this point in the history
A few more tests are required
  • Loading branch information
MatthewLM committed Aug 16, 2023
1 parent 4168d36 commit 4e906a7
Show file tree
Hide file tree
Showing 9 changed files with 721 additions and 397 deletions.
2 changes: 1 addition & 1 deletion coinlib/example/coinlib_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void main() async {
"32d1f1cf811456c6da4ef9e1cb7f8bb80c4c5e9f2d2c3d743f2b68a9c6857823",
);

final tx = LegacyTransaction(
final tx = Transaction(
inputs: [
P2PKHInput(prevOut: OutPoint(prevHash, 1), publicKey: key1.publicKey),
],
Expand Down
3 changes: 2 additions & 1 deletion coinlib/lib/src/coinlib_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ export 'package:coinlib/src/scripts/programs/p2wsh.dart';

export 'package:coinlib/src/tx/input.dart';
export 'package:coinlib/src/tx/input_signature.dart';
export 'package:coinlib/src/tx/legacy_transaction.dart';
export 'package:coinlib/src/tx/transaction.dart';
export 'package:coinlib/src/tx/outpoint.dart';
export 'package:coinlib/src/tx/output.dart';
export 'package:coinlib/src/tx/p2pkh_input.dart';
export 'package:coinlib/src/tx/p2sh_multisig_input.dart';
export 'package:coinlib/src/tx/p2wpkh_input.dart';
export 'package:coinlib/src/tx/pkh_input.dart';
export 'package:coinlib/src/tx/raw_input.dart';
export 'package:coinlib/src/tx/sighash_type.dart';
export 'package:coinlib/src/tx/witness_input.dart';
Expand Down
337 changes: 0 additions & 337 deletions coinlib/lib/src/tx/legacy_transaction.dart

This file was deleted.

Loading

0 comments on commit 4e906a7

Please sign in to comment.