Package com.swmansion.starknet.signer
Interface Signer
-
- All Implemented Interfaces:
public interface Signer
Transaction signer.
Implementers of this interface provide methods for signing transactions to be sent to the Starknet.
-
-
Method Summary
Modifier and Type Method Description abstract List<Felt>
signTransaction(Transaction transaction)
Sign a transaction abstract List<Felt>
signTypedData(TypedData typedData, Felt accountAddress)
Sign TypedData. abstract Felt
getPublicKey()
Public key used by a signer. -
-
Method Detail
-
signTransaction
abstract List<Felt> signTransaction(Transaction transaction)
Sign a transaction
- Parameters:
transaction
- a transaction to be signed
-
signTypedData
abstract List<Felt> signTypedData(TypedData typedData, Felt accountAddress)
Sign TypedData.
- Parameters:
typedData
- TypedData instance to signaccountAddress
- Account address used in the TypedData hash calculation
-
getPublicKey
abstract Felt getPublicKey()
Public key used by a signer.
-
-
-
-