Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: generateAddressFromPubKey and tests #69

Merged
merged 45 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f58573f
fix: generateAddressFromPubKey and tests
ieow Oct 6, 2023
c83f38b
refactor: add test for evmaddress
metalurgical Oct 6, 2023
91bf7b2
fix: add ci to alpha branch
metalurgical Oct 6, 2023
b1de0f1
refactor: fix warnings and remove unnecessary code from tests
metalurgical Oct 6, 2023
b3f929e
update
metalurgical Oct 9, 2023
1aed984
Update TorusUtils+extension.swift
metalurgical Oct 9, 2023
e437b7e
Update TorusUtils+extension.swift
metalurgical Oct 9, 2023
2fe6350
fix: use cyan test values from torus.js
metalurgical Oct 9, 2023
cb7ccea
fix: missing else case for v1 in retrieveShares
metalurgical Oct 9, 2023
64aa8af
fix: remove additional expectations in tests
metalurgical Oct 9, 2023
99b35e5
cleanup
metalurgical Oct 10, 2023
cb5c191
fix: test values in aqua matching torus.js
metalurgical Oct 10, 2023
ca24795
fix: test names and warnings
metalurgical Oct 10, 2023
dfdb38f
fix: cyan test values from torus.js
metalurgical Oct 10, 2023
1cb782c
Update MainnetTest.swift
metalurgical Oct 10, 2023
9f4be9c
update
metalurgical Oct 10, 2023
aac67da
remove broken test
metalurgical Oct 10, 2023
6c23eb2
Update TorusUtils+extension.swift
metalurgical Oct 10, 2023
dfeea7d
update: check public key is recoverable from signature
metalurgical Oct 11, 2023
0a7a59a
update
metalurgical Oct 11, 2023
65cc6ec
fix: use sorted keys in getOrSetNonce for json encoding
metalurgical Oct 12, 2023
b2d319f
fix: remove force unwrap on makeUrlRequest
metalurgical Oct 12, 2023
5c7373e
fix: additional sortedKeys for encoder
metalurgical Oct 12, 2023
d146f79
fix: additional sortedKeys for encoder
metalurgical Oct 12, 2023
68e535f
fix
metalurgical Oct 12, 2023
65b5db2
refactor: code cleanup
metalurgical Oct 12, 2023
f13a2ac
Merge pull request #71 from torusresearch/refactoring
metalurgical Oct 12, 2023
e317048
refactor: move helpers to common
metalurgical Oct 12, 2023
041c3ca
refactor: remove BasePoint struct
metalurgical Oct 12, 2023
4fe54f2
Merge pull request #72 from torusresearch/refactoring
metalurgical Oct 12, 2023
2b84e6a
update: consolidation of secp256k1 implementations
metalurgical Oct 14, 2023
1d43796
update
metalurgical Oct 14, 2023
a0b1450
update
metalurgical Oct 14, 2023
30c7c17
update
metalurgical Oct 14, 2023
5ad1c80
update
metalurgical Oct 14, 2023
8319619
update
metalurgical Oct 14, 2023
9bd1e83
format
metalurgical Oct 14, 2023
99cc159
refactor: further dead code removal
metalurgical Oct 14, 2023
2e7cfb2
Merge pull request #73 from torusresearch/consolidate_secp256k1
metalurgical Oct 14, 2023
828e3c6
formatting
metalurgical Oct 14, 2023
57da155
refactor: remove duplicate combination code
metalurgical Oct 14, 2023
c7de77e
refactor: further dead code removal and cleanup of extensions
metalurgical Oct 14, 2023
16bccdd
fix: remove force unwrap on throwable function
metalurgical Oct 14, 2023
713a8d4
Update String+Extension.swift
metalurgical Oct 14, 2023
c269a84
Update String+Extension.swift
metalurgical Oct 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
pull_request:
branches:
- master
- alpha

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
7 changes: 3 additions & 4 deletions Sources/TorusUtils/AbstractTorusUtils.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import BigInt
import FetchNodeDetails
import CryptoSwift
import CommonSources
import FetchNodeDetails
import Foundation

public protocol AbstractTorusUtils {
func retrieveShares(endpoints: [String], torusNodePubs: [TorusNodePubModel], indexes: [BigUInt], verifier: String, verifierParams: VerifierParams, idToken: String, extraParams: [String:Codable]) async throws -> TorusKey
func retrieveShares(endpoints: [String], torusNodePubs: [TorusNodePubModel], indexes: [BigUInt], verifier: String, verifierParams: VerifierParams, idToken: String, extraParams: [String: Codable]) async throws -> TorusKey

func getPublicAddress(endpoints: [String], torusNodePubs: [TorusNodePubModel], verifier: String, verifierId: String, extendedVerifierId :String?) async throws -> TorusPublicKey
func getPublicAddress(endpoints: [String], torusNodePubs: [TorusNodePubModel], verifier: String, verifierId: String, extendedVerifierId: String?) async throws -> TorusPublicKey
}
2 changes: 1 addition & 1 deletion Sources/TorusUtils/Constants.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enum JRPC_METHODS {
enum JRPC_METHODS {
static let GET_OR_SET_KEY = "GetPubKeyOrKeyAssign"
static let COMMITMENT_REQUEST = "CommitmentRequest"
static let IMPORT_SHARE = "ImportShare"
Expand Down
16 changes: 0 additions & 16 deletions Sources/TorusUtils/Convenience/Array+Extension.swift

This file was deleted.

167 changes: 0 additions & 167 deletions Sources/TorusUtils/Convenience/Base58.swift

This file was deleted.

16 changes: 0 additions & 16 deletions Sources/TorusUtils/Convenience/BigUInt+Extensions.swift

This file was deleted.

20 changes: 0 additions & 20 deletions Sources/TorusUtils/Convenience/CryptoExtensions.swift

This file was deleted.

Loading
Loading