Skip to content

Commit

Permalink
remove unused import and await
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Jan 15, 2024
1 parent 689695e commit a0b99e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/ctap2/pin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a0b99e8

Please sign in to comment.