def cmd_witnessinfo(args): witness = BitcoinSealWitness.deserialize(args.witness_fd.read()) print('Hash:\t\t%s' % b2x(witness.hash)) print('Txid:\t\t%s' % b2lx(witness.txinproof.txproof.txhash)) print('Seal Hash:\t%s' % b2x(witness.seal.hash)) print('Seal OutPoint:\t%s:%d' % (b2x(witness.seal.outpoint.hash), witness.seal.outpoint.n))
def cmd_verifywitness(args): witness = BitcoinSealWitness.deserialize(args.witness_fd.read()) # FIXME: implement --local witness.verify() if args.digest is not None: witness.verify_hash(args.digest)