@Test(expected = IllegalArgumentException.class) public void testSignatureParamCreationFromTooShortString() { String sig = "d8485d4771e9112cca6ac7e6b75fc52585a2e7ee9a702db4a39dfad0f888ea6c22b6185ceab" + "38d8322b67737a5574d8b63f4e27b0d208f3f9efcdbf56093f2"; ContractParameter.signature(sig); }
public static ContractParameter signature(String signatureHexString) { if (!Numeric.isValidHexString(signatureHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return signature(Numeric.hexStringToByteArray(signatureHexString)); }
ContractParameter { public static ContractParameter signature(String signatureHexString) { if (!Numeric.isValidHexString(signatureHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return signature(Numeric.hexStringToByteArray(signatureHexString)); } }
ContractParameter { public static ContractParameter signature(String signatureHexString) { if (!Numeric.isValidHexString(signatureHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return signature(Numeric.hexStringToByteArray(signatureHexString)); } protected  ContractParameter();  ContractParameter(String name, ContractParameterType paramType, Object value); protected  ContractParameter(String name, ContractParameterType paramType); private  ContractParameter(ContractParameterType paramType, Object value); }
ContractParameter { public static ContractParameter signature(String signatureHexString) { if (!Numeric.isValidHexString(signatureHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return signature(Numeric.hexStringToByteArray(signatureHexString)); } protected  ContractParameter();  ContractParameter(String name, ContractParameterType paramType, Object value); protected  ContractParameter(String name, ContractParameterType paramType); private  ContractParameter(ContractParameterType paramType, Object value); static ContractParameter string(String value); static ContractParameter array(List<ContractParameter> params); static ContractParameter array(ContractParameter... params); static ContractParameter byteArray(byte[] byteArray); static ContractParameter byteArray(String hexString); static ContractParameter byteArrayFromString(String value); static ContractParameter signature(String signatureHexString); static ContractParameter signature(byte[] signature); static ContractParameter bool(boolean bool); static ContractParameter integer(int integer); static ContractParameter integer(BigInteger integer); static ContractParameter hash160(ScriptHash hash); static ContractParameter hash256(String hashHexString); static ContractParameter hash256(byte[] hash); static ContractParameter publicKey(byte[] publicKey); String getParamName(); ContractParameterType getParamType(); Object getValue(); @Override boolean equals(Object o); @Override int hashCode(); }
ContractParameter { public static ContractParameter signature(String signatureHexString) { if (!Numeric.isValidHexString(signatureHexString)) { throw new IllegalArgumentException("Argument is not a valid hex number"); } return signature(Numeric.hexStringToByteArray(signatureHexString)); } protected  ContractParameter();  ContractParameter(String name, ContractParameterType paramType, Object value); protected  ContractParameter(String name, ContractParameterType paramType); private  ContractParameter(ContractParameterType paramType, Object value); static ContractParameter string(String value); static ContractParameter array(List<ContractParameter> params); static ContractParameter array(ContractParameter... params); static ContractParameter byteArray(byte[] byteArray); static ContractParameter byteArray(String hexString); static ContractParameter byteArrayFromString(String value); static ContractParameter signature(String signatureHexString); static ContractParameter signature(byte[] signature); static ContractParameter bool(boolean bool); static ContractParameter integer(int integer); static ContractParameter integer(BigInteger integer); static ContractParameter hash160(ScriptHash hash); static ContractParameter hash256(String hashHexString); static ContractParameter hash256(byte[] hash); static ContractParameter publicKey(byte[] publicKey); String getParamName(); ContractParameterType getParamType(); Object getValue(); @Override boolean equals(Object o); @Override int hashCode();  }