Skip to content

Commit

Permalink
IOS-4286 Refactor public modify
Browse files Browse the repository at this point in the history
  • Loading branch information
skibinalexander committed Aug 15, 2023
1 parent 3c7d114 commit 4b2a0b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions TangemSdk/TangemSdk/Crypto/BLS/BLSUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,27 @@ extension BLSUtils {
// MARK: - Bls_Signature Implementation

@available(iOS 13.0, *)
extension BLSUtils {
public extension BLSUtils {
/// Obtain G2 point for bls curve
/// - Parameters:
/// - publicKey: Public key hash
/// - message: Message hash
/// - Returns: Hash of G2Element point
public func augSchemeMplG2Map(publicKey: String, message: String) throws -> String {
func augSchemeMplG2Map(publicKey: String, message: String) throws -> String {
try BlsSignatureSwift.augSchemeMplG2Map(publicKey: publicKey, message: message)
}

/// Perform Aggregate hash signatures
/// - Parameter signatures: Signatures hash's
/// - Returns: Hash of result aggreate signature at bls-signature library
public func aggregate(signatures: [String]) throws -> String {
func aggregate(signatures: [String]) throws -> String {
try BlsSignatureSwift.aggregate(signatures: signatures)
}

/// Obtain public key from private key
/// - Parameter privateKey: Private key hash string
/// - Returns: Public key hash
public func publicKey(from privateKey: String) throws -> String {
func publicKey(from privateKey: String) throws -> String {
try BlsSignatureSwift.publicKey(from: privateKey)
}

Expand All @@ -103,7 +103,7 @@ extension BLSUtils {
/// - publicKey: Hash public key
/// - message: Has payload message
/// - Returns: Bool result of valid or no
public func verify(signatures: [String], with publicKey: String, message: String) throws -> Bool {
func verify(signatures: [String], with publicKey: String, message: String) throws -> Bool {
try BlsSignatureSwift.verify(signatures: signatures, with: publicKey, message: message)
}
}

0 comments on commit 4b2a0b8

Please sign in to comment.