def serialize(self):
    r = b''
    r += struct.pack('<q', self.nValue)
    r += ser_string(self.scriptPubKey)
    return r
def serialize(self):
    r = b
    r += struct.pack('<q', self.nValue)
    r += ser_string(self.scriptPubKey)
    return r