diff --git a/electrum_dash/dash_tx.py b/electrum_dash/dash_tx.py index 5e5d51f5b..f1a190dd5 100644 --- a/electrum_dash/dash_tx.py +++ b/electrum_dash/dash_tx.py @@ -698,156 +698,97 @@ def read_vds(cls, vds): bestCLHeightDiff, bestCLSignature, assetLockedAmount) -class DashSubTxRegister(ProTxBase): - '''Class representing DIP5 SubTxRegister''' +class AssetLockTx(ProTxBase): + '''Class representing AssetLock transaction (type 8)''' - __slots__ = ('version userName pubKey payloadSig').split() + __slots__ = ('version', 'count', 'creditOutputs') - def __str__(self): - return ('SubTxRegister Version: %s\n' - 'userName: %s\n' - 'pubKey: %s\n' - % (self.version, self.userName, - bh2u(self.pubKey))) - - def serialize(self): - assert len(self.pubKey) == 48, \ - f'{len(self.pubKey)} not 48' - assert len(self.payloadSig) == 96, \ - f'{len(self.payloadSig)} not 96' - userName = self.userName.encode('utf-8') - return ( - struct.pack('= 65536 PSTxTypes.NEW_DENOMS: 'PS New Denoms',