You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.Here is an example of converting a hex private key into a base58 bitcoin address
The text was updated successfully, but these errors were encountered: