Signature verification
All prices saved in Limestone have a signature, therefore you can always verify that the price data has been submitted by the trusted provider.
To enable signature verification you can set
verifySignature
option to true
in getPrice
, getHistoricalPrice
or getAllPrices
methods. In case of invalid signature there will be thrown an error.const price = await limestone.getPrice("AR", {
verifySignature: true,
});
console.log(price.value);
Last modified 2yr ago