Here you can find the source of serializeModexpResponse(BigInteger response)
static String serializeModexpResponse(BigInteger response)
//package com.java2s; /*/*from w w w. j a v a2 s . c o m*/ * Copyright 2016 Pascal Mainini * Licensed under MIT license, see included file LICENSE or * http://opensource.org/licenses/MIT */ import java.math.BigInteger; public class Main { static String serializeModexpResponse(BigInteger response) { return String.format("{\"r\":\"%s\"}", response.toString(16)); } }