Skip to content

Commit 77a072b

Browse files
authored
Merge pull request #1193 from atsign-foundation/publish_at_client
chore: publish at_client 3.0.71
2 parents e43bc1a + dd8ca9c commit 77a072b

File tree

7 files changed

+12
-16
lines changed

7 files changed

+12
-16
lines changed

packages/at_client/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 3.0.71
2+
- feat: Replace decryption methods from EncryptionUtil with AtChops methods
13
## 3.0.70
24
- build[deps]: Upgraded dependencies for the following packages:
35
- asn1lib: `>=1.4.1 <=1.5.0`, crypton: `>=2.1.0 <=2.2.1`, encrypt: `>=5.0.1 <=5.0.3`, crypto: `^3.0.3`
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import 'dart:convert';
2-
import 'dart:typed_data';
3-
42
import 'package:crypton/crypton.dart';
53

64
/// Class responsible for signing the public key value using the
@@ -10,8 +8,7 @@ class SignInPublicData {
108
static Future<String> signInData(
119
dynamic value, String encryptedPrivateKey) async {
1210
var privateKey = RSAPrivateKey.fromString(encryptedPrivateKey);
13-
var dataSignature =
14-
privateKey.createSHA256Signature(utf8.encode(value) as Uint8List);
11+
var dataSignature = privateKey.createSHA256Signature(utf8.encode(value));
1512
return base64Encode(dataSignature);
1613
}
1714
}

packages/at_client/lib/src/preference/at_client_config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AtClientConfig {
1010

1111
/// Represents the at_client version.
1212
/// Must always be the same as the actual version in pubspec.yaml
13-
final String atClientVersion = '3.0.70';
13+
final String atClientVersion = '3.0.71';
1414

1515
/// Represents the client commit log compaction time interval
1616
///

packages/at_client/lib/src/service/change_impl.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
//
3737
// @override
3838
// Future<bool> isInSync() async {
39-
//// return await _atClient.getSyncService()!.isInSync();
39+
// return await _atClient.getSyncService()!.isInSync();
4040
// return true;
4141
// }
4242
//
@@ -49,11 +49,11 @@
4949
// Future<void> sync(
5050
// {Function? onDone, Function? onError, String? regex}) async {
5151
// if (onDone != null && onError != null) {
52-
//// unawaited(_atClient
53-
//// .getSyncService()!
54-
//// .sync(onDone: onDone, onError: onError, regex: regex));
52+
// unawaited(_atClient
53+
// .getSyncService()!
54+
// .sync(onDone: onDone, onError: onError, regex: regex));
5555
// } else {
56-
//// await _atClient.getSyncService()!.sync(regex: regex);
56+
// await _atClient.getSyncService()!.sync(regex: regex);
5757
// }
5858
// }
5959
//
@@ -64,7 +64,7 @@
6464
// var changeImpl = ChangeImpl(atClient)
6565
// ..atKey = atKey
6666
// ..operationEnum = OperationEnum.update;
67-
// // If value is not null, set value.
67+
// //If value is not null, set value.
6868
// if (value != null) {
6969
// changeImpl.atValue = AtValue();
7070
// changeImpl.atValue!.value = value;

packages/at_client/lib/src/service/sync/sync_status.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:at_client/at_client.dart';
2-
import 'package:at_client/src/service/sync_service_impl.dart';
32

43
///Enum to represent the sync status
54
enum SyncStatus { started, notStarted, success, failure }

packages/at_client/lib/src/util/at_client_util.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'dart:convert';
2-
import 'dart:typed_data';
32

43
import 'package:at_client/at_client.dart';
54
import 'package:at_client/src/converters/encoder/at_encoder.dart';
@@ -34,8 +33,7 @@ class AtClientUtil {
3433
static String signChallenge(String challenge, String privateKey) {
3534
var key = RSAPrivateKey.fromString(privateKey);
3635
challenge = challenge.trim();
37-
var signature =
38-
key.createSHA256Signature(utf8.encode(challenge) as Uint8List);
36+
var signature = key.createSHA256Signature(utf8.encode(challenge));
3937
return base64Encode(signature);
4038
}
4139

packages/at_client/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: The at_client library is the non-platform specific Client SDK which
44
##
55
##
66
## NB: When incrementing the version, please also increment the version in AtClientConfig file
7-
version: 3.0.70
7+
version: 3.0.71
88
## NB: When incrementing the version, please also increment the version in AtClientConfig file
99
##
1010

0 commit comments

Comments
 (0)