File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import 'package:blockchain_utils/crypto/crypto/schnorrkel/merlin/transcript.dart
33import 'package:blockchain_utils/utils/utils.dart' ;
44import 'package:test/test.dart' ;
55
6- import '../quick_hex.dart' ;
6+ // import '../quick_hex.dart';
77import 'sign_test_vector.dart' ;
88
99void main () {
@@ -32,7 +32,7 @@ void main() {
3232 return BytesUtils .fromHexString (i["random_nonce" ]! );
3333 },
3434 );
35- expect (sign.toBytes (). toHex ( ), i["signature" ]);
35+ expect (BytesUtils . toHexString ( sign.toBytes ()), i["signature" ]);
3636 expect (pubkey.verify (sign, clone), true );
3737 }
3838 });
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import 'package:blockchain_utils/crypto/quick_crypto.dart';
44import 'package:blockchain_utils/utils/utils.dart' ;
55import 'package:test/test.dart' ;
66import '../quick_hex.dart' ;
7- import 'vrf_test_vector.dart' as vrf_test ;
7+ import 'vrf_test_vector.dart' ;
88
99void main () {
1010 test ("schnorrkel vrf test" , () {
@@ -33,7 +33,7 @@ void main() {
3333 test ("schnorrkel vrf sign" , () {
3434 /// test vrf sign
3535 /// https://github.com/noot/schnorrkel/blob/master/src/vrf.rs#L922
36- for (final i in vrf_test. testVrfSign) {
36+ for (final i in testVrfSign) {
3737 final keyPair =
3838 SchnorrkelKeypair .fromBytes (BytesUtils .fromHexString (i["keypair" ]));
3939 final script = MerlinTranscript ("SigningContext" );
@@ -49,7 +49,7 @@ void main() {
4949 test ("schnorrkel vrf verify" , () {
5050 /// test vrf verify
5151 /// https://github.com/noot/schnorrkel/blob/master/src/vrf.rs#L922
52- for (final i in vrf_test. testVector) {
52+ for (final i in testVector) {
5353 final keyPair =
5454 SchnorrkelKeypair .fromBytes (BytesUtils .fromHexString (i["keypair" ]));
5555 final public = keyPair.secretKey ().publicKey ();
You can’t perform that action at this time.
0 commit comments