Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 676 Bytes

README.md

File metadata and controls

43 lines (34 loc) · 676 Bytes

babylon-btc-sign

Init service

Install dependencies

yarn install

Set private key in config.js

{
  "privateKey": "PRIVATE_KEY_WIF",
  "network": "testnet or bitcoin"
}

Print your public key

node public-key.js

Sign transaction

node sign.js 'transacton in hex'

Docker examples

Docker build

docker build -t babylon-btc-sign .

Docker run sign.js

docker run -v $(pwd)/config.js:/app/config.js babylon-btc-sign node sign.js 'transacton in hex'

Docker run public-key.js

docker run -v $(pwd)/config.js:/app/config.js babylon-btc-sign node public-key.js