Skip to content

Commit

Permalink
Fix final script
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Nov 11, 2024
1 parent f51f27a commit 5acd210
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/dlc/script.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import 'package:bitcoin_library/script.dart';

import 'ECDSA.dart';

void main(dynamic scriptMessage) {
final privateKey = Uint8List.fromList([/* your private key bytes */]);
final message = Uint8List.fromList([/* your message bytes */]);
final signature = signMessage(privateKey, message);
// ignore: unused_local_variable
final script = scriptMessage;

print('Signature: ${signature.toHexString()}');
}

class Uint8List {
static fromList(List list) {}
}

0 comments on commit 5acd210

Please sign in to comment.