digest method
Gets the digest of this operation
Implementation
Uint8List digest() {
Uint8List signer = AccountNumberCoder().encodeToBytes(this.signer);
Uint8List target = AccountNumberCoder().encodeToBytes(this.target);
Uint8List nOperation = Int32.encodeToBytes(this.nOperation!);
Uint8List fee = CurrencyCoder().encodeToBytes(this.fee!);
Uint8List? payload = this.payload;
// Not used in modern pascal coin?
Uint8List v2publickey = Uint8List.fromList([0, 0]);
Uint8List newPublicKey = PublicKeyCoder().encodeToBytes(this.newPublicKey);
Uint8List type = OpTypeCoder(1).encodeToBytes(this.opType());
return PDUtil.concat([
signer,
target,
nOperation,
fee,
payload,
v2publickey,
newPublicKey,
type
]);
}