diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ddf9269..03e1d7f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,8 +21,8 @@ jobs: - run: dart format --output=none --set-exit-if-changed . - run: dart analyze - run: dart test - - name: Run example code - run: | - cd example - dart pub get - dart run lib/main.dart + # - name: Run example code + # run: | + # cd example + # dart pub get + # dart run lib/main.dart diff --git a/lib/src/ctap2/base.dart b/lib/src/ctap2/base.dart index 938fd88..e20a86e 100644 --- a/lib/src/ctap2/base.dart +++ b/lib/src/ctap2/base.dart @@ -1,5 +1,6 @@ import 'package:cbor/cbor.dart' as cb; import 'package:cbor/simple.dart'; + import 'package:fido2/src/cose.dart'; enum Ctap2Commands { diff --git a/test/fido2_base_test.dart b/test/fido2_base_test.dart index 8bf78ee..e5a44ac 100644 --- a/test/fido2_base_test.dart +++ b/test/fido2_base_test.dart @@ -1,5 +1,6 @@ import 'package:fido2/fido2.dart'; -import 'package:fido2/src/cose.dart'; +import 'package:fido2/src/cose.dart' as cose; + import 'package:test/test.dart'; void main() { @@ -30,7 +31,7 @@ void main() { var request = Ctap2.makeClientPinRequest(ClientPinRequest( subCommand: ClientPinSubCommand.setPin.value, pinUvAuthProtocol: 2, - keyAgreement: EcdhEsHkdf256.fromPublicKey(hexStringToList( + keyAgreement: cose.EcdhEsHkdf256.fromPublicKey(hexStringToList( '9950CCD8C524DBAAB6D5ED7E4256B72A647920445DCA51DA5F1B2A6AEB9AAB1880CC342ABC60C6FD1E8101CB3AA1D34B43CAFA6C3CA5403D70DEC1C72EC637FD')), pinUvAuthParam: hexStringToList( '9941B629D9BAB9C8C578D5E7A3AE6201B7A2F90F02B238AA2674F4A976C17FF3'),