From 09f46cdd74afcd87ff65f7f7742abaf3d6f1afe8 Mon Sep 17 00:00:00 2001 From: chaitanyapotti Date: Mon, 14 Aug 2023 14:39:59 +0800 Subject: [PATCH] fix serialize --- Sources/TorusUtils/TorusUtils.swift | 2 +- cocoapods/Podfile.lock | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Sources/TorusUtils/TorusUtils.swift b/Sources/TorusUtils/TorusUtils.swift index 00119d98..9fccfd32 100644 --- a/Sources/TorusUtils/TorusUtils.swift +++ b/Sources/TorusUtils/TorusUtils.swift @@ -156,7 +156,7 @@ open class TorusUtils: AbstractTorusUtils { let key = BigInt(torusKey.privateKey, radix: 16)! let result = key - BigInt(torusKey.nonce) let postboxKey = result.modulus(modulusValue) - return postboxKey.serialize().toHexString() + return postboxKey.magnitude.serialize().toHexString() } return torusKey.privateKey } diff --git a/cocoapods/Podfile.lock b/cocoapods/Podfile.lock index 45d8c3a3..505e11ec 100644 --- a/cocoapods/Podfile.lock +++ b/cocoapods/Podfile.lock @@ -1,14 +1,14 @@ PODS: - BigInt (5.0.0) - - CryptoSwift (1.5.1) + - CryptoSwift (1.7.1) - GenericJSON (2.0.2) - secp256k1.swift (0.1.4) - Torus-fetchNodeDetails (4.0.1): - web3.swift (~> 0.9.3) - - Torus-utils (4.0.0): - - CryptoSwift (~> 1.5.1) + - Torus-utils (5.1.0): + - CryptoSwift (~> 1.7.1) - secp256k1.swift (~> 0.1.4) - - Torus-fetchNodeDetails (~> 4.0.0) + - Torus-fetchNodeDetails (~> 4.0.1) - web3.swift (0.9.3): - BigInt (~> 5.0.0) - GenericJSON (~> 2.0) @@ -32,13 +32,13 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: BigInt: 74b4d88367b0e819d9f77393549226d36faeb0d8 - CryptoSwift: c4f2debceb38bf44c80659afe009f71e23e4a082 + CryptoSwift: d3d18dc357932f7e6d580689e065cf1f176007c1 GenericJSON: 79a840eeb77030962e8cf02a62d36bd413b67626 secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634 Torus-fetchNodeDetails: a92d02f1bfe91bd61c90f92d64df023babaa5bfa - Torus-utils: 2517d21b0bc84759fc2cd9617761ce9083e8ee2c + Torus-utils: 19d0fc9fc53ee0c28bc742e6d106821774e6723e web3.swift: c6c3bf1f853743f8a7a58d263e5f7e46545e22c7 -PODFILE CHECKSUM: 9e74ec64413946e46948113d1a431b427cad7612 +PODFILE CHECKSUM: 2d35466879f2d32f53c6ccbca958796c381f0e62 -COCOAPODS: 1.11.3 +COCOAPODS: 1.12.1