MCPcopy Index your code
hub / github.com/chain/Core / getSignerClient

Method getSignerClient

sdk/java/src/main/java/com/chain/api/MockHsm.java:28–38  ·  view source on GitHub ↗

Returns a new client that knows how to make requests to the mock HSM. @param client client object that makes request to the core @return new client object @throws BadURLException

(Client client)

Source from the content-addressed store, hash-verified

26 * @throws BadURLException
27 */
28 public static Client getSignerClient(Client client) throws ChainException {
29 try {
30 List<URL> urls = new ArrayList<>();
31 for (URL url : client.urls()) {
32 urls.add(new URL(url.toString() + "/mockhsm"));
33 }
34 return new Client.Builder(client).setURLs(urls).build();
35 } catch (MalformedURLException e) {
36 throw new BadURLException(e.getMessage());
37 }
38 }
39
40 /**
41 * A class representing an extended public key. An instance of this class

Callers 15

mainMethod · 0.95
loadKeysMethod · 0.95
loadKeysMethod · 0.95
testTransactionQueryMethod · 0.95
testBalanceQueryMethod · 0.95
testSignTransactionMethod · 0.95
setupMethod · 0.95
testBasicTransactionMethod · 0.95
testBatchTransactionMethod · 0.95
testAtomicSwapMethod · 0.95

Calls 6

urlsMethod · 0.80
addMethod · 0.80
setURLsMethod · 0.80
toStringMethod · 0.65
buildMethod · 0.45
getMessageMethod · 0.45

Tested by 12

testTransactionQueryMethod · 0.76
testBalanceQueryMethod · 0.76
testSignTransactionMethod · 0.76
setupMethod · 0.76
testBasicTransactionMethod · 0.76
testBatchTransactionMethod · 0.76
testAtomicSwapMethod · 0.76
testReceiversMethod · 0.76
testUnspentOutputsMethod · 0.76