Verifying Stork Prices On-Chain

EVM Chains

Stork for EVM is live in the Tokyo production instance with Stork publishers now providing EVM-compatible signatures.

Stork price signatures are generated the following way (web3py):

concat_hash = keccak(encode_abi_packed(['address','string','uint256','uint256'], [oracle_pubkey, asset_pair, timestamp, price]))
evm_packed_message_hash = encode_defunct(concat_hash)
w3.eth.account.sign_message(evm_packed_hash, key)


The prices and signatures provided by Stork are compatible with StarkEx out of the box; your responsibility is to quantize them consistent with your instance requirements, and ensure that the external asset names and publisher public Stark keys are approved in your StarkEx configuration.

To learn more:

Last updated