Developer Guide

utils/signing-utils

Index

Interfaces

Functions

Functions

chainIdTransformationForSigning

chainIdTransformationForSigning(chainId: number): number

Defined in contractkit/src/utils/signing-utils.ts:27

Parameters:

Name

Type

chainId

number

Returns: number

encodeTransaction

encodeTransaction(rlpEncoded: RLPEncodedTx, signature: object): Promise‹EncodedTransaction›

Defined in contractkit/src/utils/signing-utils.ts:120

Parameters:

rlpEncoded: RLPEncodedTx

signature: object

Name

Type

r

Buffer

s

Buffer

v

number

Returns: Promise‹EncodedTransaction›

getHashFromEncoded

getHashFromEncoded(rlpEncode: string): string

Defined in contractkit/src/utils/signing-utils.ts:31

Parameters:

Name

Type

rlpEncode

string

Returns: string

recoverMessageSigner

recoverMessageSigner(signingDataHex: string, signedData: string): string

Defined in contractkit/src/utils/signing-utils.ts:188

Parameters:

Name

Type

signingDataHex

string

signedData

string

Returns: string

recoverTransaction

recoverTransaction(rawTx: string): [Tx, string]

Defined in contractkit/src/utils/signing-utils.ts:156

Parameters:

Name

Type

rawTx

string

Returns: [Tx, string]

rlpEncodedTx

rlpEncodedTx(tx: Tx): RLPEncodedTx

Defined in contractkit/src/utils/signing-utils.ts:69

Parameters:

Name

Type

tx

Tx

Returns: RLPEncodedTx

verifyEIP712TypedDataSigner

verifyEIP712TypedDataSigner(typedData: EIP712TypedData, signedData: string, expectedAddress: string): boolean

Defined in contractkit/src/utils/signing-utils.ts:198

Parameters:

Name

Type

typedData

EIP712TypedData

signedData

string

expectedAddress

string

Returns: boolean