Coder Social home page Coder Social logo

bip32-wallet's People

Contributors

dcousens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bip32-wallet's Issues

Ignore confirmations

This behaviour is often specialized to the implementation.
Enforcing it at this level seems suitable, but odd once you start changing from the defaults.

Instead, it would be better to pull this behaviour up further, and let users decide what to give as unspents to this API.

With age-based priority being disabled by many miners, it is probably also worth ignoring that in selection code as well.

Discussion: 0.5.0 and a future merge with bip32-utils

The Wallet abstraction is merely another form of BIP32 key management, and probably could be merged with Account and Chain in https://github.com/bitcoinjs/bip32-utils.

It'd be nice to extract the safe-transaction code out to a new module, without giving up the interface simplicity.
It currently makes up the most of this module, and is the most extensively tested.

With the removal of unspents management [in 0.5.0], Wallet is now just a wrapper around a BIP32 Account, with a well tested transaction creation function.

The https://github.com/dcousens/coinselect package extraction was just one part of this.

If anyone else uses this package, I'd be interested to hear your thoughts on this.

Missing function

Sorry for making this an issue, I wanted to do a PR, but my repo is borked.
I didn't fork properly or something.

Anyways, could you please consider adding something along the following to wallet.js
It is required if one is rebuilding a wallet from a known seed. Super useful to have and I'm not at all sure why it's missing.

Wallet.fromSeedHex = function(hex,network){ var m = bitcoin.HDNode.fromSeedHex(hex, network) var i = m.deriveHardened(0) var external = i.derive(0) var internal = i.derive(1) return new HDWallet.Wallet(external, internal) }

Thanks!

Adhere to BIP69

Transactions generated by this software are still identifiable to this software.

The order by address change prevented the users change address being easily identified (it was always originally always the last output, sorting by address changed that).

However, what it did not prevent is the transaction being recognizable as being produced by this software.

To change this, we need to sort the inputs/outputs by some non-deterministic entropy or user secret.

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.