this.signature = bytes.toHex(sig)
} else if (input instanceof Wallet && typeof param === 'number') {
const wallet = input
- const sig = await wallet.sign(param, this, 'hex')
- if (this.signature !== sig) {
- throw new Error('Wallet signature does not match block signature')
- }
+ await wallet.sign(param, this, 'hex')
} else if (typeof input === 'number') {
const index = input
const { Ledger } = await import('./wallet/ledger')