#!/usr/bin/env python3

# format a 3 of 5 multisig script of compressed pubkeys
NUM_OF_SIGS = 3
NUM_OF_KEYS = 5

PUB_1 = "<KEY>"
PUB_2 = "<KEY>"
PUB_3 = "<KEY>"
PUB_4 = "<KEY>"
PUB_5 = "03f7af4a248408948bce4f7db33a223a2edd30eb27c22003d36a48dd43f1f31d09"

multisig = "{}21{}21{}21{}21{}21{}{}ae".format(\
    50 + NUM_OF_SIGS,
    PUB_1,PUB_2,PUB_3,PUB_4,PUB_5,
    50 + NUM_OF_KEYS)

print("script: {}".format(multisig))

#!/usr/bin/env python3

# format a 3 of 5 multisig script of compressed pubkeys
NUM_OF_SIGS = 3
NUM_OF_KEYS = 5

PUB_1 = "<KEY>"
PUB_2 = "<KEY>"
PUB_3 = "<KEY>"
PUB_4 = "<KEY>"
PUB_5 = "03f7af4a248408948bce4f7db33a223a2edd30eb27c22003d36a48dd43f1f31d09"

multisig = "{}21{}21{}21{}21{}21{}{}ae".format(\
    50 + NUM_OF_SIGS,
    PUB_1,PUB_2,PUB_3,PUB_4,PUB_5,
    50 + NUM_OF_KEYS)

print("script: {}".format(multisig))

#!/usr/bin/env python3 # format a 3 of 5 multisig script of compressed pubkeys