The latest issue of the Smart Contract Design Patterns newsletter is out!

Verifying ECDSA signatures

Link in the reply 👇
1
4
11
432
Smart Contract Design Patterns retweeted
Wrote another article for Smart Contract Design Patterns (@designpatternsc) after a while

Soon available at andrej.hashnode.dev/newsletter
1
5
16
722
Smart Contract Design Patterns retweeted
The prerequisites for writing this article have been met

Subscribe to @designpatternsc
Security researchers often explain how to prevent signature malleability in your contracts, but do you know how to test for it while building? It’s actually quite simple, and here’s how to do it in Foundry.

For the theory behind this code, subscribe to @designpatternsc – a new
0
1
13
728
Smart Contract Design Patterns retweeted
Security researchers often explain how to prevent signature malleability in your contracts, but do you know how to test for it while building? It’s actually quite simple, and here’s how to do it in Foundry.

For the theory behind this code, subscribe to @designpatternsc – a new
2
7
78
4,967
Smart Contract Design Patterns retweeted
I have a couple of blog posts in the pipeline for @designpatternsc ready to be published...Which one would you like to see first?

Vote below
1
2
8
636
Smart Contract Design Patterns retweeted
How to master #Chainlink CCIP and Add It to Your CV by
@designpatternsc

(bookmark for later) 🧵

1) Following the top-down approach, try transferring some amount of tokens between blockchains of your choice using
@transporter_io

There’s also testnet version available at test.transporter.io

2) You should always start with Official Chainlink Documentation, that’s your “book” to learn everything about CCIP

- docs.chain.link/ccip

3) Familiarize yourself with basic CCIP terminology and architecture, then deploy a simple CCIP Sender and Receiver contracts

- cll-devrel.gitbook.io/chainlink-ccip
- cll-devrel.gitbook.io/chainlink-ccip…

4) Play around with CCIP Explorer. Monitor your messages in real-time and analyze the information available.

- ccip.chain.link

5) Learn how to transfer tokens from a smart contract

- cll-devrel.gitbook.io/chainlink-ccip…

6) Transfer USDC with Data

- docs.chain.link/ccip/tutorials…

7) Master the DefensiveExample Pattern and from now on use it as a default way to receive arbitrary data

- docs.chain.link/ccip/tutorials…

Optionally, this part of CCIP Masterclass #2 can be helpful:
- cll-devrel.gitbook.io/ccip-mastercla…

8) Send arbitrary data with the Acknowledgment of the Receipt

- docs.chain.link/ccip/tutorials…

9) Then deep dive into the CCIP Architecture

- docs.chain.link/ccip/architect…

And understand CCIP message processing:
- cll-devrel.gitbook.io/ccip-mastercla…

This guide can also be really helpful:
- cll-devrel.gitbook.io/chainlink-ccip…

10) After that, go through CCIP Masterclasses (you already covered some chapters)

Masterclass #1
- cll-devrel.gitbook.io/chainlink-ccip…
- youtu.be/Q18mJ98Ly4Q?fe…

11) Masterclass #2 (Cross-chain staking)

- cll-devrel.gitbook.io/ccip-mastercla…
- youtu.be/kL511J0bkQY?fe…

12) Masterclass #3 (Creating cross-chain NFT)

- cll-devrel.gitbook.io/ccip-mastercla…
- youtu.be/tNBuMks0HGc?fe…

13) Masterclass #4 (Cross-chain DeFi with USDC and Compound V3)

- cll-devrel.gitbook.io/ccip-mastercla…
- youtube.com/live/GsRiVIOLZ…

14) Then learn how to simulate CCIP messages locally using chainlink-local

- github.com/smartcontractk…

15) You can see a quick demo of chainlink-local here

- youtube.com/live/rPybtpwKd…

16) Also check out the chainlink-local documentation:

- cll-devrel.gitbook.io/chainlink-loca…

And tutorial playlist on YouTube:

- youtube.com/watch?v=rEVjU9…

17) Practice writing tests with chianlink-local.
For example, write a test for the github.com/smartcontractk… project.

In the test you must:
- Create an instance of CCIPLocalSimulator.sol smart contract
- Call the configuration() function to get Router contract address
- Create instances of CrossChainNameServiceRegister, CrossChainNameServiceReceiver and CrossChainNameServiceLookup smart contracts and call enableChain() function where needed
- Call the register() function and provide “alice.ccns” and Alice’s EOA address as function arguments.
- Call the lookup() function and provide “alice.ccns” as a function argument. Assert that the returned address is Alice’s EOA address.

