Skip to content

Commit

Permalink
fix serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Aug 14, 2023
1 parent f712a85 commit 09f46cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Sources/TorusUtils/TorusUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
16 changes: 8 additions & 8 deletions cocoapods/Podfile.lock
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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

0 comments on commit 09f46cd

Please sign in to comment.