Signer Configurations

Signers

NOTE: Signer Configurations are used when you are creating Payments. For more information on how to create payment visit the documentation.

When you are creating payments in LimePay, you have to provide an Authorization Signature that is being send to the Escrow Contract. The purpose of the signature is to prove to the Escrow Contract that you (as dApp) have authorized the funding of a shopper.

LimePay SDKs are compiling and signing the signature behind the scenes, however you still have to provide the private key that will actually sign the authorization. There are several ways you can provide the private key:

KeyStore file

You can use encrypted keystore file:

const signerConfig = {
encryptedWallet: {
jsonWallet: keystore, // JSON keystore encrypted Wallet
password: password
}
}

Private Key

You can use plain private key:

const signerConfig = {
privateKey: 'private_key_here'
}

Decrypted Wallet

You can use decrypted Wallet (instance of ethers.js Wallet):

const signerConfig = {
decryptedWallet: wallet // Ethers decrypted wallet
}

Mnemonic

You can use mnemonic:

const signerConfig = {
mnemonic: {
mnemonic: 'YOUR_MNEMONIC_HERE',
nonEnglishLocaleWorldList: null // Optional
}
}