Java API
EthSigner
Overview of account functionalities in the zksync2-java
Provides support for an EIP712 transaction. The methods of this class are mostly used internally.
getDomain
Returns the EIP712 domain.
signMessage
Signs typed struct using ethereum private key by EIP-712 signature standard.
Parameter | Type | Description |
---|---|---|
message | byte[] | Message to sign. |
addPrefix | boolean | If true then add secure prefix. |
signTypedData
Signs typed struct using ethereum private key by EIP-712 signature standard.
Parameter | Type | Description |
---|---|---|
domain | Eip712Domain | EIP712 domain. |
typedData | S | EIP712 structure. |