Skip to content

Instantly share code, notes, and snippets.

View mingyang91's full-sized avatar
🎯
Go for broke

Ming Yang mingyang91

🎯
Go for broke
View GitHub Profile
use std::borrow::Borrow;
use std::collections::{HashMap, HashSet};
use std::hash::Hash;
use std::num::NonZeroUsize;
use std::str::FromStr;
use std::sync::{Arc, Weak};
use bitcoin::util::key;
use lru::{LruCache};
use rgb_lib::bdk::keys::bip39::{Language, Mnemonic};
use rgb_lib::bdk::keys::{DerivableKey, ExtendedKey};
use std::time::Duration;
use axum::{response::IntoResponse, routing::get, Router};
use tokio::time::sleep;
#[tokio::test]
async fn http() {
let app = Router::new().route("/", get(method_router));
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
@mingyang91
mingyang91 / os.obj
Created October 29, 2024 07:39
decompile assembly kernel
target/riscv64gc-unknown-none-elf/release/os: file format elf64-littleriscv
Disassembly of section .text.entry:
ffffffff80200000 <_start>:
ffffffff80200000: 1141 add sp,sp,-16
ffffffff80200002: 80201137 lui sp,0x80201
ffffffff80200006: 1102 sll sp,sp,0x20

Safeguarding Your Mnemonic Phrase: A Comprehensive Guide

Your mnemonic phrase is the master key to your cryptocurrency wallets and digital assets. Securing it against unauthorized access is paramount. This guide will walk you through encrypting your mnemonic using RSA encryption with OpenSSL, ensuring it remains confidential and secure.

Table of Contents

  1. Introduction
  2. Prerequisites
  3. Step-by-Step Instructions
  • Step 1: Generate an RSA Private Key with a Passphrase