Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ let package = Package(
],
dependencies: [
.package(name: "KeychainSwift", url: "https://github.com/evgenyneu/keychain-swift.git", from: "20.0.0"),
.package(name:"SessionManager",url: "https://github.com/Web3Auth/session-manager-swift.git",from: "5.0.0"),
.package(name: "curvelib.swift", url: "https://github.com/tkey/curvelib.swift", from: "1.0.1"),
.package(name:"SessionManager",url: "https://github.com/Web3Auth/session-manager-swift.git",from: "6.0.1"),
.package(name: "curvelib.swift", url: "https://github.com/tkey/curvelib.swift", from: "2.0.0"),
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.3.0"),
],
targets: [
Expand Down
293 changes: 0 additions & 293 deletions Sources/Web3Auth/AnyEncodable.swift

This file was deleted.

8 changes: 0 additions & 8 deletions Sources/Web3Auth/BuildEnv.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
//
// File.swift
//
//
// Created by Gaurav Goel on 15/09/23.
//

import Foundation

public enum BuildEnv: String, Codable {
case production
case staging
case testing
}

18 changes: 3 additions & 15 deletions Sources/Web3Auth/Data+extensions.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
//
// File.swift
//
//
// Created by Michael Lee on 8/3/2022.
//

import Foundation

extension Data {

internal extension Data {
static func fromBase64URL(_ str: String) -> Data? {
var base64 = str
base64 = base64.replacingOccurrences(of: "-", with: "+")
Expand All @@ -23,15 +15,15 @@ extension Data {
}

func toBase64URL() -> String {
var result = self.base64EncodedString()
var result = base64EncodedString()
result = result.replacingOccurrences(of: "+", with: "-")
result = result.replacingOccurrences(of: "/", with: "_")
result = result.replacingOccurrences(of: "=", with: "")
return result
}
}

extension Data {
internal extension Data {
init?(hexString: String) {
let length = hexString.count / 2
var data = Data(capacity: length)
Expand All @@ -47,8 +39,4 @@ extension Data {
}
self = data
}

func addLeading0sForLength64() -> Data {
Data(hexString: hexString.padStart(toLength: 64, padString: "0")) ?? Data()
}
}
8 changes: 1 addition & 7 deletions Sources/Web3Auth/ECDSASig.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
//
// File.swift
//
//
// Created by Dhruv Jaiswal on 25/08/22.
//
import BigInt
import Foundation
import curveSecp256k1
import Foundation

class SECP256K1 {
static func sign(privkey: String, messageData: String) throws -> Signature {
Expand Down
Loading