forked from zold-io/java-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCpTransaction.java
More file actions
26 lines (24 loc) · 771 Bytes
/
Copy pathCpTransaction.java
File metadata and controls
26 lines (24 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* SPDX-FileCopyrightText: Copyright (c) 2018-2026 Zerocracy
* SPDX-License-Identifier: MIT
*/
package io.zold.api;
/**
* Computed Transaction.
* @since 1.0
* @todo #54:30min Implement the computation of the transaction string
* based on the white paper. The unit tests should also be updated to
* ensure it works as expected and test for
* returnSignatureForNegativeTransaction must be implemented.
*/
public final class CpTransaction extends TransactionEnvelope {
/**
* Ctor.
* @param amt Amount to pay in zents
* @param bnf Wallet ID of beneficiary
* @checkstyle ConstructorsCodeFreeCheck (3 lines)
*/
CpTransaction(final long amt, final long bnf) {
super(new RtTransaction(Long.toString(amt + bnf)));
}
}