From 695bb2e63216f1045653217261c8ad9033d7efd5 Mon Sep 17 00:00:00 2001 From: Alexander Osokin Date: Wed, 5 Apr 2023 20:14:54 +0300 Subject: [PATCH] IOS-3371 Reveal Bip32 to public --- TangemSdk/TangemSdk/Crypto/HDWallet/BIP32/BIP32.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TangemSdk/TangemSdk/Crypto/HDWallet/BIP32/BIP32.swift b/TangemSdk/TangemSdk/Crypto/HDWallet/BIP32/BIP32.swift index bacc67834..1e8537db1 100644 --- a/TangemSdk/TangemSdk/Crypto/HDWallet/BIP32/BIP32.swift +++ b/TangemSdk/TangemSdk/Crypto/HDWallet/BIP32/BIP32.swift @@ -10,14 +10,16 @@ import Foundation import CryptoKit // https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki -struct BIP32 { +public struct BIP32 { + public init() {} + @available(iOS 13.0, *) /// Generate an extended private key from the seed. /// - Parameters: /// - seed: The seed to use /// - curve: The curve to use /// - Returns: The `ExtendedPrivateKey` - func makeMasterKey(from seed: Data, curve: EllipticCurve) throws -> ExtendedPrivateKey { + public func makeMasterKey(from seed: Data, curve: EllipticCurve) throws -> ExtendedPrivateKey { // The seed must be between 128 and 512 bits guard 16...64 ~= seed.count else { throw HDWalletError.invalidSeed