TM-SGNL-iOS/SignalServiceKit/Payments/MobileCoinHelper.swift
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

34 lines
821 B
Swift

//
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
public protocol MobileCoinHelper: AnyObject {
func info(forReceiptData receiptData: Data) throws -> MobileCoinReceiptInfo
func isValidMobileCoinPublicAddress(_ addressData: Data) -> Bool
}
// MARK: -
public class MobileCoinReceiptInfo: NSObject {
public let txOutPublicKey: Data
public init(txOutPublicKey: Data) {
self.txOutPublicKey = txOutPublicKey
}
}
// MARK: -
public class MobileCoinHelperMock: NSObject, MobileCoinHelper {
public func info(forReceiptData receiptData: Data) throws -> MobileCoinReceiptInfo {
throw OWSAssertionError("Not implemented.")
}
public func isValidMobileCoinPublicAddress(_ addressData: Data) -> Bool {
false
}
}