Class Util


  • public class Util
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.security.SecureRandom SECURE_RANDOM  
    • Constructor Summary

      Constructors 
      Constructor Description
      Util()  
    • Field Detail

      • SECURE_RANDOM

        public static final java.security.SecureRandom SECURE_RANDOM
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • keccak256

        public static byte[] keccak256​(byte[] input)
      • generateRandom32Bytes

        public static byte[] generateRandom32Bytes()
      • generateRandom32BytesHex

        public static java.lang.String generateRandom32BytesHex()
      • start0x

        public static java.lang.String start0x​(java.lang.String input)
      • remove0x

        public static java.lang.String remove0x​(java.lang.String input)
      • isValidHex

        public static void isValidHex​(java.lang.String input)
      • bigIntegerToBytes32

        public static byte[] bigIntegerToBytes32​(java.math.BigInteger input)