Skip to content

Instantly share code, notes, and snippets.

@ilap
ilap / byron_recovery.md
Last active February 14, 2023 09:16
ByronRevovery

Explanation

USE EVERYTHING BELOW AT YOUR OWN RISKS!

A Cardano community member has lost one word of his the 12-words menomic/"recovery phrase", and he would like to recover his wallet from these 11 words.

It is be possible based on the following assumptions:

  • he knows the address the ADA is stored (he knows)
  • the order of the 11 words is correct
  • if it's not correct then it's would need around 11! * 1550 = 60bn tries i.e. 1700 years:(.
@ilap
ilap / CardanoPoolRankinginDaedalus.md
Last active May 22, 2023 08:22
Cardano Pool Ranking in Daedalus

Cardano Pool Ranking in Daedalus

DISCLAIMER: The following example is based on the Chapter 4.3 and 5.6 in latest design spec and the Ranking Specification. But it seems that the ranking mechanism specified in the Design Specification, and explained below, is not fully implemented and/or enabled or I missed some of the details of the spec (more realistic assumption). Also, I have not checked what is the difference between the design doc and the current implementation of the haskell code to check if there is any difference, or I misinterpreted some of the both sources (design doc, haskell code). Anyway, I will check the code when I have some spare time.

UPDATED 09/23/2020

Layman explanation

The pool ranking in wallet is based on the stake the user intend to delegate and the expected `

@ilap
ilap / shelley_staking_ledger_addr_gen.md
Last active November 20, 2023 17:30
Extracting Pool Staking keys from Ledger wallet

Introduction for Ledger wallet based addresses

DISCLAIMER: NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK

UPDATED: 16:51pm AEST 09/Aug/2020

There are two keypairs that are required to register a pool:

  1. reward account (costs and rewards) and
  2. owner stake (pledge) keypair.
@ilap
ilap / shelley_staking_gen.md
Last active November 24, 2022 03:01
Extracting Pool Staking keys from Daedalus/Yoroi wallet

Intorduction

DISCLAIMER: NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK

UPDATED: 14:08am AEST 29/Sept/2020, The IDX was incorrectly used. Fixed now

There are two keypairs that are required to register a pool:

  1. reward account (costs and rewards) and
  2. owner stake (pledge) keypair.
@ilap
ilap / The_Hitchhikers_Guide_To_The_Shelley_Chapter_Four.md
Last active July 4, 2021 18:15
The Hitchhiker's Guide To The Shelley - Chapter 4 - The Shelley Network

The Hitchhiker's Guide To The Shelley - Chapter 4 - The Network

This guide's chapter targets the pool operators for getting their head around of current Shelley's Network stack until P2P (Governor with DeltaQ) arrives. It also provides some networking practices, for setting up a staking pool environment.

Disclaimer: All the Information in this gist, only applies to the currently implemented network stack of Haskell Shelley, and might be inaccurate or even completely wrong. The Author cannot be held responsible for any consequences after/before using any information from this gist, therefore, you acknowledge that you are USING THEM AT YOUR OWN RISK.

@ilap
ilap / shelley_cold_key_gen.md
Last active December 29, 2021 14:25
Shelley Cold Key Generation

Shelley Cold Key Generation

Shelley Cold Key Generation Proof of Concept. Node.js is required for this PoC.

It's compatible /w cardano-node v1.16.0

Install

package.json

@ilap
ilap / The_Hitchhikers_Guide_To_The_Shelley_Chapter_Three.md
Last active January 1, 2024 07:14
The Hitchhikers Guide To The Shelley - Chapter 3 - The Staking

The Hitchhiker's Guide To The Shelley - Chapter 3 - The Staking

This guide's chapter targets the pool operators for getting their head around of Shelley staking. To fully understand the staking mechanism we need to define and interpret the following key concepts:

Keys, Addresses and Certifications

@ilap
ilap / htn_exercise5.md
Last active May 24, 2020 22:16
Shelley Stakepool Pioneers Exercise Sheet 5
@ilap
ilap / htn_exercise4.md
Last active May 25, 2020 01:21
Shelley Stakepool Pioneers Exercise Sheet 4

Shelley Stakepool Pioneers Exercise Sheet 4

Key Types and their functions

  • Node Keys (Cold, Hot, VRF)
    • Cold key: operator's offline key pair with cert counter for new certificates.
    • Hot KES key: operator's hot KES key pair.
    • Block signing key: operational VRF key pair, it participates in the "lottery" i.e. right to create and sign the block for the specific slot.
  • Address (Payment, Staking etc.) keys
  • Payment key: single address key pair (usually for generating UtxO address)
@ilap
ilap / setup_node_mon.bash
Last active May 23, 2020 18:21
Setup Shelley Monitoring (cardano-node)
#!/bin/bash
#---------------------------------------------------------------------
# File: setup_shelley_monitoring.sh
# Created: 2019/10/17
# Creator: ilap
#=====================================================================
# UPDATES:
# - 21/05/2020: Updated to the `cardano-node` i.e. Haskell Shelley
#
# DESCRIPTION: