banner
Crypto Chasers

Crypto Chasers

A DAO helping new Web3 projects and users grow.

Crypto Chasers Technology Weekly Report 20231031

Contributor: Script Money
Full-stack engineer, familiar with Web3 development ecosystem, and has written some technical tutorials.

This article is the sixth issue of the bi-weekly report produced by CryptoChasers (20231018-20231031), with information collected from personal sources and community group chats. It mainly focuses on practical content related to Web3 development and Crypto activities.

Section Settings Explanation:
This Week's Picks: The author's recommended top 3 recent information worth paying attention to.
Tool Recommendations: The author's recommended 3 developer tools worth trying.
Community Discussions: 3 hot topics from this week and previous weeks in the community group chat.
Developer Activities: Grants and hackathons that can be participated in the coming weeks.
Recommendations: Community projects, recruitment, advertisements, etc.

Welcome to submit contributions in the comments section or private message the author.

This Week's Picks

ParadigmCTF write up

paradigmCTF

Website: https://github.com/fuzzland/writeup
Reason for recommendation: Fuzzland's community member @0xAWM_eth provided the answers to ParadigmCTF2023, and they also achieved a good ranking of 4th place.

ZK-Hunt: A new attempt to implement hidden information in a full-chain game

zk hunt

Website: https://xlog.app/post/captainz/ZK-Hunt-quan-lian-you-xi-shi-xian-yin-cang-xin-xi-de-xin-chang-shi-md
Reason for recommendation: A deep blockchain technology design article, the link is a Chinese translation version, suitable for developers interested in learning zero-knowledge proofs or full-chain games.

Laputa

laputa

Website: https://github.com/Cygnusfear/laputa
Reason for recommendation: A high-quality project that won 4 awards in the just-ended ETH global online 2023. It uses MUD2.0 for contracts and react-three-fiber for the front-end, achieving a pure web3D interactive interface. The code is fully open-source. Suitable for front-end developers and those interested in MUD.

Tool Recommendations

heygen

heygen

Website: https://www.bilibili.com/video/BV1Gh4y1i7bU/
Reason for recommendation: heygen is a tool used for video lip-syncing and language replacement that has recently become popular. The link is a technical analysis video brought by @数字黑魔法.

latent consistency model

replicate

Website: https://github.com/replicate/latent-consistency-model
Reason for recommendation: A new sampler for quick image generation, greatly reducing the required steps and image generation time. The official library for Mac is provided, and plugins for using it in WebUI can also be found. There is a trial link at https://replicate.com/luosiallen/latent-consistency-model.

Fe

fe

Website: https://fe-lang.org/docs/index.html
Reason for recommendation: Fe is an Ethereum ecosystem language similar to Rust, used to write smart contracts instead of Solidity. In the upcoming ETH Istanbul, there is a separate prize for applications built with Fe, indicating that the foundation values this tool. Those interested can learn more about it.

Community Discussions

Topic 1: How to implement task scheduling and logging in Rust

  1. Rust can be executed through script calling rust-script.
  2. The SDK of xxl-job mainly supports Java, and other languages need to use shell or HTTP API for calling.
  3. Use crontab for task scheduling.
  4. Use HTTP for scheduling and load balancing.
  5. Use cloud service's log storage function.
  6. Use ELK with K8S cronjob.
  7. Use betterstack for logging and aggregation analysis.
  8. Use Render cloud service to integrate crontab and logging.

Topic 2: Discussion on the issue of encountering unknown IP requests when using Flask to write services

  1. Use nginx to configure basic auth for authentication.
  2. Change the request method from GET to POST.
  3. Check the specific content of the request, such as whether the password is directly sent.
  4. Check the source IP of the request to determine if multiple IPs are attempting collision.
  5. Use encrypted transmission, such as HTTPS.
  6. Remove API parameters from the URL.
  7. Use network service providers for security protection.
  8. Log and analyze detailed information of the request.
  9. Use UUID as the password and do not respond or sleep for a few seconds in case of errors.
  10. Set a server whitelist to only allow requests from whitelisted IPs.
  11. Limit IP ranges to only allow requests from specific sources.

Topic 3: Discussion on issues encountered in array operations in Solidity storage layout

  1. Ensure that the first slot of the array is the length, and the elements come after.
  2. Attempting to operate at slot+1 or slot+2 positions may fail.
  3. Pay attention to the storage method of the array, there is no need to use keccak256, they are stored sequentially.
  4. Ensure that there are no issues when writing data, the problem may occur when retrieving data.
  5. Use sload to get the correct value.
  6. Ensure that the array is read after writing the length to the slot.
  7. Adjust the shift operation to be consistent with the push operation.

Hackathons & Events

Not many new events, you can check the previous issue for past events

Recommendations

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.