zcash-swift-wallet-sdk
zcash-swift-wallet-sdk copied to clipboard
ZIP-321 Request Generation API
https://zips.z.cash/zip-0321
typealias URI = URL
protocol ZECPaymentRequest: LosslessStringConvertible {
func request(amount: Double, paymentRecipient: String, message: String, memo: String) throws -> URI
}
class ZIP321 {
/// definitions
}
extension ZIP321: ZECPaymentRequest
func request(amount: Double, paymentRecipient: String, message: String, memo: String) throws -> URI { ... }
}
Refs:
- https://developer.apple.com/documentation/swift/customstringconvertible
- https://developer.apple.com/documentation/swift/losslessstringconvertible
- https://zips.z.cash/zip-0321