trait CryptoBytesUtil extends AnyRef
Created by chris on 2/26/16.
- Alphabetic
- By Inheritance
- CryptoBytesUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bitVectorToBytes(bits: BitVector): ByteVector
Converts a sequence of bit vectors to a sequence of bytes
- def byteToBitVector(byte: Byte): BitVector
Converts a byte to a bit vector representing that byte
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decodeHex(hex: String): ByteVector
- def encodeHex(bigInt: BigInt): String
- def encodeHex(short: Short): String
- def encodeHex(int: Int): String
- 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.
- def encodeHex(byte: Byte): String
- def encodeHex(bytes: ByteVector): String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flipEndianness(bytes: ByteVector): String
Flips the endianness of the given sequence of bytes.
- def flipEndianness(hex: String): String
Flips the endianness of the give hex string.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hexToByte(hex: String): Byte
Converts a two character hex string to its byte representation.
- def isBitSet(byte: Byte, index: Int): Boolean
Checks if the bit at the given index is set
- def isHex(str: String): Boolean
Tests if a given string is a hexadecimal string.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteVector[T <: NetworkElement](h: Seq[T]): ByteVector
- Annotations
- @inline()
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()