Skip to content

Commit

Permalink
remove seed and hex seed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaElattar committed Mar 17, 2024
1 parent 6ed2bee commit a151814
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions packages/signer/test/signer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,50 +57,6 @@ void main() {
expect(isVerified, isFalse);
});

test('Test sign and verify using seed', () async {
final seed = Uint8List.fromList([
108,
29,
148,
202,
167,
191,
10,
13,
126,
240,
152,
60,
24,
35,
233,
172,
106,
190,
213,
114,
33,
213,
125,
9,
34,
101,
67,
82,
216,
92,
177,
228
]);
await signer.fromSeed(seed, KPType.ed25519);

final data = 'dummyData';
final signature = signer.sign(data);

final isVerified = signer.verify(signature, data);
expect(isVerified, isTrue);
});

test('Test with invalid seed', () async {
final invalidSeed = Uint8List.fromList([
108,
Expand All @@ -112,17 +68,6 @@ void main() {
throwsException);
});

test('Test sign and verify with hex seed', () async {
signer.fromHexSeed(
'0x6c1d94caa7bf0a0d7ef0983c1823e9ac6abed57221d57d0922654352d85cb1e4',
KPType.sr25519);
final data = 'dummyData';
final signature = await signer.sign(data);

final isVerified = await signer.verify(signature, data);
expect(isVerified, isTrue);
});

test('Test sign with invalid hex seed', () async {
expect(() async => signer.fromHexSeed('0x6c1', KPType.ed25519),
throwsException);
Expand Down

0 comments on commit a151814

Please sign in to comment.