digest method
Gets the digest of this operation
Implementation
Uint8List digest() {
Uint8List signer = AccountNumberCoder().encodeToBytes(this.accountSigner);
Uint8List target = AccountNumberCoder().encodeToBytes(this.targetSigner);
Uint8List nOperation = Int32.encodeToBytes(this.nOperation!);
Uint8List price = CurrencyCoder().encodeToBytes(this.price);
Uint8List accountToPay =
AccountNumberCoder().encodeToBytes(this.accountToPay);
Uint8List fee = CurrencyCoder().encodeToBytes(this.fee!);
Uint8List? payload = this.payload;
Uint8List v2publickey = PublicKeyCoder().encodeToBytes(PublicKey.empty());
Uint8List newPublicKey = PublicKeyCoder().encodeToBytes(this.newPublicKey);
//Uint8List lockedUntilBlock = Int32.encodeToBytes(this.lockedUntilBlock);
Uint8List type = OpTypeCoder(1).encodeToBytes(this.opType());
return PDUtil.concat([
signer,
target,
nOperation,
price,
accountToPay,
fee,
payload,
v2publickey,
newPublicKey,
type
]);
}