Package org.web3j.crypto
Class AuthorizationTuple
java.lang.Object
org.web3j.crypto.AuthorizationTuple
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationTuple(BigInteger chainId, String address, BigInteger nonce, BigInteger yParity, BigInteger r, BigInteger s) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AuthorizationTuplefrom(long chainId, String address, BigInteger nonce, Credentials credentials) Convenience overload taking alongchainId andCredentials.static AuthorizationTuplefrom(long chainId, String address, BigInteger nonce, ECKeyPair keyPair) Convenience overload taking alongchainId.static AuthorizationTuplefrom(BigInteger chainId, String address, BigInteger nonce, Credentials credentials) Convenience overload takingCredentials.static AuthorizationTuplefrom(BigInteger chainId, String address, BigInteger nonce, ECKeyPair keyPair) Signs an EIP-7702 authorization with the given key pair and returns the populated (signed) tuple.getNonce()getR()getS()inthashCode()
-
Constructor Details
-
AuthorizationTuple
public AuthorizationTuple(BigInteger chainId, String address, BigInteger nonce, BigInteger yParity, BigInteger r, BigInteger s)
-
-
Method Details
-
from
public static AuthorizationTuple from(BigInteger chainId, String address, BigInteger nonce, ECKeyPair keyPair) Signs an EIP-7702 authorization with the given key pair and returns the populated (signed) tuple. Convenience wrapper aroundSign.signAuthorization(BigInteger, String, BigInteger, ECKeyPair).- Parameters:
chainId- chain id the authorization is bound to (0= valid on any chain)address- 20-byte delegation target address (0x-prefixed)nonce- authority account nonce the authorization is valid forkeyPair- the authority's key pair- Returns:
- a signed authorization tuple
-
from
public static AuthorizationTuple from(BigInteger chainId, String address, BigInteger nonce, Credentials credentials) Convenience overload takingCredentials. -
from
public static AuthorizationTuple from(long chainId, String address, BigInteger nonce, ECKeyPair keyPair) Convenience overload taking alongchainId. -
from
public static AuthorizationTuple from(long chainId, String address, BigInteger nonce, Credentials credentials) Convenience overload taking alongchainId andCredentials. -
getChainId
-
getAddress
-
getNonce
-
getYParity
-
getR
-
getS
-
equals
-
hashCode
public int hashCode()
-