Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
liquidity-invoice-generation
Advanced tools
Invoice generation system compatible with Liquidity Network
Invoice generation system compatible with Liquidity Network
IMPORTANT Requires web3-utils
and bignumber.js
dependencies
const invoice: Invoice = createInvoice({
network: 4, // Network id
publicKey: '0xE6987CD613Dfda0995A95b3E6acBAbECecd41376', // public key of recipient
// Generate unique id for invoice, payment by this invoice can be tracked by nonce which is derived by
// invoice's id and amount. If id is not generated, then the invoice can be used multiple times.
generateId: true,
// Address of the operator, if not defined, on-chain invoice will be generated.
operatorAddress: '0x4FED1fC4144c223aE3C1553be203cDFcbD38C581',
tokenAddress: '0x4FED1fC4144c223aE3C1553be203cDFcbD38C581', // Token address, if not defined, operator address applied.
amount: '12000000000000', // Optional. BigNumber or number also can be used.
})
const encodedInvoice: string = encodeInvoice(invoice) // Used to generate QR code
const decodedInvoice: Invoice = decodeInvoice(encodedInvoice) // Decode invoice after QR code scanning
// Note: Here, decodedInvoice equals invoice
encodedInvoice
into a QR code generator as plain text. (i.g: user https://www.the-qrcode-generator.com or a library) to be scanned by the user.decodedInvoice
into the sendTransfer
function of the NOCUSManager.The typical merchant needs to track the completion of payments by its customer, to do so we use generateId
.
generateId
set to true
and save the nonce in the invoice object invoice.nonce
in the merchant server db. It is important to be done server side otherwise the client can manipulate the value.encodeInvoice
function and send it to the client front-end to display the QR codeFAQs
Invoice generation system compatible with Liquidity Network
The npm package liquidity-invoice-generation receives a total of 3 weekly downloads. As such, liquidity-invoice-generation popularity was classified as not popular.
We found that liquidity-invoice-generation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.