@Test public void finalCommitmentTest() throws IOException { byte [] txdata = Utils.HEX.decode("03000600000000000000fd490101004c370100010001ae1022a3871ce8a74b958b45b88885ecea8a172f428bf535b774e7060000000032ffefffffffff0332ffefffffffff03160b120058893acc8b6622dfd210f7d00aed97a43b364da4073b791c23b1e8b4b4c7943bf5b3b4c62c0108b391351a43f421c008fe77374e79b9bbcb3e7916f063083f936585c1793d0e887c537be5d70a4014216fe9d1c8c8e92208dfe167773c0da8b6d012390b8608ec8783a6ba3a2deeb03606a7133d6b8b0f11a7d458b210f03421f3b97cfdb73fdbd24ecca58568ca637aa6dbce271fd5d49a3d6ae63410365c38bda1dc73e683c0ad03b9e28e1999c3b590e188420eb0104087a8fe58de9ebb1f1daacfdc1d1492b00287b3dd2972eb76623d6f362b220d871d46eaae00ff594ab37a5a313c436838026b0052c5ce30bd4c1668b0165f935a0fed4f9b1921de6ceb8a347ba9fff4a9cb20762a"); Transaction commitmentTx = new Transaction(PARAMS, txdata); FinalCommitmentTxPayload payload = (FinalCommitmentTxPayload)commitmentTx.getExtraPayloadObject(); assertEquals(329, payload.getMessageSize()); assertEquals(1, payload.getVersion()); assertEquals(79692, payload.height); FinalCommitment commitment = payload.commitment; assertEquals(1, commitment.getVersion()); assertEquals(1, commitment.llmqType); assertEquals(Sha256Hash.wrap("0000000006e774b735f58b422f178aeaec8588b8458b954ba7e81c87a32210ae"), commitment.quorumHash); assertEquals(49, commitment.countSigners()); assertEquals(49, commitment.countValidMembers()); BLSPublicKey quorumPublickKey = new BLSPublicKey(PARAMS, Utils.HEX.decode("160b120058893acc8b6622dfd210f7d00aed97a43b364da4073b791c23b1e8b4b4c7943bf5b3b4c62c0108b391351a43"), 0); assertEquals(quorumPublickKey, commitment.quorumPublicKey); UnsafeByteArrayOutputStream bos = new UnsafeByteArrayOutputStream(txdata.length); assertArrayEquals(commitmentTx.getExtraPayload(), payload.getPayload()); commitmentTx.setExtraPayload(payload.getPayload()); commitmentTx.bitcoinSerialize(bos); assertArrayEquals(txdata, bos.toByteArray()); }
public FinalCommitment(NetworkParameters params, byte [] payload, int offset) { super(params, payload, offset); }
FinalCommitment extends SpecialTxPayload { public FinalCommitment(NetworkParameters params, byte [] payload, int offset) { super(params, payload, offset); } }
FinalCommitment extends SpecialTxPayload { public FinalCommitment(NetworkParameters params, byte [] payload, int offset) { super(params, payload, offset); } FinalCommitment(NetworkParameters params, byte [] payload, int offset);  FinalCommitment(NetworkParameters params, LLMQParameters llmqParameters, Sha256Hash quorumHash);  FinalCommitment(NetworkParameters params, Transaction tx); }
FinalCommitment extends SpecialTxPayload { public FinalCommitment(NetworkParameters params, byte [] payload, int offset) { super(params, payload, offset); } FinalCommitment(NetworkParameters params, byte [] payload, int offset);  FinalCommitment(NetworkParameters params, LLMQParameters llmqParameters, Sha256Hash quorumHash);  FinalCommitment(NetworkParameters params, Transaction tx); int getCurrentVersion(); String toString(); @Override Transaction.Type getType(); @Override String getName(); @Override JSONObject toJson(); int countSigners(); int countValidMembers(); boolean verify(ArrayList<Masternode> members, boolean checkSigs); boolean isNull(); boolean verifyNull(); boolean verifySizes(LLMQParameters llmqParameters); Sha256Hash getHash(); Sha256Hash getQuorumHash(); int getLlmqType(); BLSPublicKey getQuorumPublicKey(); Sha256Hash getQuorumVvecHash(); BLSSignature getMembersSignature(); BLSSignature getQuorumSignature(); ArrayList<Boolean> getSigners(); ArrayList<Boolean> getValidMembers(); }
FinalCommitment extends SpecialTxPayload { public FinalCommitment(NetworkParameters params, byte [] payload, int offset) { super(params, payload, offset); } FinalCommitment(NetworkParameters params, byte [] payload, int offset);  FinalCommitment(NetworkParameters params, LLMQParameters llmqParameters, Sha256Hash quorumHash);  FinalCommitment(NetworkParameters params, Transaction tx); int getCurrentVersion(); String toString(); @Override Transaction.Type getType(); @Override String getName(); @Override JSONObject toJson(); int countSigners(); int countValidMembers(); boolean verify(ArrayList<Masternode> members, boolean checkSigs); boolean isNull(); boolean verifyNull(); boolean verifySizes(LLMQParameters llmqParameters); Sha256Hash getHash(); Sha256Hash getQuorumHash(); int getLlmqType(); BLSPublicKey getQuorumPublicKey(); Sha256Hash getQuorumVvecHash(); BLSSignature getMembersSignature(); BLSSignature getQuorumSignature(); ArrayList<Boolean> getSigners(); ArrayList<Boolean> getValidMembers(); static final int CURRENT_VERSION; }