我必须创建一个多签名事务,事务应该使用至少两个私钥进行签名。有人能解释一下怎么做吗?我正在使用web3.py
import rlp
from ethereum.transactions import Transaction
tx = Transaction(
nonce=web3.eth.getTransactionCount(web3.eth.coinbase),
gasprice=web3.eth.gasPrice,
startgas=100000,
to='0xd3cda913deb6f67967b99d67acdfa1712c293601',
value=12345,
data=b'',
)
tx.sign(the_private_key_for_the_from_account)
raw_tx = rlp.encode(tx)
raw_tx_hex = web3.toHex(raw_tx)
web3.eth.sendRawTransaction(raw_tx_hex)在上面的代码中,我只使用一个私钥签名。有人能解释一下如何用多个私钥签名吗?
https://ethereum.stackexchange.com/questions/40958
复制相似问题