From 7105bbd8c323f8acb169df4cfd43161e3523793c Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Thu, 18 Jan 2024 07:36:21 +0200 Subject: [PATCH] wip: update tests --- Tests/TorusUtilsTests/AquaTest.swift | 35 +++++++++--------- Tests/TorusUtilsTests/CyanTest.swift | 11 +++--- Tests/TorusUtilsTests/MainnetTest.swift | 23 ++++++------ Tests/TorusUtilsTests/SapphireTest.swift | 46 ++++++++++++------------ 4 files changed, 59 insertions(+), 56 deletions(-) diff --git a/Tests/TorusUtilsTests/AquaTest.swift b/Tests/TorusUtilsTests/AquaTest.swift index 3e8b8154..a7863aaf 100644 --- a/Tests/TorusUtilsTests/AquaTest.swift +++ b/Tests/TorusUtilsTests/AquaTest.swift @@ -53,28 +53,29 @@ class AquaTest: XCTestCase { XCTAssertEqual(val.oAuthKeyData!.evmAddress, "0xDfA967285AC699A70DA340F60d00DB19A272639d") XCTAssertEqual(val.oAuthKeyData!.X, "4fc8db5d3fe164a3ab70fd6348721f2be848df2cc02fd2db316a154855a7aa7d") XCTAssertEqual(val.oAuthKeyData!.Y, "f76933cbf5fe2916681075bb6cb4cde7d5f6b6ce290071b1b7106747d906457c") - XCTAssertEqual(val.finalKeyData!.evmAddress, "0xDfA967285AC699A70DA340F60d00DB19A272639d") - XCTAssertEqual(val.finalKeyData!.X, "4fc8db5d3fe164a3ab70fd6348721f2be848df2cc02fd2db316a154855a7aa7d") - XCTAssertEqual(val.finalKeyData!.Y, "f76933cbf5fe2916681075bb6cb4cde7d5f6b6ce290071b1b7106747d906457c") - XCTAssertNil(val.metadata?.pubNonce) + XCTAssertEqual(val.finalKeyData!.evmAddress, "0x79F06350eF34Aeed4BE68e26954D405D573f1438") + XCTAssertEqual(val.finalKeyData!.X, "99df45abc8e6ee03d2f94df33be79e939eadfbed20c6b88492782fdc3ef1dfd3") + XCTAssertEqual(val.finalKeyData!.Y, "12bf3e54599a177fdb88f8b22419df7ddf1622e1d2344301edbe090890a72b16") + XCTAssertEqual(val.metadata!.pubNonce!.x, "dc5a031fd2e0b55dbaece314ea125bac9da5f0a916bf156ff36b5ad71380ea32") + XCTAssertEqual(val.metadata!.pubNonce!.y, "affd749b98c209d2f9cf4dacb145d7897f82f1e2924a47b07874302ecc0b8ef1") XCTAssertEqual(val.metadata?.nonce, 0) XCTAssertEqual(val.metadata?.upgraded, false) - XCTAssertEqual(val.metadata?.typeOfUser, .v1) + XCTAssertEqual(val.metadata?.typeOfUser, .v2) XCTAssertEqual(val.nodesData?.nodeIndexes.count, 0) verifier = "tkey-google-aqua" verifierID = "somev2user@gmail.com" val = try await tu.getUserTypeAndAddress(endpoints: nodeDetails.getTorusNodeEndpoints(), torusNodePubs: nodeDetails.getTorusNodePub(), verifier: verifier, verifierId: verifierID) - XCTAssertEqual(val.oAuthKeyData!.evmAddress, "0x5735dDC8d5125B23d77C3531aab3895A533584a3") - XCTAssertEqual(val.oAuthKeyData!.X, "e1b419bc52b82e14b148c307f10479cfa464d20c947555fb4758c586eab12873") - XCTAssertEqual(val.oAuthKeyData!.Y, "75f47d7d5a271c0fcf51a790c1683a1cb3394b1d37d20e29c346ac249e3bfca2") - XCTAssertEqual(val.finalKeyData!.evmAddress, "0x5735dDC8d5125B23d77C3531aab3895A533584a3") - XCTAssertEqual(val.finalKeyData!.X, "e1b419bc52b82e14b148c307f10479cfa464d20c947555fb4758c586eab12873") - XCTAssertEqual(val.finalKeyData!.Y, "75f47d7d5a271c0fcf51a790c1683a1cb3394b1d37d20e29c346ac249e3bfca2") - XCTAssertEqual(val.finalKeyData!.evmAddress, "0x5735dDC8d5125B23d77C3531aab3895A533584a3") + XCTAssertEqual(val.oAuthKeyData!.evmAddress, "0x4ea5260fF85678A2a326D08DF9C44d1f559a5828") + XCTAssertEqual(val.oAuthKeyData!.X, "0e6febe33a9d4eeb680cc6b63ff6237ad1971f27adcd7f104a3b1de18eda9337") + XCTAssertEqual(val.oAuthKeyData!.Y, "a5a915561f3543688e71281a850b9ee10b9690f305d9e79028dfc8359192b82d") + XCTAssertEqual(val.finalKeyData!.evmAddress, "0xBc32f315515AdE7010cabC5Fd68c966657A570BD") + XCTAssertEqual(val.finalKeyData!.X, "4897f120584ee18a72b9a6bb92c3ef6e45fc5fdff70beae7dc9325bd01332022") + XCTAssertEqual(val.finalKeyData!.Y, "2066dbef2fcdded4573e3c04d1c04edd5d44662168e636ed9d0b0cbe2e67c968") + XCTAssertEqual(val.finalKeyData!.evmAddress, "0xBc32f315515AdE7010cabC5Fd68c966657A570BD") XCTAssertEqual(val.metadata?.nonce, 0) XCTAssertEqual(val.metadata?.upgraded, false) - XCTAssertEqual(val.metadata?.typeOfUser, .v1) + XCTAssertEqual(val.metadata?.typeOfUser, .v2) XCTAssertEqual(val.nodesData?.nodeIndexes.count, 0) verifierID = "caspertorus@gmail.com" @@ -82,12 +83,12 @@ class AquaTest: XCTestCase { XCTAssertEqual(val.oAuthKeyData!.evmAddress, "0x4ce0D09C3989eb3cC9372cC27fa022D721D737dD") XCTAssertEqual(val.oAuthKeyData!.X, "e76d2f7fa2c0df324b4ab74629c3af47aa4609c35f1d2b6b90b77a47ab9a1281") XCTAssertEqual(val.oAuthKeyData!.Y, "b33b35148d72d357070f66372e07fec436001bdb15c098276b120b9ed64c1e5f") - XCTAssertEqual(val.finalKeyData!.evmAddress, "0x4ce0D09C3989eb3cC9372cC27fa022D721D737dD") - XCTAssertEqual(val.finalKeyData!.X, "e76d2f7fa2c0df324b4ab74629c3af47aa4609c35f1d2b6b90b77a47ab9a1281") - XCTAssertEqual(val.finalKeyData!.Y, "b33b35148d72d357070f66372e07fec436001bdb15c098276b120b9ed64c1e5f") + XCTAssertEqual(val.finalKeyData!.evmAddress, "0x5469C5aCB0F30929226AfF4622918DA8E1424a8D") + XCTAssertEqual(val.finalKeyData!.X, "c20fac685bb67169e92f1d5d8894d4eea18753c0ef3b7b1b2224233b2dfa3539") + XCTAssertEqual(val.finalKeyData!.Y, "c4f080b5c8d5c55c8eaba4bec70f668f36db4126f358b491d631fefea7c19d21") XCTAssertEqual(val.metadata?.nonce, 0) XCTAssertEqual(val.metadata?.upgraded, false) - XCTAssertEqual(val.metadata?.typeOfUser, .v1) + XCTAssertEqual(val.metadata?.typeOfUser, .v2) XCTAssertEqual(val.nodesData?.nodeIndexes.count, 0) } diff --git a/Tests/TorusUtilsTests/CyanTest.swift b/Tests/TorusUtilsTests/CyanTest.swift index 255c8bcb..d4be8db6 100644 --- a/Tests/TorusUtilsTests/CyanTest.swift +++ b/Tests/TorusUtilsTests/CyanTest.swift @@ -53,13 +53,14 @@ class CyanTest: XCTestCase { XCTAssertEqual(data.oAuthKeyData?.evmAddress, "0xA3767911A84bE6907f26C572bc89426dDdDB2825") XCTAssertEqual(data.oAuthKeyData?.X, "2853f323437da98ce021d06854f4b292db433c0ad03b204ef223ac2583609a6a") XCTAssertEqual(data.oAuthKeyData?.Y, "f026b4788e23523e0c8fcbf0bdcf1c1a62c9cde8f56170309607a7a52a19f7c1") - XCTAssertEqual(data.finalKeyData?.evmAddress, "0xA3767911A84bE6907f26C572bc89426dDdDB2825") - XCTAssertEqual(data.finalKeyData?.X, "2853f323437da98ce021d06854f4b292db433c0ad03b204ef223ac2583609a6a") - XCTAssertEqual(data.finalKeyData?.Y, "f026b4788e23523e0c8fcbf0bdcf1c1a62c9cde8f56170309607a7a52a19f7c1") - XCTAssertNil(data.metadata?.pubNonce) + XCTAssertEqual(data.finalKeyData?.evmAddress, "0x3507F0d192a44E436B8a6C32a37d57D022861b1a") + XCTAssertEqual(data.finalKeyData?.X, "8aaadab9530cb157d0b0dfb7b27d1a3aaca45274563c22c92c77ee2191779051") + XCTAssertEqual(data.finalKeyData?.Y, "d57b89d9f62bb6609d8542c3057943805c8c72f6f27d39781b820f27d7210f12") + XCTAssertEqual(data.metadata?.pubNonce?.x, "5f2505155e2c1119ee8a76d0f3b22fccee45871d4aab3cb6209bdbc302b5abc2") + XCTAssertEqual(data.metadata?.pubNonce?.y, "a20f30868759a6095697d5631483faa650f489b33c0e2958ad8dc29e707c0a99") XCTAssertEqual(data.metadata?.nonce, BigUInt.zero) XCTAssertEqual(data.metadata?.upgraded, false) - XCTAssertEqual(data.metadata?.typeOfUser, .v1) + XCTAssertEqual(data.metadata?.typeOfUser, .v2) XCTAssertEqual(data.nodesData?.nodeIndexes, []) verifier = "tkey-google-cyan" diff --git a/Tests/TorusUtilsTests/MainnetTest.swift b/Tests/TorusUtilsTests/MainnetTest.swift index 7ed9fbfb..ed4d9f77 100644 --- a/Tests/TorusUtilsTests/MainnetTest.swift +++ b/Tests/TorusUtilsTests/MainnetTest.swift @@ -59,16 +59,17 @@ class MainnetTests: XCTestCase { let nodeDetails = try await get_fnd_and_tu_data(verifer: TORUS_TEST_VERIFIER, veriferID: TORUS_TEST_EMAIL) var val = try await tu.getUserTypeAndAddress(endpoints: nodeDetails.getTorusNodeEndpoints(), torusNodePubs: nodeDetails.getTorusNodePub(), verifier: verifier1, verifierId: verifierID1) - XCTAssertEqual(val.finalKeyData!.evmAddress, "0x0C44AFBb5395a9e8d28DF18e1326aa0F16b9572A") - XCTAssertEqual(val.finalKeyData!.X, "3b5655d78978b6fd132562b5cb66b11bcd868bd2a9e16babe4a1ca50178e57d4") - XCTAssertEqual(val.finalKeyData!.Y, "15338510798d6b55db28c121d86babcce19eb9f1882f05fae8ee9b52ed09e8f1") + XCTAssertEqual(val.finalKeyData!.evmAddress, "0xb2e1c3119f8D8E73de7eaF7A535FB39A3Ae98C5E") + XCTAssertEqual(val.finalKeyData!.X, "072beda348a832aed06044a258cb6a8d428ec7c245c5da92db5da4f3ab433e55") + XCTAssertEqual(val.finalKeyData!.Y, "54ace0d3df2504fa29f17d424a36a0f92703899fad0afee93d010f6d84b310e5") XCTAssertEqual(val.oAuthKeyData!.evmAddress, "0x0C44AFBb5395a9e8d28DF18e1326aa0F16b9572A") XCTAssertEqual(val.oAuthKeyData!.X, "3b5655d78978b6fd132562b5cb66b11bcd868bd2a9e16babe4a1ca50178e57d4") XCTAssertEqual(val.oAuthKeyData!.Y, "15338510798d6b55db28c121d86babcce19eb9f1882f05fae8ee9b52ed09e8f1") - XCTAssertNil(val.metadata?.pubNonce) + XCTAssertEqual(val.metadata!.pubNonce!.x, "eb22d93244acf7fcbeb6566da722bc9c8e5433cd28da25ca0650d9cb32806c39") + XCTAssertEqual(val.metadata!.pubNonce!.y, "765541e214f067cfc44dcf41e582ae09b71c2e607a301cc8a45e1f316a6ba91c") XCTAssertEqual(val.metadata?.nonce, 0) XCTAssertEqual(val.metadata?.upgraded, false) - XCTAssertEqual(val.metadata?.typeOfUser, UserType(rawValue: "v1")) + XCTAssertEqual(val.metadata?.typeOfUser, .v2) XCTAssertEqual(val.nodesData?.nodeIndexes.count, 0) let verifier2: String = "tkey-google" @@ -92,17 +93,17 @@ class MainnetTests: XCTestCase { let verifierID3: String = "caspertorus@gmail.com" val = try await tu.getUserTypeAndAddress(endpoints: nodeDetails.getTorusNodeEndpoints(), torusNodePubs: nodeDetails.getTorusNodePub(), verifier: verifier3, verifierId: verifierID3) - XCTAssertEqual(val.finalKeyData!.evmAddress, "0x61E52B6e488EC3dD6FDc0F5ed04a62Bb9c6BeF53") - XCTAssertEqual(val.finalKeyData!.X, "c01282dd68d2341031a1cff06f70d821cad45140f425f1c25055a8aa64959df8") - XCTAssertEqual(val.finalKeyData!.Y, "cb3937773bb819d60b780b6d4c2edcf27c0f7090ba1fc2ff42504a8138a8e2d7") + XCTAssertEqual(val.finalKeyData!.evmAddress, "0x40A4A04fDa1f29a3667152C8830112FBd6A77BDD") + XCTAssertEqual(val.finalKeyData!.X, "6779af3031d9e9eec6b4133b0ae13e367c83a614f92d2008e10c7f3b8e6723bc") + XCTAssertEqual(val.finalKeyData!.Y, "80edc4502abdfb220dd6e2fcfa2dbb058125dc95873e4bfa6877f9c26da7fdff") XCTAssertEqual(val.oAuthKeyData!.evmAddress, "0x61E52B6e488EC3dD6FDc0F5ed04a62Bb9c6BeF53") XCTAssertEqual(val.oAuthKeyData!.X, "c01282dd68d2341031a1cff06f70d821cad45140f425f1c25055a8aa64959df8") XCTAssertEqual(val.oAuthKeyData!.Y, "cb3937773bb819d60b780b6d4c2edcf27c0f7090ba1fc2ff42504a8138a8e2d7") - XCTAssertEqual(val.metadata?.pubNonce?.x, nil) - XCTAssertEqual(val.metadata?.pubNonce?.y, nil) + XCTAssertEqual(val.metadata?.pubNonce?.x, "16214bf232167258fb5f98fa9d84968ffec3236aaf0994fc366940c4bc07a5b1") + XCTAssertEqual(val.metadata?.pubNonce?.y, "475e8c09d2cc8f6c12a767f51c052b1bf8e8d3a2a2b6818d4b199dc283e80ac4") XCTAssertEqual(val.metadata?.nonce, 0) XCTAssertEqual(val.metadata?.upgraded, false) - XCTAssertEqual(val.metadata?.typeOfUser, UserType(rawValue: "v1")) + XCTAssertEqual(val.metadata?.typeOfUser, .v2) XCTAssertEqual(val.nodesData?.nodeIndexes.count, 0) } diff --git a/Tests/TorusUtilsTests/SapphireTest.swift b/Tests/TorusUtilsTests/SapphireTest.swift index e46f1516..3abab059 100644 --- a/Tests/TorusUtilsTests/SapphireTest.swift +++ b/Tests/TorusUtilsTests/SapphireTest.swift @@ -109,19 +109,19 @@ final class SapphireTest: XCTestCase { idToken: token ) - XCTAssertEqual(data.finalKeyData?.evmAddress, "0x4924F91F5d6701dDd41042D94832bB17B76F316F") - XCTAssertEqual(data.finalKeyData?.X, "f3eaf63bf1fd645d4159832ccaad7f42457e287ac929363ba636eb7e87978bff") - XCTAssertEqual(data.finalKeyData?.Y, "f3b9d8dd91927a89ec45199ad697fe3fa01b8b836710143a0babb1a4eb35f1cd") - XCTAssertEqual(data.finalKeyData?.privKey, "04eb166ddcf59275a210c7289dca4a026f87a33fd2d6ed22f56efae7eab4052c") - XCTAssertEqual(data.oAuthKeyData?.evmAddress, "0xac997dE675Fb69FCb0F4115A23c0061A892A2772") - XCTAssertEqual(data.oAuthKeyData?.X, "9508a251dfc4146a132feb96111c136538f4fabd20fc488dbcaaf762261c1528") - XCTAssertEqual(data.oAuthKeyData?.Y, "f9128bc7403bab6d45415cad01dd0ba0924628cfb6bf51c17e77aa8ca43b3cfe") - XCTAssertEqual(data.oAuthKeyData?.privKey, "cd7d1dc7aec71fd2ee284890d56ac34d375bbc15ff41a1d87d088170580b9b0f") + XCTAssertEqual(data.finalKeyData?.evmAddress, "x81001206C06AD09b3611b593aEEd3A607d79871E") + XCTAssertEqual(data.finalKeyData?.X, "2c1dff0492828894048b840818767a1fcf6b514b93921517142381bd3f2cdb0") + XCTAssertEqual(data.finalKeyData?.Y, "7150bcba067eb00d5014622a32352fa9d431ec7a128f83be9e7ac879e312b09b") + XCTAssertEqual(data.finalKeyData?.privKey, "802ea3799fb319994a146b345b4399977c12d82078618e5880a20df020296e96") + XCTAssertEqual(data.oAuthKeyData?.evmAddress, "0x8ef416b4eAf5a8CB8754ad7F1b4c0B2F75F85554") + XCTAssertEqual(data.oAuthKeyData?.X, "0c7d2f73122817007596ae265c24e335f791c90959ae78c111771563a46ea3e1") + XCTAssertEqual(data.oAuthKeyData?.Y, "2ed65b815be494e39bbd4a52c6016da9225768831c9db8c4369865a50aa95cfb") + XCTAssertEqual(data.oAuthKeyData?.privKey, "17e7bf0456be9402696d32423fb38c34732cbb340bcba48c6bc83c84d876328a") XCTAssertNotEqual(data.sessionData?.sessionTokenData.count, 0) XCTAssertNotEqual(data.sessionData?.sessionAuthKey, "") - XCTAssertEqual(data.metadata?.pubNonce?.x, "78a88b99d960808543e75076529c913c1678bc7fafbb943f1ce58235fd2f4e0c") - XCTAssertEqual(data.metadata?.pubNonce?.y, "6b451282135dfacd22561e0fb5bf21aea7b1f26f2442164b82b0e4c8f152f7a7") - XCTAssertEqual(data.metadata?.nonce, BigUInt("376df8a62e2e72a2b3e87e97c85f86b3f2dac41082ddeb863838d80462deab5e", radix: 16)) + XCTAssertEqual(data.metadata?.pubNonce?.x, "784bf45a752a793ffe9f9f1343548ed7ecbce74f8a0b72670456ab8de82c7409") + XCTAssertEqual(data.metadata?.pubNonce?.y, "693ac3dd1671a3bdd0241af4f70051bed9a5cb371297b11a362643ebe05b95fe") + XCTAssertEqual(data.metadata?.nonce, BigUInt("47165792307358095047031273096338501591784271894675350707793220722391998741516", radix: 16)) XCTAssertEqual(data.metadata?.typeOfUser, .v2) XCTAssertEqual(data.metadata?.upgraded, false) XCTAssertNotEqual(data.nodesData?.nodeIndexes.count, 0) @@ -175,19 +175,19 @@ final class SapphireTest: XCTestCase { torusNodePubs: nodeDetails.getTorusNodePub(), indexes: nodeDetails.getTorusIndexes(), verifier: TORUS_TEST_VERIFIER, verifierParams: verifierParams, idToken: token) - XCTAssertEqual(data.finalKeyData?.evmAddress, "0x4924F91F5d6701dDd41042D94832bB17B76F316F") - XCTAssertEqual(data.finalKeyData?.X, "f3eaf63bf1fd645d4159832ccaad7f42457e287ac929363ba636eb7e87978bff") - XCTAssertEqual(data.finalKeyData?.Y, "f3b9d8dd91927a89ec45199ad697fe3fa01b8b836710143a0babb1a4eb35f1cd") - XCTAssertEqual(data.finalKeyData?.privKey, "04eb166ddcf59275a210c7289dca4a026f87a33fd2d6ed22f56efae7eab4052c") - XCTAssertEqual(data.oAuthKeyData?.evmAddress, "0xac997dE675Fb69FCb0F4115A23c0061A892A2772") - XCTAssertEqual(data.oAuthKeyData?.X, "9508a251dfc4146a132feb96111c136538f4fabd20fc488dbcaaf762261c1528") - XCTAssertEqual(data.oAuthKeyData?.Y, "f9128bc7403bab6d45415cad01dd0ba0924628cfb6bf51c17e77aa8ca43b3cfe") - XCTAssertEqual(data.oAuthKeyData?.privKey, "cd7d1dc7aec71fd2ee284890d56ac34d375bbc15ff41a1d87d088170580b9b0f") + XCTAssertEqual(data.finalKeyData?.evmAddress, "0x81001206C06AD09b3611b593aEEd3A607d79871E") + XCTAssertEqual(data.finalKeyData?.X, "12c1dff0492828894048b840818767a1fcf6b514b93921517142381bd3f2cdb0") + XCTAssertEqual(data.finalKeyData?.Y, "7150bcba067eb00d5014622a32352fa9d431ec7a128f83be9e7ac879e312b09b") + XCTAssertEqual(data.finalKeyData?.privKey, "802ea3799fb319994a146b345b4399977c12d82078618e5880a20df020296e96") + XCTAssertEqual(data.oAuthKeyData?.evmAddress, "0x8ef416b4eAf5a8CB8754ad7F1b4c0B2F75F85554") + XCTAssertEqual(data.oAuthKeyData?.X, "0c7d2f73122817007596ae265c24e335f791c90959ae78c111771563a46ea3e1") + XCTAssertEqual(data.oAuthKeyData?.Y, "2ed65b815be494e39bbd4a52c6016da9225768831c9db8c4369865a50aa95cfb") + XCTAssertEqual(data.oAuthKeyData?.privKey, "17e7bf0456be9402696d32423fb38c34732cbb340bcba48c6bc83c84d876328a") XCTAssertNotEqual(data.sessionData?.sessionTokenData.count, 0) XCTAssertNotEqual(data.sessionData?.sessionAuthKey, "") - XCTAssertEqual(data.metadata?.pubNonce?.x, "78a88b99d960808543e75076529c913c1678bc7fafbb943f1ce58235fd2f4e0c") - XCTAssertEqual(data.metadata?.pubNonce?.y, "6b451282135dfacd22561e0fb5bf21aea7b1f26f2442164b82b0e4c8f152f7a7") - XCTAssertEqual(data.metadata?.nonce, BigUInt("376df8a62e2e72a2b3e87e97c85f86b3f2dac41082ddeb863838d80462deab5e", radix: 16)) + XCTAssertEqual(data.metadata?.pubNonce?.x, "784bf45a752a793ffe9f9f1343548ed7ecbce74f8a0b72670456ab8de82c7409") + XCTAssertEqual(data.metadata?.pubNonce?.y, "693ac3dd1671a3bdd0241af4f70051bed9a5cb371297b11a362643ebe05b95fe") + XCTAssertEqual(data.metadata?.nonce, BigUInt("47165792307358095047031273096338501591784271894675350707793220722391998741516", radix: 16)) XCTAssertEqual(data.metadata?.typeOfUser, .v2) XCTAssertEqual(data.metadata?.upgraded, false) XCTAssertNotEqual(data.nodesData?.nodeIndexes.count, 0) @@ -267,7 +267,7 @@ final class SapphireTest: XCTestCase { XCTAssertEqual(pubAddress.finalKeyData!.Y, "575b7a4d0ef9921b3b1b84f30d412e87bc69b4eab83f6706e247cceb9e985a1e") XCTAssertEqual(pubAddress.metadata?.pubNonce?.x, "d6404befc44e3ab77a8387829d77e9c77a9c2fb37ae314c3a59bdc108d70349d") XCTAssertEqual(pubAddress.metadata?.pubNonce?.y, "1054dfe297f1d977ccc436109cbcce64e95b27f93efc0f1dab739c9146eda2e") - XCTAssertEqual(pubAddress.metadata?.nonce, BigUInt("51eb06f7901d5a8562274d3e53437328ca41ad96926f075122f6bd50e31be52d", radix: 16)) + XCTAssertEqual(pubAddress.metadata?.nonce, BigUInt.zero) XCTAssertEqual(pubAddress.metadata?.upgraded, false) XCTAssertEqual(pubAddress.metadata?.typeOfUser, UserType(rawValue: "v2")) XCTAssertEqual(pubAddress.nodesData?.nodeIndexes.count, 3)