0.0.3 • Published 3 years ago

capacitor-esus-plugin v0.0.3

Weekly downloads
-
License
GPL
Repository
gitlab
Last release
3 years ago

capacitor-esus-plugin

All core / native functions needed for working with the Esus Transaction Protocol on smartphone.

Install

npm install capacitor-esus-plugin
npx cap sync

API

generateUserKeys()

generateUserKeys() => Promise<{ csr: string; signatureKey: string; transactionKey: string; hmacKey: string; }>

Returns: Promise<{ csr: string; signatureKey: string; transactionKey: string; hmacKey: string; }>


setConnectionCertificate(...)

setConnectionCertificate(options: { certificate: string; }) => Promise<{ value: boolean; }>
ParamType
options{ certificate: string; }

Returns: Promise<{ value: boolean; }>


getConnectionCertificate()

getConnectionCertificate() => Promise<{ value: string; }>

Returns: Promise<{ value: string; }>


transactionInit(...)

transactionInit(options: { amount: number; merchantId: string; }) => Promise<{ value: string; }>
ParamType
options{ amount: number; merchantId: string; }

Returns: Promise<{ value: string; }>


transactionSign(...)

transactionSign(options: { merchantId: string; amount: number; transactionKey: string; }) => Promise<{ encryptedVector: string; message: string; encryptedWallet: string; salt: number; }>
ParamType
options{ merchantId: string; amount: number; transactionKey: string; }

Returns: Promise<{ encryptedVector: string; message: string; encryptedWallet: string; salt: number; }>


transactionSignTemp(...)

transactionSignTemp(options: { message: string; }) => Promise<{ signature: string; }>
ParamType
options{ message: string; }

Returns: Promise<{ signature: string; }>


transactionCheckByMerchant(...)

transactionCheckByMerchant(options: { vector: string; encryptedVector: string; transactionKey: string; salt: number; }) => Promise<{ value: boolean; }>
ParamType
options{ vector: string; encryptedVector: string; transactionKey: string; salt: number; }

Returns: Promise<{ value: boolean; }>


getSalt()

getSalt() => Promise<{ value: number; }>

Returns: Promise<{ value: number; }>


get(...)

get(options: { key: string; }) => Promise<{ value: string; }>
ParamType
options{ key: string; }

Returns: Promise<{ value: string; }>


set(...)

set(options: { key: string; value: string; }) => Promise<{ value: boolean; }>
ParamType
options{ key: string; value: string; }

Returns: Promise<{ value: boolean; }>


remove(...)

remove(options: { key: string; }) => Promise<{ value: boolean; }>
ParamType
options{ key: string; }

Returns: Promise<{ value: boolean; }>


clear()

clear() => Promise<{ value: boolean; }>

Returns: Promise<{ value: boolean; }>


0.0.3

3 years ago

0.0.2

4 years ago

0.0.1-rc2

4 years ago

0.0.1

4 years ago