@Test public void getScriptHashFromWitness2() { byte[] invocationScript = Numeric.hexStringToByteArray( "4051c2e6e2993c6feb43383131ed2091f4953747d3e16ecad752cdd90203a992dea0273e98c8cd09e9bfcf2dab22ce843429cdf0fcb9ba4ac93ef1aeef40b20783"); byte[] verificationScript = Numeric.hexStringToByteArray( "21031d8e1630ce640966967bc6d95223d21f44304133003140c3b52004dc981349c9ac"); Witness witness = new Witness(invocationScript, verificationScript); assertArrayEquals( Numeric.hexStringToByteArray("35b20010db73bf86371075ddfba4e6596f1ff35d"), witness.getScriptHash().toArray() ); }
public ScriptHash getScriptHash() { return scriptHash; }
Witness extends NeoSerializable { public ScriptHash getScriptHash() { return scriptHash; } }
Witness extends NeoSerializable { public ScriptHash getScriptHash() { return scriptHash; } Witness();  Witness(byte[] invocationScript, byte[] verificationScript);  Witness(InvocationScript invocationScript, VerificationScript verificationScript);  Witness(byte[] invocationScript, ScriptHash scriptHash); }
Witness extends NeoSerializable { public ScriptHash getScriptHash() { return scriptHash; } Witness();  Witness(byte[] invocationScript, byte[] verificationScript);  Witness(InvocationScript invocationScript, VerificationScript verificationScript);  Witness(byte[] invocationScript, ScriptHash scriptHash); static Witness createWitness(byte[] messageToSign, ECKeyPair keyPair); static Witness createMultiSigWitness(int signingThreshold,
                                                  List<SignatureData> signatures,
                                                  List<ECPublicKey> publicKeys); static Witness createMultiSigWitness(List<SignatureData> signatures,
                                                  VerificationScript verificationScript); InvocationScript getInvocationScript(); VerificationScript getVerificationScript(); ScriptHash getScriptHash(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override void deserialize(BinaryReader reader); @Override void serialize(BinaryWriter writer); @Override int getSize(); }
Witness extends NeoSerializable { public ScriptHash getScriptHash() { return scriptHash; } Witness();  Witness(byte[] invocationScript, byte[] verificationScript);  Witness(InvocationScript invocationScript, VerificationScript verificationScript);  Witness(byte[] invocationScript, ScriptHash scriptHash); static Witness createWitness(byte[] messageToSign, ECKeyPair keyPair); static Witness createMultiSigWitness(int signingThreshold,
                                                  List<SignatureData> signatures,
                                                  List<ECPublicKey> publicKeys); static Witness createMultiSigWitness(List<SignatureData> signatures,
                                                  VerificationScript verificationScript); InvocationScript getInvocationScript(); VerificationScript getVerificationScript(); ScriptHash getScriptHash(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override void deserialize(BinaryReader reader); @Override void serialize(BinaryWriter writer); @Override int getSize();  }