Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Adding web5-swift #2

Merged
merged 4 commits into from
Feb 1, 2024
Merged

Adding web5-swift #2

merged 4 commits into from
Feb 1, 2024

Conversation

amika-sq
Copy link
Collaborator

Corresponding PR in web5-swift here: decentralized-identity/web5-swift#5

reports/sdks.go Outdated Show resolved Hide resolved
@amika-sq
Copy link
Collaborator Author

I believe that everything's setup correctly now! Opening for review.

@amika-sq amika-sq marked this pull request as ready for review January 31, 2024 21:57
@amika-sq
Copy link
Collaborator Author

If it helps for the review, here's an example tests.xml file that I generated locally for the tests:

<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
	<testsuite tests="2" failures="0" disabled="0" errors="0" skipped="0" time="0.002257108688354492" name="BearerDIDTests">
		<testcase classname="-[BearerDIDTests test_initializeWithKeys]" name="-[BearerDIDTests test_initializeWithKeys]" time="0.0015130043029785156"></testcase>
		<testcase classname="-[BearerDIDTests test_toKeys]" name="-[BearerDIDTests test_toKeys]" time="0.0007441043853759766"></testcase>
	</testsuite>
	<testsuite tests="5" failures="0" disabled="0" errors="0" skipped="0" time="0.007489919662475586" name="CryptoTests">
		<testcase classname="-[CryptoTests test_sign]" name="-[CryptoTests test_sign]" time="0.0011899471282958984"></testcase>
		<testcase classname="-[CryptoTests test_verify_invalidWhenSignatureIsFromAnotherAlgorithm]" name="-[CryptoTests test_verify_invalidWhenSignatureIsFromAnotherAlgorithm]" time="0.0024069547653198242"></testcase>
		<testcase classname="-[CryptoTests test_verify]" name="-[CryptoTests test_verify]" time="0.0021070241928100586"></testcase>
		<testcase classname="-[CryptoTests test_computePublicKey]" name="-[CryptoTests test_computePublicKey]" time="0.001316070556640625"></testcase>
		<testcase classname="-[CryptoTests test_generatePrivateKey]" name="-[CryptoTests test_generatePrivateKey]" time="0.0004699230194091797"></testcase>
	</testsuite>
	<testsuite tests="3" failures="0" disabled="0" errors="0" skipped="0" time="0.0002650022506713867" name="DIDDocumentTests">
		<testcase classname="-[DIDDocumentTests test_referencedVerificationMethod_fragmentString]" name="-[DIDDocumentTests test_referencedVerificationMethod_fragmentString]" time="7.200241088867188e-05"></testcase>
		<testcase classname="-[DIDDocumentTests test_embeddedVerifiationMethod]" name="-[DIDDocumentTests test_embeddedVerifiationMethod]" time="0.00010001659393310547"></testcase>
		<testcase classname="-[DIDDocumentTests test_referencedVerificationMethod_absoluteURIString]" name="-[DIDDocumentTests test_referencedVerificationMethod_absoluteURIString]" time="9.298324584960938e-05"></testcase>
	</testsuite>
	<testsuite tests="7" failures="0" disabled="0" errors="0" skipped="0" time="0.0030329227447509766" name="DIDJWKTests">
		<testcase classname="-[DIDJWKTests test_resolveWithError_onInvalidDIDURI]" name="-[DIDJWKTests test_resolveWithError_onInvalidDIDURI]" time="0.00015401840209960938"></testcase>
		<testcase classname="-[DIDJWKTests test_create]" name="-[DIDJWKTests test_create]" time="0.00034797191619873047"></testcase>
		<testcase classname="-[DIDJWKTests test_resolveWithError_ifDIDURINotJwk]" name="-[DIDJWKTests test_resolveWithError_ifDIDURINotJwk]" time="0.00024890899658203125"></testcase>
		<testcase classname="-[DIDJWKTests test_resolveNewlyCreatedDIDJWK]" name="-[DIDJWKTests test_resolveNewlyCreatedDIDJWK]" time="0.0014159679412841797"></testcase>
		<testcase classname="-[DIDJWKTests test_resolveWithKnownDIDURI]" name="-[DIDJWKTests test_resolveWithKnownDIDURI]" time="0.0003790855407714844"></testcase>
		<testcase classname="-[DIDJWKTests test_resolveWithError_ifDIDURIIsNotValidBase64Url]" name="-[DIDJWKTests test_resolveWithError_ifDIDURIIsNotValidBase64Url]" time="0.00020599365234375"></testcase>
		<testcase classname="-[DIDJWKTests test_resolveWithError_ifMethodNotJwk]" name="-[DIDJWKTests test_resolveWithError_ifMethodNotJwk]" time="0.0002809762954711914"></testcase>
	</testsuite>
	<testsuite tests="7" failures="0" disabled="0" errors="0" skipped="0" time="0.0058269500732421875" name="ECDSA_Es256kTests">
		<testcase classname="-[ECDSA_Es256kTests test_sign_errorsWhenPrivateKeyFromAnotherAlgorithm]" name="-[ECDSA_Es256kTests test_sign_errorsWhenPrivateKeyFromAnotherAlgorithm]" time="0.0001729726791381836"></testcase>
		<testcase classname="-[ECDSA_Es256kTests test_verify]" name="-[ECDSA_Es256kTests test_verify]" time="0.0012919902801513672"></testcase>
		<testcase classname="-[ECDSA_Es256kTests test_generatePrivateKey]" name="-[ECDSA_Es256kTests test_generatePrivateKey]" time="0.0003470182418823242"></testcase>
		<testcase classname="-[ECDSA_Es256kTests test_computePublicKey]" name="-[ECDSA_Es256kTests test_computePublicKey]" time="0.000659942626953125"></testcase>
		<testcase classname="-[ECDSA_Es256kTests test_verify_invalidWhenPayloadMutated]" name="-[ECDSA_Es256kTests test_verify_invalidWhenPayloadMutated]" time="0.0013020038604736328"></testcase>
		<testcase classname="-[ECDSA_Es256kTests test_sign]" name="-[ECDSA_Es256kTests test_sign]" time="0.000722050666809082"></testcase>
		<testcase classname="-[ECDSA_Es256kTests test_verify_invalidWhenSignatureMutated]" name="-[ECDSA_Es256kTests test_verify_invalidWhenSignatureMutated]" time="0.0013309717178344727"></testcase>
	</testsuite>
	<testsuite tests="7" failures="0" disabled="0" errors="0" skipped="0" time="0.0022851228713989258" name="EdDSA_Ed25519Tests">
		<testcase classname="-[EdDSA_Ed25519Tests test_generateKey]" name="-[EdDSA_Ed25519Tests test_generateKey]" time="0.00018405914306640625"></testcase>
		<testcase classname="-[EdDSA_Ed25519Tests test_verify]" name="-[EdDSA_Ed25519Tests test_verify]" time="0.0003889799118041992"></testcase>
		<testcase classname="-[EdDSA_Ed25519Tests test_verify_invalidWhenSignatureMutated]" name="-[EdDSA_Ed25519Tests test_verify_invalidWhenSignatureMutated]" time="0.0003930330276489258"></testcase>
		<testcase classname="-[EdDSA_Ed25519Tests test_verify_invalidWhenPayloadMutated]" name="-[EdDSA_Ed25519Tests test_verify_invalidWhenPayloadMutated]" time="0.0003980398178100586"></testcase>
		<testcase classname="-[EdDSA_Ed25519Tests test_computePublicKey]" name="-[EdDSA_Ed25519Tests test_computePublicKey]" time="0.0002599954605102539"></testcase>
		<testcase classname="-[EdDSA_Ed25519Tests test_sign_errorsWhenPrivateKeyFromAnotherAlgorithm]" name="-[EdDSA_Ed25519Tests test_sign_errorsWhenPrivateKeyFromAnotherAlgorithm]" time="0.00037801265716552734"></testcase>
		<testcase classname="-[EdDSA_Ed25519Tests test_sign]" name="-[EdDSA_Ed25519Tests test_sign]" time="0.0002830028533935547"></testcase>
	</testsuite>
	<testsuite tests="6" failures="0" disabled="0" errors="0" skipped="0" time="0.0038118362426757812" name="InMemoryKeyManagerTests">
		<testcase classname="-[InMemoryKeyManagerTests test_sign_keyAliasNotInStore]" name="-[InMemoryKeyManagerTests test_sign_keyAliasNotInStore]" time="0.00010502338409423828"></testcase>
		<testcase classname="-[InMemoryKeyManagerTests test_sign]" name="-[InMemoryKeyManagerTests test_sign]" time="0.0011349916458129883"></testcase>
		<testcase classname="-[InMemoryKeyManagerTests test_getPublicKey_privateKeyInStore]" name="-[InMemoryKeyManagerTests test_getPublicKey_privateKeyInStore]" time="0.001055002212524414"></testcase>
		<testcase classname="-[InMemoryKeyManagerTests test_generatePrivateKey]" name="-[InMemoryKeyManagerTests test_generatePrivateKey]" time="0.00046694278717041016"></testcase>
		<testcase classname="-[InMemoryKeyManagerTests test_getPublicKey_privateKeyNotInStore]" name="-[InMemoryKeyManagerTests test_getPublicKey_privateKeyNotInStore]" time="8.296966552734375e-05"></testcase>
		<testcase classname="-[InMemoryKeyManagerTests test_getDeterministicAlias]" name="-[InMemoryKeyManagerTests test_getDeterministicAlias]" time="0.0009669065475463867"></testcase>
	</testsuite>
	<testsuite tests="2" failures="0" disabled="0" errors="0" skipped="0" time="0.00880897045135498" name="Web5TestVectorsCryptoEd25519">
		<testcase classname="-[Web5TestVectorsCryptoEd25519 test_verify]" name="-[Web5TestVectorsCryptoEd25519 test_verify]" time="0.0025249719619750977"></testcase>
		<testcase classname="-[Web5TestVectorsCryptoEd25519 test_sign]" name="-[Web5TestVectorsCryptoEd25519 test_sign]" time="0.006283998489379883"></testcase>
	</testsuite>
	<testsuite tests="2" failures="0" disabled="0" errors="0" skipped="0" time="0.0037790536880493164" name="Web5TestVectorsCryptoEs256k">
		<testcase classname="-[Web5TestVectorsCryptoEs256k test_verify]" name="-[Web5TestVectorsCryptoEs256k test_verify]" time="0.002691030502319336"></testcase>
		<testcase classname="-[Web5TestVectorsCryptoEs256k test_sign]" name="-[Web5TestVectorsCryptoEs256k test_sign]" time="0.0010880231857299805"></testcase>
	</testsuite>
	<testsuite tests="1" failures="0" disabled="0" errors="0" skipped="0" time="0.0011599063873291016" name="Web5TestVectorsDid">
		<testcase classname="-[Web5TestVectorsDid test_parse]" name="-[Web5TestVectorsDid test_parse]" time="0.0011599063873291016"></testcase>
	</testsuite>
	<testsuite tests="1" failures="0" disabled="0" errors="0" skipped="0" time="0.0011069774627685547" name="Web5TestVectorsDidJwk">
		<testcase classname="-[Web5TestVectorsDidJwk test_resolve]" name="-[Web5TestVectorsDidJwk test_resolve]" time="0.0011069774627685547"></testcase>
	</testsuite>
	<testsuite tests="1" failures="0" disabled="0" errors="0" skipped="0" time="0.011579036712646484" name="Web5TestVectorsDidWeb">
		<testcase classname="-[Web5TestVectorsDidWeb test_resolve]" name="-[Web5TestVectorsDidWeb test_resolve]" time="0.011579036712646484"></testcase>
	</testsuite>
	<testsuite tests="1" failures="0" disabled="0" errors="0" skipped="0" time="0.0001900196075439453" name="ZBase32Tests">
		<testcase classname="-[ZBase32Tests test_encodeAndDecode]" name="-[ZBase32Tests test_encodeAndDecode]" time="0.0001900196075439453"></testcase>
	</testsuite>
</testsuites>

Copy link
Contributor

github-actions bot commented Feb 1, 2024

PR Preview Action v1.4.6
Preview removed because the pull request was closed.
2024-02-01 18:31 UTC

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome great job!

@amika-sq amika-sq merged commit ee5a1e1 into main Feb 1, 2024
2 checks passed
@amika-sq amika-sq deleted the web5-swift branch February 1, 2024 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants