Packages

object EthSignature

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

Type Members

  1. final case class Basic(v: SignatureV, r: SignatureR, s: SignatureS) extends EthSignature with Product with Serializable
  2. final case class WithChainId(v: SignatureWithChainIdV, r: SignatureR, s: SignatureS) extends EthSignature with Product with Serializable

Value Members

  1. def apply(v: UnsignedBigInt, r: SignatureR, s: SignatureS): EthSignature
  2. def fromBytesRSV(seq: Seq[Byte]): EthSignature

    Determines whether this is a signature with or without EIP-155 Chain ID, and parses accordingly.

    Determines whether this is a signature with or without EIP-155 Chain ID, and parses accordingly. Since in general (including those with EIP-155 Chain IDs) signatures are not fixed length, the entire array is interpreted as the signature.

    For more general parsing of fixed-length signatures without Chain IDs, see the methods of EthSignature.Basic

  3. def fromBytesRSV(arr: Array[Byte]): EthSignature

    Determines whether this is a signature with or without EIP-155 Chain ID, and parses accordingly.

    Determines whether this is a signature with or without EIP-155 Chain ID, and parses accordingly. Since in general (including those with EIP-155 Chain IDs) signatures are not fixed length, the entire array is interpreted as the signature.

    For more general parsing of fixed-length signatures without Chain IDs, see the methods of EthSignature.Basic

  4. object Basic extends Serializable
  5. object WithChainId extends Serializable

    Represents an EIP 155 signature with embedded Chain ID

    Represents an EIP 155 signature with embedded Chain ID

    There is no byte-length limit on Vs with Chain IDs, so these cannot be parsed as fixed-length objects, and can only be parsed in RSV format (interpreting all bytes after the first 64 as Chain-ID-embedding V values). If such a signature is embedded in a longer byte string, you'll have to slice it out first.

    See https://eips.ethereum.org/EIPS/eip-155