Package com.swmansion.starknet.signer
Class StarkCurveSigner
-
- All Implemented Interfaces:
-
com.swmansion.starknet.signer.Signer
public final class StarkCurveSigner implements Signer
Signer implementing a stark curve signature (default signature used on Starknet).
-
-
Constructor Summary
Constructors Constructor Description StarkCurveSigner(Felt privateKey)
-
Method Summary
Modifier and Type Method Description Felt
getPublicKey()
Public key used by a signer. List<Felt>
signTransaction(Transaction transaction)
List<Felt>
signTypedData(TypedData typedData, Felt accountAddress)
-
-
Constructor Detail
-
StarkCurveSigner
StarkCurveSigner(Felt privateKey)
- Parameters:
privateKey
- a private key to be used by this signer
-
-
Method Detail
-
getPublicKey
Felt getPublicKey()
Public key used by a signer.
-
signTransaction
List<Felt> signTransaction(Transaction transaction)
- Parameters:
transaction
- a transaction to be signed
-
signTypedData
List<Felt> signTypedData(TypedData typedData, Felt accountAddress)
- Parameters:
typedData
- TypedData instance to signaccountAddress
- Account address used in the TypedData hash calculation
-
-
-
-