<commit_before>package org.bitcoinj.wallet;

import com.google.common.collect.ImmutableList;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.crypto.ChildNumber;

public class DerivationPathFactory {

    private NetworkParameters params;
    private final ChildNumber coinType;
    private static final ChildNumber FEATURE_PURPOSE = ChildNumber.NINE_HARDENED;

    public DerivationPathFactory(NetworkParameters params) {
        this.params = params;
        this.coinType = new ChildNumber(params.getCoinType(), true);
    }

    /** blockchain identity registration funding derivation path
     * m/9'/5'/12' (mainnet)
     * m/9'/1'/12' (testnet, devnets)
     */
    public ImmutableList<ChildNumber> blockchainIdentityRegistrationFundingDerivationPath() {
        return ImmutableList.<ChildNumber>builder()
                .add(FEATURE_PURPOSE)
                .add(coinType)
                .add(new ChildNumber(12, true))
                .build();
    }

    /** blockchain identity topup funding derivation path
     * m/9'/5'/12' (mainnet)
     * m/9'/1'/12' (testnet, devnets)
     */
    public ImmutableList<ChildNumber> blockchainIdentityTopupFundingDerivationPath() {
        return ImmutableList.<ChildNumber>builder()
                .add(FEATURE_PURPOSE)
                .add(coinType)
                .add(new ChildNumber(13, true))
                .build();
    }

    /** blockchain identity keys derivation path (EC Keys)
     * m/9'/5'/5'/0'/0' (mainnet)
     * m/9'/1'/5'/0'/0' (testnet, devnets)
     */
    public ImmutableList<ChildNumber> blockchainIdentityECDSADerivationPath() {
        return ImmutableList.<ChildNumber>builder()
                .add(FEATURE_PURPOSE)
                .add(coinType)
                .add(ChildNumber.FIVE_HARDENED)
                .add(ChildNumber.ZERO_HARDENED)
                .add(ChildNumber.ZERO_HARDENED)
                .build();
    }

    /** blockchain identity keys derivation path (BLS Keys)
     * m/9'/5'/5'/0'/1' (mainnet)
     * m/9'/1'/5'/0'/1' (testnet, devnets)
     */
    public ImmutableList<ChildNumber> blockchainIdentityBLSDerivationPath() {
        return ImmutableList.<ChildNumber>builder()<commit_msg>DerivationPathFactory: Fix comments on topup funding path<commit_after>package org.bitcoinj.wallet;

import com.google.common.collect.ImmutableList;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.crypto.ChildNumber;

public class DerivationPathFactory {

    private NetworkParameters params;
    private final ChildNumber coinType;
    private static final ChildNumber FEATURE_PURPOSE = ChildNumber.NINE_HARDENED;

    public DerivationPathFactory(NetworkParameters params) {
        this.params = params;
        this.coinType = new ChildNumber(params.getCoinType(), true);
    }

    /** blockchain identity registration funding derivation path
     * m/9'/5'/12' (mainnet)
     * m/9'/1'/12' (testnet, devnets)
     */
    public ImmutableList<ChildNumber> blockchainIdentityRegistrationFundingDerivationPath() {
        return ImmutableList.<ChildNumber>builder()
                .add(FEATURE_PURPOSE)
                .add(coinType)
                .add(new ChildNumber(12, true))
                .build();
    }

    /** blockchain identity topup funding derivation path
     * m/9'/5'/13' (mainnet)
     * m/9'/1'/13' (testnet, devnets)
     */
    public ImmutableList<ChildNumber> blockchainIdentityTopupFundingDerivationPath() {
        return ImmutableList.<ChildNumber>builder()
                .add(FEATURE_PURPOSE)
                .add(coinType)
                .add(new ChildNumber(13, true))
                .build();
    }

    /** blockchain identity keys derivation path (EC Keys)
     * m/9'/5'/5'/0'/0' (mainnet)
     * m/9'/1'/5'/0'/0' (testnet, devnets)
     */
    public ImmutableList<ChildNumber> blockchainIdentityECDSADerivationPath() {
        return ImmutableList.<ChildNumber>builder()
                .add(FEATURE_PURPOSE)
                .add(coinType)
                .add(ChildNumber.FIVE_HARDENED)
                .add(ChildNumber.ZERO_HARDENED)
                .add(ChildNumber.ZERO_HARDENED)
                .build();
    }

    /** blockchain identity keys derivation path (BLS Keys)
     * m/9'/5'/5'/0'/1' (mainnet)
     * m/9'/1'/5'/0'/1' (testnet, devnets)
     */
    public ImmutableList<ChildNumber> blockchainIdentityBLSDerivationPath() {
        return ImmutableList.<ChildNumber>builder()
{'fraction_non_alphanumeric': 0.11402329749103943, 'fraction_numerical': 0.017921146953405017, 'mean_word_length': 2.5464654487688643, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3750334', 'n_tokens_mistral': 1439, 'n_tokens_neox': 1293, 'n_words': 239}