From a0b99e852c621dd967db3d4fde901157b1c50481 Mon Sep 17 00:00:00 2001 From: Fan DANG Date: Mon, 15 Jan 2024 20:13:44 +0800 Subject: [PATCH] remove unused import and await --- lib/src/ctap2/pin.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/ctap2/pin.dart b/lib/src/ctap2/pin.dart index b03f307..a4e765f 100644 --- a/lib/src/ctap2/pin.dart +++ b/lib/src/ctap2/pin.dart @@ -2,7 +2,6 @@ import 'package:convert/convert.dart'; import 'package:cryptography/cryptography.dart'; import 'package:elliptic/ecdh.dart'; import 'package:elliptic/elliptic.dart'; -import 'package:fido2/fido2.dart'; import 'package:fido2/src/cose.dart'; import 'package:quiver/collection.dart'; @@ -34,7 +33,7 @@ class PinProtocolV1 extends PinProtocol { final pubBytes = hex.decode(pub.toHex().substring(2)); final keyAgreement = EcdhEsHkdf256.fromPublicKey(pubBytes.sublist(0, 32), pubBytes.sublist(32, 64)); final sharedSecret = computeSecret(priv, ec.hexToPublicKey('04${hex.encode(peerCoseKey[-2] + peerCoseKey[-3])}')); - return EncapsulateResult(keyAgreement, await sharedSecret); + return EncapsulateResult(keyAgreement, sharedSecret); } @override