MCPcopy Index your code
hub / github.com/ccxt/ccxt / toBytes

Method toBytes

java/lib/src/main/java/io/github/ccxt/base/Crypto.java:495–501  ·  view source on GitHub ↗
(Object request)

Source from the content-addressed store, hash-verified

493 }
494
495 private static byte[] toBytes(Object request) {
496 Object v = (request);
497 if (v == null) return new byte[0];
498 if (v instanceof byte[] b) return b;
499 if (v instanceof String s) return s.getBytes(StandardCharsets.UTF_8);
500 return String.valueOf(v).getBytes(StandardCharsets.UTF_8);
501 }
502
503 private static BigInteger toPrivateKey(Object secret) {
504 Object v = (secret);

Callers 3

EcdsaMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected