Skip to content

Instantly share code, notes, and snippets.

{
"onboarding": {
"forgot_pin": "Ke harruar kodin PIN?",
"forgot_pin_description": "Ke harruar kodin PIN?\nShkruj seed phrase-in (24 fjalët) për të rivendosur kodin PIN.",
"enter_pin": "Vendos kodin PIN",
"reenter_pin": "Vendos kodin PIN",
"attempts_left_one": "{{count}} tentativë e mbetur.",
"attempts_left_other": "{{count}} tentativa të mbetura.",
"for_litecoin": "PËR LITECOIN",
"create_wallet": "Krijo Portofolin",
import React, {useEffect, useRef, useState} from 'react';
import {View, StyleSheet, TouchableOpacity, Image} from 'react-native';
import WebView from 'react-native-webview';
import DeviceInfo from 'react-native-device-info';
import {TransitionPresets} from '@react-navigation/stack';
import {RouteProp, useNavigation} from '@react-navigation/native';
import Header from '../components/Header';
import HeaderButton from '../components/Buttons/HeaderButton';
export const sendConvertPsbtTransaction = async (
amount: number,
destination: 'regular' | 'private',
) => {
try {
// new destination address
let type: number;
if (destination === 'private') {
type = 7;
} else {
// Validation library from: https://github.com/ruigomeseu/bitcoin-address-validation
// Copyright (c) 2018 Rui Gomes [email protected]
import {base58_to_binary} from 'base58-js';
import {bech32} from 'bech32';
import {createHash} from 'sha256-uint8array';
const sha256 = (payload: Uint8Array) => createHash().update(payload).digest();
enum Network {
mainnet = 'mainnet',
{
"onboarding": {
"forgot_pin": "Mot de passe oublié ?",
"forgot_pin_description": "Forgot your Pincode?\nEnter your seed phrase to reset your pincode.",
"enter_pin": "Entrez votre code PIN",
"attempts_left_one": "{{count}} attempt left.",
"attempts_left_other": "{{count}} attempts left.",
"for_litecoin": "FOR LITECOIN",
"create_wallet": "Create Wallet",
"already_wallet": "Already have a wallet? Log In",
{
"onboarding": {
"forgot_pin": "Forgot Pincode?",
"forgot_pin_description": "Forgot your Pincode?\nEnter your seed phrase to reset your pincode.",
"enter_pin": "Enter your PIN",
"reenter_pin": "Re-enter your PIN",
"attempts_left_one": "{{count}} attempt left.",
"attempts_left_other": "{{count}} attempts left.",
"for_litecoin": "FOR LITECOIN",
"create_wallet": "Create Wallet",
{
"onboarding": {
"forgot_pin": "Zapomniałeś/aś PINu?",
"forgot_pin_description": "", // Forgot your Pincode?\nEnter your seed phrase to reset your pincode.
"enter_pin": "Wpisz swój PIN",
"attempts_left_one": "Pozostały {{count}} próby.",
"attempts_left_other": "Pozostały {{count}} próby.",
"for_litecoin": "", // FOR LITECOIN
"create_wallet": "", // Create Wallet
"already_wallet": "", // Already have a wallet? Log In
@losh11
losh11 / macOS-codesign.md
Created October 15, 2024 15:49
Litecoin Codesigning Process (<v0.21.4)

Codesign binary

$ ./detached-sig-create.sh <PATH_TO_P12>
$ tar xf signature-osx.tar.gz
$ signapple apply ./dist/Litecoin-Qt.app osx/dist

Setup notarytool (once only)

$ xcrun altool --list-providers -u "<APPLE_ID_EMAIL>" -p "@keychain:<apple-id-notarisation-app-specific-password>"
/* eslint-disable radix */
import BigNumber from 'bignumber.js';
import BIP32Factory, { BIP32Interface } from 'bip32';
import bs58check from 'bs58check';
import * as ecc from 'tiny-secp256k1';
import { Buffer } from 'buffer';
import crypto from 'crypto';

The Litecoin Developers are aware of a regression introduced in Litecoin Core v0.21.3. A certain number of users may see the error message "Prune mode is incompatible with -blockfilterindex." on startup.

The Temporary Fix

Locate the Litecoin Data Directory. By default this is located at:

macOS: ~/Library/Application Support/Litecoin
Linux: ~/.litecoin
Windows: %APPDATA%\Litecoin