18) More practice:

Following the docs.chain.link/ccip/tutorials… guide, measure the gas consumption of the ccipReceive function. Once you have the number, increase it by 10% and provide as gasLimit parameter of the transferUsdc function instead of the currently hard-coded 500.000 (see cll-devrel.gitbook.io/ccip-mastercla…)

19) Learn some debugging tips & tricks

- cll-devrel.gitbook.io/ccip-mastercla…

20) And finally, make sure you answer the 15 CCIP interview questions from the picture

Congratulations, you are now a CCIP expert and can list it as a skill on your CV! 🥳
5
24
129
12,057
The latest issue of the Smart Contract Design Patterns newsletter is out!

In this one, we are talking about the Commit-Reveal Scheme.

Read it here:
andrej.hashnode.dev/commit-reveal-…
0
2
11
405
Smart Contract Design Patterns retweeted
Can you guess which design pattern we're covering in today's article on @designpatternsc from this diagram?

You have until 7 AM PDT, when the newsletter is published
2
2
12
832
Smart Contract Design Patterns retweeted
Received the latest issue of @designpatternsc in my inbox whilst at @ethbelgrade conference
1
1
18
584
Smart Contract Design Patterns retweeted
For all my dev frens, @andrej_dev is doing developer focused newsletter series check it out
The latest issue of the Smart Contract Design Patterns newsletter is out!

In this one, we are talking about the Sentinel Pattern.

Read it here:
andrej.hashnode.dev/sentinel-patte…
1
1
12
850
Smart Contract Design Patterns retweeted
Absolute 🔥! Check it out and walk away smarter. Make sure to follow and subscribe to the newsletter.
The latest issue of the Smart Contract Design Patterns newsletter is out!

In this one, we are talking about the Sentinel Pattern.

Read it here:
andrej.hashnode.dev/sentinel-patte…
0
2
7
457
The latest issue of the Smart Contract Design Patterns newsletter is out!

In this one, we are talking about the Sentinel Pattern.

Read it here:
andrej.hashnode.dev/sentinel-patte…
0
5
16
1,991
New issue drops tomorrow, subscribe at andrej.hashnode.dev/newsletter to not miss it
0
2
7
1,062
Sneak peek from the “Integrating arbitrary ERC-20 tokens” article

Read it here: andrej.hashnode.dev/integrating-ar…
0
2
6
235
Smart Contract Design Patterns retweeted
Replying to @andrej_dev
@andrej_dev would have to be one of the most technically capable Crypto DevRel Engineers in the space. If you're a Solidity developer or Crypto DevRel, suggest checking out his new blog on Smart Contract Design Patterns, where he'll be regularly digging deep on all things smart contract design, patterns and architecture.
If you checked your inbox earlier today, you saw the first article from the Smart Contract Design Patterns series is out!

It provides insights into writing smart contracts that integrate arbitrary ERC-20 tokens.

Read it here: andrej.hashnode.dev/integrating-ar…
1
2
12
537
Smart Contract Design Patterns retweeted
Andrej is doing great things for the advancement of developers' expertise! Check his excellent work:
If you checked your inbox earlier today, you saw the first article from the Smart Contract Design Patterns series is out!

It provides insights into writing smart contracts that integrate arbitrary ERC-20 tokens.

Read it here: andrej.hashnode.dev/integrating-ar…
1
2
6
367
Smart Contract Design Patterns retweeted
Excellent, no bullshit newsletter.
If you checked your inbox earlier today, you saw the first article from the Smart Contract Design Patterns series is out!

It provides insights into writing smart contracts that integrate arbitrary ERC-20 tokens.

Read it here: andrej.hashnode.dev/integrating-ar…
1
2
7
437
If you checked your inbox earlier today, you saw the first article from the Smart Contract Design Patterns series is out!

It provides insights into writing smart contracts that integrate arbitrary ERC-20 tokens.

Read it here: andrej.hashnode.dev/integrating-ar…
0
8
16
2,248
Hello, world!

Smart Contract Design Patterns is your go-to newsletter for insights on Solidity and EVM design patterns.

🗓️ First issue drops tomorrow at 10 AM ET.

Subscribe now at andrej.hashnode.dev/newsletter.
3
4
13
1,703