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.

ParameterTypeDescription
messagebyte[]Message to sign.
addPrefixbooleanIf true then add secure prefix.

signTypedData

Signs typed struct using ethereum private key by EIP-712 signature standard.

ParameterTypeDescription
domainEip712DomainEIP712 domain.
typedDataSEIP712 structure.

Made with ❤️ by the ZKsync Community