Skip to content

XLabs/core-bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git clone, then run via make test to observe gas costs in forge test traces:

gas costs of parseAndVerifyVM (not including transaction overhead):

134,689 original
134,689 thirteen sigs (matches as expected)
108,341 using CoreBridgeLib from Solidity SDK (parses and verifies VAA itself after fetching guardian set from core bridge)
 27,677 single signature
 88,686 guardian set from calldata (gscd) optimizations (does not agree with 83k number in the monorepo PR despite additional optimizations)
 69,570 optimized, backwards compatible implementation
 13,874 threshold signature (i.e. single address) optimized version

Original gas costs also match gas used field of Action[3] in Etherscan Parity trace of the sample transaction.

guardian set from calldata monorepo PR that passes the guardian set as calldata and only checks the hash - its README is the source of the 83k number above

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 99.0%
  • Makefile 1.0%