Swiftpack.co - horizontalsystems/ECashKit.Swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by horizontalsystems.
horizontalsystems/ECashKit.Swift 2.2.1
Extension to BitcoinCore.Swift that makes it usable with ECash network.
⭐️ 0
🕓 5 weeks ago
iOS
.package(url: "https://github.com/horizontalsystems/ECashKit.Swift.git", from: "2.2.1")

ECashKit.Swift

ECashKit.Swift is a package that extends BitcoinCore.Swift and makes it usable with BitcoinCash (ABC) Mainnet and Testnet networks.

Features

  • Bech32
  • ☑ Validation of BCH hard forks
  • ASERT, DAA, EDA validations

Usage

Because ECashKit is a fork of BitcoinCash, the usage of this package does not differ much from BitcoinKit.Swift. So here, we only describe some differences between these packages. For more usage documentation, please see BitcoinKit.Swift

Initialization

All ECashKit wallets use default BIP44 derivation path where coinType is 899 according to SLIP44.

let seed = Mnemonic.seed(mnemonic: [""], passphrase: "")!

let ECashKit = try ECashKit.Kit(
        seed: seed,
        walletId: "unique_wallet_id",
        syncMode: .full,
        networkType: .mainNet(),
        confirmationsThreshold: 1,
        logger: nil
)

Prerequisites

  • Xcode 10.0+
  • Swift 5+
  • iOS 13+

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/horizontalsystems/ECashKit.Swift.git", .upToNextMajor(from: "1.0.0"))
]

Example Project

All features of the library are used in example project. It can be referred as a starting point for usage of the library.

License

The ECashKit toolkit is open source and available under the terms of the MIT License.

GitHub

link
Stars: 0
Last commit: 5 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics