-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
223880
committed
Nov 11, 2024
1 parent
f51f27a
commit 5acd210
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) {} | ||
} |