Git Product home page Git Product logo

ecashkit.swift's Introduction

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.

ecashkit.swift's People

Contributors

ealymbaev avatar esen avatar ant013 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.