Skip to content

Commit

Permalink
Use 2-of-3 BTC multisigs in IT
Browse files Browse the repository at this point in the history
  • Loading branch information
koirikivi committed Apr 19, 2024
1 parent 291ba3a commit 416f798
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 3 additions & 6 deletions bridge_node/tests/integration/fixtures/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,12 @@ class IntegrationTestHarness:
# 1 of 3 wallet based on values in docker-compose.dev.yml. Needs to be changed when the
# number of signers, or the keys, change
RUNE_BRIDGE_MULTISIG_DESCRIPTOR = (
"wsh(sortedmulti(1,"
"tpubD6NzVbkrYhZ4WokHnVXX8CVBt1S88jkmeG78yWbLxn7Wd89nkNDe2J8b6opP4K38mRwXf9d9VVN5uA58epPKjj584R1rnDDbk6oHUD1MoWD/13/0/0/*,"
"tpubD6NzVbkrYhZ4WpZfRZip3ALqLpXhHUbe6UyG8iiTzVDuvNUyysyiUJWejtbszZYrDaUM8UZpjLmHyvtV7r1QQNFmTqciAz1fYSYkw28Ux6y/13/0/0/*,"
"tpubD6NzVbkrYhZ4WQZnWqU8ieBsujhoZKZLF6wMvTApJ4ZiGmipk481DyM2su3y5BDeB9fFLwSmmmsGDGJum79he2fnuQMnpWhe3bGir7Mf4uS/13/0/0/*"
"))#jyn3fuhd"
# BIG STRING WOO WOO
"wsh(sortedmulti(2,tpubD6NzVbkrYhZ4WokHnVXX8CVBt1S88jkmeG78yWbLxn7Wd89nkNDe2J8b6opP4K38mRwXf9d9VVN5uA58epPKjj584R1rnDDbk6oHUD1MoWD/13/0/0/*,tpubD6NzVbkrYhZ4WpZfRZip3ALqLpXhHUbe6UyG8iiTzVDuvNUyysyiUJWejtbszZYrDaUM8UZpjLmHyvtV7r1QQNFmTqciAz1fYSYkw28Ux6y/13/0/0/*,tpubD6NzVbkrYhZ4WQZnWqU8ieBsujhoZKZLF6wMvTApJ4ZiGmipk481DyM2su3y5BDeB9fFLwSmmmsGDGJum79he2fnuQMnpWhe3bGir7Mf4uS/13/0/0/*))#qqwc9q36"
)
# this also needs changing when the above changes
RUNE_BRIDGE_MULTISIG_CHANGE_ADDRESS = (
"bcrt1qh3j9z0tsxpqc07caeehn3j0q7mfmq0stcfacudlcndpssv48lnaqs0vfw8"
"bcrt1qenkjz7gt2jtys84dwdh75696arc85ld7dl85p7jd77ksxds55tjqtl627a"
)

bitcoind: BitcoindService
Expand Down
7 changes: 3 additions & 4 deletions docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ services:
- BRIDGE_EVM_BLOCK_SAFETY_MARGIN=1
- BRIDGE_EVM_BRIDGE_CONTRACT_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3
- BRIDGE_EVM_RPC_URL=http://hardhat:8545
- BRIDGE_PEERS=bob-node@bob-bridge:5000
- BRIDGE_PEERS=alice-node@alice-bridge:5000,bob-node@bob-bridge:5000
- BRIDGE_BTC_NETWORK=regtest
- BRIDGE_BTC_RPC_URL=http://polaruser:polarpass@bitcoind:18443
# Taproot Assets
Expand All @@ -174,8 +174,7 @@ services:
- BRIDGE_RUNES_ORD_API_URL=http://ord:80
- BRIDGE_RUNES_EVM_RPC_URL=http://hardhat:8545
- BRIDGE_RUNES_TO_EVM_FEE_PERCENTAGE_DECIMAL=0
# TODO: change to 2-of-3
- BRIDGE_RUNES_BTC_NUM_REQUIRED_SIGNERS=1
- BRIDGE_RUNES_BTC_NUM_REQUIRED_SIGNERS=2
- BRIDGE_RUNES_BTC_BASE_DERIVATION_PATH=m/13/0/0
- BRIDGE_SECRET_RUNES_BTC_MASTER_XPUBS=tpubD6NzVbkrYhZ4WokHnVXX8CVBt1S88jkmeG78yWbLxn7Wd89nkNDe2J8b6opP4K38mRwXf9d9VVN5uA58epPKjj584R1rnDDbk6oHUD1MoWD,tpubD6NzVbkrYhZ4WpZfRZip3ALqLpXhHUbe6UyG8iiTzVDuvNUyysyiUJWejtbszZYrDaUM8UZpjLmHyvtV7r1QQNFmTqciAz1fYSYkw28Ux6y,tpubD6NzVbkrYhZ4WQZnWqU8ieBsujhoZKZLF6wMvTApJ4ZiGmipk481DyM2su3y5BDeB9fFLwSmmmsGDGJum79he2fnuQMnpWhe3bGir7Mf4uS
# RUNES NODE-SPECIFIC
Expand Down Expand Up @@ -213,7 +212,7 @@ services:
- BRIDGE_EVM_BLOCK_SAFETY_MARGIN=1
- BRIDGE_EVM_BRIDGE_CONTRACT_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3
- BRIDGE_EVM_RPC_URL=http://hardhat:8545
- BRIDGE_PEERS=alice-node@alice-bridge:5000
- BRIDGE_PEERS=alice-node@alice-bridge:5000,bob-node@bob-bridge:5000
- BRIDGE_BTC_NETWORK=regtest
- BRIDGE_BTC_RPC_URL=http://polaruser:polarpass@bitcoind:18443
# Taproot Assets
Expand Down

0 comments on commit 416f798

Please sign in to comment.