trait CryptoBytesUtil extends AnyRef

Created by chris on 2/26/16.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CryptoBytesUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def addPadding(paddingNeeded: Int, hex: String): String

    Adds the amount padding bytes needed to fix the size of the hex string for instance, ints are required to be 4 bytes.

    Adds the amount padding bytes needed to fix the size of the hex string for instance, ints are required to be 4 bytes. If the number is just 1 it will only take 1 byte. We need to pad the byte with an extra 3 bytes so the result is 00000001 instead of just 1.

    Annotations
    @inline()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def bitVectorToBytes(bits: BitVector): ByteVector

    Converts a sequence of bit vectors to a sequence of bytes

  7. def byteToBitVector(byte: Byte): BitVector

    Converts a byte to a bit vector representing that byte

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. def decodeHex(hex: String): ByteVector
  10. def encodeHex(bigInt: BigInt): String
  11. def encodeHex(short: Short): String
  12. def encodeHex(int: Int): String
  13. def encodeHex(long: Long): String

    Encodes a long number to a hex string, pads it with an extra '0' char if the hex string is an odd amount of characters.

  14. def encodeHex(byte: Byte): String
  15. def encodeHex(bytes: ByteVector): String
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. def flipEndianness(bytes: ByteVector): String

    Flips the endianness of the given sequence of bytes.

  20. def flipEndianness(hex: String): String

    Flips the endianness of the give hex string.

  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hexToByte(hex: String): Byte

    Converts a two character hex string to its byte representation.

  24. def isBitSet(byte: Byte, index: Int): Boolean

    Checks if the bit at the given index is set

  25. def isHex(str: String): Boolean

    Tests if a given string is a hexadecimal string.

  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. final def toByteVector[T <: NetworkElement](h: Seq[T]): ByteVector
    Annotations
    @inline()
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped