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
-
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
- def apply(v: UnsignedBigInt, r: SignatureR, s: SignatureS): EthSignature
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- 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