Skip to content
New issue

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 multisig transactions. #1

Open
micheal-swiggs opened this issue Jan 8, 2014 · 0 comments
Open

Implement multisig transactions. #1

micheal-swiggs opened this issue Jan 8, 2014 · 0 comments

Comments

@micheal-swiggs
Copy link
Owner

Implement multisig transactions and then integrate into email transactions.

Keys into ECKey

Currently the Keys variable holds private keys in hex format. The following is how to convert hex keys into ECKey.

var hexKey = Keys[..btcaddy..];
var bigIntKey = new BigInteger(hexKey, 16);
bigIntKey = bigIntKey.mod(getSECCurveByName("secp256k1").getN())
var eckey = new ECKey(bigIntKey)

Here is an example of converting a hex private key into a base58 bitcoin address

var eckey = ..follow.. steps above
var pub = eckey.getPub()
var pubkeyHash = Bitcoin.Util.sha256ripe160(pub)
var btcAddress = new Bitcoin.Address(pubkeyHash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant