Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
github.com/chainsafe/chainbridge-ethereum-trie
This package exposes the transaction trie from go-ethereum, so it can be used to (re)construct tries and compute proofs.
Here is an example of how this library could be used.
// assume trieDB is some already instantiated leveldb instance
// assume the listener has retrieved the transactions root (txRoot), transactions (txList), and key of the transaction of interest (txPath) for some block while polling
// instantiate new instance of TxTries object
txTries := NewTxTries(3)
// add new trie to the txtries object with relevant txRoot, transactions, and triedb
txTries.AddNewTrie(txRoot, txList, trieDB)
// we can retrieve a proof for our transaction of interest and verify it as follows
txProof := txTries.RetrieveProof(txRoot, txPath)
exists := VerifyProof(txRoot, txPath, txProof)
if exists {
// we know the transaction exists in our trie
// perform some action
}
// we can also retrieve the encoded version of the proof for our transaction of interest as follows:
encodedTxProof := txTries.RetrieveEncodedProof(txRoot, txPath)
FAQs
Unknown package
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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.