Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Creating a unified mechanism to generate blocklists for ckBTC and ckETH #3401

Merged
merged 23 commits into from
Jan 21, 2025

Conversation

THLO
Copy link
Contributor

@THLO THLO commented Jan 10, 2025

This PR adds a Python script to generate blocklists for ckBTC and ckETH based on the OFAC SDN list.

There are some differences in the produced blocklist files compared to the current files:

Differences to the current ckBTC blocklist file:

  1. The new blocklist file has a comment at the beginning about the script that was used to generate it.
  2. The new blocklist file has a more concise error message for the invalid Bitcoin address in the OFAC SDN list.

Differences to the current ckETH blocklist file:

  1. The new blocklist file has a comment at the beginning about the script that was used to generate it, replacing the old comment.
  2. Since Ethereum addresses are case-insensitive, all addresses are now consistently in lower case.
  3. The parameter from_address in the function is_blocked has been changed to address to make it consistent with the corresponding function for ckBTC.

Corresponding ticket: https://dfinity.atlassian.net/browse/XC-250

@THLO THLO requested a review from a team as a code owner January 10, 2025 14:22
@github-actions github-actions bot added the chore label Jan 10, 2025
Copy link
Member

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @THLO for making this script! Some minor comments and python newbie questions.

rs/cross-chain/scripts/generate_blocklist.py Outdated Show resolved Hide resolved
rs/cross-chain/scripts/generate_blocklist.py Show resolved Hide resolved
rs/cross-chain/scripts/generate_blocklist.py Outdated Show resolved Hide resolved
rs/cross-chain/scripts/generate_blocklist.py Outdated Show resolved Hide resolved
rs/cross-chain/scripts/generate_blocklist.py Outdated Show resolved Hide resolved
rs/cross-chain/scripts/generate_blocklist.py Outdated Show resolved Hide resolved
rs/cross-chain/scripts/generate_blocklist.py Outdated Show resolved Hide resolved
rs/cross-chain/scripts/generate_blocklist.py Outdated Show resolved Hide resolved
rs/cross-chain/scripts/generate_blocklist.py Outdated Show resolved Hide resolved
rs/cross-chain/scripts/generate_blocklist.py Outdated Show resolved Hide resolved
@THLO THLO added this pull request to the merge queue Jan 21, 2025
Merged via the queue into master with commit 72ed89c Jan 21, 2025
25 checks passed
@THLO THLO deleted the tl/unify_blocklist_process branch January 21, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants