bch-development

Enforce BCH-specific method overrides in Go without altering BTC base logic.

126|41|Updated Aug 4, 2018
One-click install
npx skills add https://github.com/hiromaily/go-crypto-wallet --skill bch-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bch-development
Source: https://github.com/hiromaily/go-crypto-wallet/tree/main/.claude/skills/bch-development
Command: npx skills add https://github.com/hiromaily/go-crypto-wallet --skill bch-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures BCH-specific development rules are followed when embedding the Bitcoin struct and overriding methods, preventing accidental BTC-wide changes from leaking into BCH.

Core Features & Use Cases

  • Override pattern enforcement: BCH-specific logic is implemented by creating files in internal/infrastructure/api/btc/bch/ that override embedded BTC methods.
  • Safety and maintainability: separation between BTC and BCH code keeps base BTC logic intact while allowing BCH variations.
  • Use Case: when working on BCH-related features such as address handling or chain parameters, implement BCH overrides in the BCH package.

Quick Start

Start by creating BCH overrides in internal/infrastructure/api/btc/bch/. For any BCH-specific logic, implement methods with the same signatures as the BTC counterparts, and verify not to modify the BTC package. Run tests and lint to ensure correctness.

Frequently Asked Questions about bch-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I override Bitcoin methods for Bitcoin Cash without modifying the original BTC code?

To override Bitcoin methods for Bitcoin Cash, use Go embedding by creating files in the internal/infrastructure/api/btc/bch/ directory that selectively override embedded BTC methods, keeping base BTC logic intact.

What is the Go embedding pattern for separating BCH and BTC code paths?

The Go embedding pattern for separating BCH and BTC code paths involves embedding the BTC struct within a BCH package and overriding only specific methods, preventing cross-contamination between the BTC and BCH code.

How do I implement BCH-specific address handling or chain parameters safely?

To implement BCH-specific address handling or chain parameters safely, create override methods with identical signatures to their BTC counterparts in the BCH package, maintaining strict separation from BTC logic.

Why do my Bitcoin Cash changes accidentally break the base Bitcoin code behavior?

Bitcoin Cash changes break base Bitcoin behavior when code paths cross-contaminate. Enforcing a strict override pattern using Go embedding and package scoping prevents accidental modifications to the original BTC package.

Do I need to understand Go package scoping to manage Bitcoin Cash overrides?

Yes, you need to understand Go package scoping and struct embedding to manage Bitcoin Cash overrides, as this awareness ensures BCH-specific logic remains isolated and prevents unintended BTC-wide changes.

What are the limitations of using Go embedding for BCH override patterns?

A limitation of using Go embedding for BCH override patterns is the risk of cross-contamination, requiring rigorous testing and lint checks to verify that base BTC behavior remains untouched during internal API development.