@Test public void Test(){ try { MultiSignTxSignature multiSignTxSignature = createMultiSignTxSignature(); byte[] bytes = multiSignTxSignature.serialize(); MultiSignTxSignature news = new MultiSignTxSignature(); news.parse(new NulsByteBuffer(bytes)); System.out.println(news); } catch (IOException e) { e.printStackTrace(); } catch (NulsException e) { e.printStackTrace(); } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.m = byteBuffer.readByte(); long count = byteBuffer.readVarInt(); if (0 < count) { List<byte[]> pubKeyList = new ArrayList<>(); for (int i = 0; i < count; i++) { pubKeyList.add(byteBuffer.readByLengthByte()); } this.pubKeyList = pubKeyList; } super.parse(byteBuffer); }
MultiSignTxSignature extends TransactionSignature { @Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.m = byteBuffer.readByte(); long count = byteBuffer.readVarInt(); if (0 < count) { List<byte[]> pubKeyList = new ArrayList<>(); for (int i = 0; i < count; i++) { pubKeyList.add(byteBuffer.readByLengthByte()); } this.pubKeyList = pubKeyList; } super.parse(byteBuffer); } }
MultiSignTxSignature extends TransactionSignature { @Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.m = byteBuffer.readByte(); long count = byteBuffer.readVarInt(); if (0 < count) { List<byte[]> pubKeyList = new ArrayList<>(); for (int i = 0; i < count; i++) { pubKeyList.add(byteBuffer.readByLengthByte()); } this.pubKeyList = pubKeyList; } super.parse(byteBuffer); }  }
MultiSignTxSignature extends TransactionSignature { @Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.m = byteBuffer.readByte(); long count = byteBuffer.readVarInt(); if (0 < count) { List<byte[]> pubKeyList = new ArrayList<>(); for (int i = 0; i < count; i++) { pubKeyList.add(byteBuffer.readByLengthByte()); } this.pubKeyList = pubKeyList; } super.parse(byteBuffer); }  @Override void parse(NulsByteBuffer byteBuffer); @Override int size(); void addPubkey(byte[] pubkey); List<P2PHKSignature> getValidSignature(); byte getM(); void setM(byte m); List<byte[]> getPubKeyList(); void setPubKeyList(List<byte[]> pubKeyList); }
MultiSignTxSignature extends TransactionSignature { @Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.m = byteBuffer.readByte(); long count = byteBuffer.readVarInt(); if (0 < count) { List<byte[]> pubKeyList = new ArrayList<>(); for (int i = 0; i < count; i++) { pubKeyList.add(byteBuffer.readByLengthByte()); } this.pubKeyList = pubKeyList; } super.parse(byteBuffer); }  @Override void parse(NulsByteBuffer byteBuffer); @Override int size(); void addPubkey(byte[] pubkey); List<P2PHKSignature> getValidSignature(); byte getM(); void setM(byte m); List<byte[]> getPubKeyList(); void setPubKeyList(List<byte[]> pubKeyList);  }