object EthSignature
- Alphabetic
- By Inheritance
- EthSignature
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class Basic(v: SignatureV, r: SignatureR, s: SignatureS) extends EthSignature with Product with Serializable
- final case class WithChainId(v: SignatureWithChainIdV, r: SignatureR, s: SignatureS) extends EthSignature with Product with Serializable
Value Members
- def apply(v: UnsignedBigInt, r: SignatureR, s: SignatureS): EthSignature
-
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
-
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
- object Basic extends Serializable
-
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