@celo/wallet-hsm-aws › "aws-hsm-signer" › AwsHsmSigner
Class: AwsHsmSigner
Hierarchy
- AwsHsmSigner
Implements
- Signer
Index
Constructors
Methods
Constructors
constructor
+ new AwsHsmSigner(kms
: KMS, keyId
: string, publicKey
: BigNumber): AwsHsmSigner
Defined in wallet-hsm-aws/src/aws-hsm-signer.ts:24
Parameters:
Name | Type |
---|---|
kms |
KMS |
keyId |
string |
publicKey |
BigNumber |
Returns: AwsHsmSigner
Methods
computeSharedSecret
▸ computeSharedSecret(_publicKey
: string): Promise‹Buffer‹››
Defined in wallet-hsm-aws/src/aws-hsm-signer.ts:115
Parameters:
Name | Type |
---|---|
_publicKey |
string |
Returns: Promise‹Buffer‹››
decrypt
▸ decrypt(_ciphertext
: Buffer): Promise‹Buffer‹››
Defined in wallet-hsm-aws/src/aws-hsm-signer.ts:109
Parameters:
Name | Type |
---|---|
_ciphertext |
Buffer |
Returns: Promise‹Buffer‹››
getNativeKey
▸ getNativeKey(): string
Defined in wallet-hsm-aws/src/aws-hsm-signer.ts:105
Returns: string
signPersonalMessage
▸ signPersonalMessage(data
: string): Promise‹Signature›
Defined in wallet-hsm-aws/src/aws-hsm-signer.ts:82
Parameters:
Name | Type |
---|---|
data |
string |
Returns: Promise‹Signature›
signTransaction
▸ signTransaction(addToV
: number, encodedTx
: RLPEncodedTx): Promise‹Signature›
Defined in wallet-hsm-aws/src/aws-hsm-signer.ts:70
Parameters:
Name | Type |
---|---|
addToV |
number |
encodedTx |
RLPEncodedTx |
Returns: Promise‹Signature›
signTypedData
▸ signTypedData(typedData
: EIP712TypedData): Promise‹Signature›
Defined in wallet-hsm-aws/src/aws-hsm-signer.ts:94
Parameters:
Name | Type |
---|---|
typedData |
EIP712TypedData |
Returns: Promise‹Signature›