Skip to content

Instantly share code, notes, and snippets.

@ilap
ilap / layman_covid19.md
Last active April 15, 2020 22:46
Layman's explanation of COVID19
@ilap
ilap / fnf_ex2.md
Last active May 22, 2020 06:25
FnF Exercise 2

Excercise 2

  1. Build simple transactions using the basic transaction mechanism;
  2. Sign transactions and confirm that the transaction is complete;
  3. Submit transactions to the Pioneer Blockchain;
  4. Verify that the transactions have been processed by inspecting the addresses that they have been sent to.

Build transactions

#!/bin/bash
@ilap
ilap / fnf_exc3.md
Last active May 22, 2020 06:15
Shelley FnF Exercise 3

Shelley Stakepool Pioneers Exercise Sheet 3

#!/bin/bash

# FnF Exercise 3
# 1. KES Mechanism (for rotating operational cert)
# - Generate the cold (offline) key pair that is used to evolve the operational certs (using new hot KES keys periodicaly).
# - Generate the hot KES (offline/online) key pair for generating the cert.
# - Generate the operational cert (offline) based on the evolved KES and VRF key.
@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:
@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 / htn_exercise5.md
Last active May 24, 2020 22:16
Shelley Stakepool Pioneers Exercise Sheet 5
@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 / 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_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_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.