Skip to content

Commit

Permalink
cleanup nodepubs
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed May 14, 2024
1 parent d4359d0 commit 8069060
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Sources/TorusUtils/TorusUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ public class TorusUtils {
return try await NodeUtils.retrieveOrImportShare(legacyMetadataHost: legacyMetadataHost, serverTimeOffset: serverTimeOffset, enableOneKey: enableOneKey, allowHost: allowHost, network: network, clientId: clientId, endpoints: endpoints, verifier: verifier, verifierParams: verifierParams, idToken: idToken, importedShares: [], apiKey: apiKey, extraParams: params)
}

public func getPublicAddress(endpoints: [String], torusNodePubs: [TorusNodePubModel], verifier: String, verifierId: String, extendedVerifierId: String? = nil) async throws -> TorusPublicKey {
let nodePubs = TorusNodePubModelToINodePub(nodes: torusNodePubs)
public func getPublicAddress(endpoints: [String], verifier: String, verifierId: String, extendedVerifierId: String? = nil) async throws -> TorusPublicKey {
return try await getNewPublicAddress(endpoints: endpoints, verifier: verifier, verifierId: verifierId, extendedVerifierId: extendedVerifierId, enableOneKey: enableOneKey)
}

Expand Down Expand Up @@ -176,12 +175,10 @@ public class TorusUtils {

public func getUserTypeAndAddress(
endpoints: [String],
torusNodePubs: [TorusNodePubModel],
verifier: String,
verifierId: String,
extendedVerifierId: String? = nil
) async throws -> TorusPublicKey {
let nodePubs = TorusNodePubModelToINodePub(nodes: torusNodePubs)
return try await getNewPublicAddress(endpoints: endpoints, verifier: verifier, verifierId: verifierId, extendedVerifierId: extendedVerifierId, enableOneKey: true)
}

Expand Down

0 comments on commit 8069060

Please sign in to comment.