Git Product home page Git Product logo

bip44's Introduction

BIP44

Platform Swift Package Manager compatible License

An implementation of BIP-0044 in Swift.

Platforms

  • macOS 10.15+
  • iOS 13+

Installation

Swift Package Manager

Add the following line to your Package.swift file:

.package(url: "https://github.com/anquii/BIP44.git", from: "1.0.0")

...or integrate with Xcode via File -> Swift Packages -> Add Package Dependency... using the URL of the repository.

Usage

import BIP44

let accountProvider: AccountProviding = try AccountProvider(seed: seed, coinType: coinType)
let account = try accountProvider.account(name: "Savings", index: 0)

let addressProvider: AddressProviding = AddressProvider(account: account, addressType: .`external`, addressVersion: 0)
let address = addressProvider.address(index: 0)
// e.g. 1PRTTaJesdNovgne6Ehcdu1fpEdX7913CK

Find out more by exploring the public API (e.g. for neutered accounts), and by looking through the tests. You should also read through the BIP-0044 requirements about when to allow the creation of an account, and how to discover used accounts following the import of a master seed from an external source.

License

BIP44 is licensed under the terms of the MIT license. See the LICENSE file for more information.

Donations

If you've found this software useful, please consider making a small contribution to one of these crypto addresses:

XNAV: xNTYqoQDzsiB5Cff9Wpt65AgZxYkt1GFy7KwuDafqRU2bcAZqoZUW4Q9TZ9QRHSy8cPsM5ALkJasizJCmqSNP9CosxrF2RbKHuDz5uJVUBcKJfvnb3RZaWygr8Bhuqbpc3DsgfB3ayc
XMR: 49jzT7Amu9BCvc5q3PGiUzWXEBQTLQw68a2KvBFTMs7SHjeWgrSKgxs69ycFWQupyw9fpR6tdT8Hp5h3KksrBG9m4c8aXiG
BTC: bc1q7hehfmnq67x5k7vz0cnc75qyflkqtxe2avjkyw
ETH (ERC-20) & BNB (BEP-20): 0xe08e383B4042749dE5Df57d48c57A690DC322b8d

bip44's People

Contributors

anquii avatar

Stargazers

Chris avatar iOS.Jett avatar

Watchers

 avatar

bip44's Issues

cannot be resolved.

Failed to resolve dependencies Dependencies could not be resolved because 'bip44' depends on 'bip32' 1.1.2.
'bip32' 1.1.2 cannot be used because 'bip32' 1.1.2 depends on 'secp256k1.swift' 0.14.0 and no versions of 'secp256k1.swift' match the requirement 0.14.0.

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.