The Case for Solidity-Only Testing in Smart Contract Development

Posted on Mon 09 October 2023 in tech • Tagged with ethereum, solidity, foundry

The Case for Solidity-Only Testing in Smart Contract Development

If you're diving into the world of Solidity and smart contracts, you may have wrestled with the question: should I develop and test my project entirely in Solidity? For those unfamiliar with the debate, the alternative is often testing using TypeScript …


Continue reading

did-eth 59

Posted on Tue 03 October 2023 in tech

This PR introduces comprehensive testing in Solidity for the did-eth-registry. By consolidating our tests within a single high-performance Solidity framework, we simplify future improvements and refactoring efforts. This approach also eliminates the need to switch between different language implementations, streamlining our development process. Please review here for additional information.


Fiat-Shamir Identification - Non-Interactive Zero-Knowledge Proofs - Full Implementation

Posted on Fri 25 August 2023 in tech

Fiat-Shamir Identification: Non-Interactive Zero-Knowledge Proofs

See full implementation code on GitHub

The ability to prove knowledge of some secret information without revealing the secret itself is crucial. Fiat-Shamir Identification demonstrates how this can be achieved in a way that doesn't require interaction between the prover and verifier. Further, Fiat and …


Continue reading

define a custom keybinding in emacs

Posted on Fri 28 July 2023 in tech

Emacs global-set-key

This video demonstrates how to set a custom global keybinding in Emacs to open the org agenda folder.

(setq org-agenda-folder (quote "~/org"))
(defun open-agenda-folder () (interactive) (dired org-agenda-folder))
(global-set-key "\C-cr" (quote open-agenda-folder))

YouTube


vm.mockCall in Solidity

Posted on Mon 24 July 2023 in tech • Tagged with solidity, ethereum, programming, tutorial

mocking calls to specific addresses in solidity

Mocking a specific address signature in Solidity is useful for simulating expected behavior from an existing address or instance of a contract. In mock testing dependencies are replaced with simulated implementations to isolate the behavior of the funtion under test.

Proxy contracts that …


Continue reading

generate a random hex string in python

Posted on Thu 08 June 2023 in tech • Tagged with python, programming

Here is a simple gist that demonstrates how to generate a random hex string in Python. This is pseudo-random and designed only to be used for generating test data.