We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a new method that returns a function that creates a CoinKey instance with specified versions. For example:
CoinKey.createFactory = function(versions) { return function(privateKey) { return new CoinKey(privateKey, versions) } }
example usage:
var secureRandom = require('secure-random') var CoinKey = require('coinkey') var dogecoinCreator = CoinKey.createFactory({public: 0x9E: private: 0x1E}) var privateKey = secureRandom.randomBuffer(32) var ck = dogecoinCreator(privateKey)
Any thoughts on a less Java-y name than createFactory()?
createFactory()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Implement a new method that returns a function that creates a CoinKey instance with specified versions. For example:
example usage:
Any thoughts on a less Java-y name than
createFactory()
?The text was updated successfully, but these errors were encountered: