Skip to content

Instantly share code, notes, and snippets.

@ilap
ilap / shelley_staking_gen.md
Last active Aug 5, 2020
Extracting Pool Staking keys from Daedalus/Yoroi wallet
View shelley_staking_gen.md

Intorduction

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

UPDATED: 09:10pm AEST 29/7/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 / The_Hitchhikers_Guide_To_The_Shelley_Chapter_Four.md
Last active Jun 21, 2020
The Hitchhiker's Guide To The Shelley - Chapter 4 - The Shelley Network
View The_Hitchhikers_Guide_To_The_Shelley_Chapter_Four.md

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 Jul 20, 2020
Shelley Cold Key Generation
View shelley_cold_key_gen.md

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 Jul 28, 2020
The Hitchhikers Guide To The Shelley - Chapter 3 - The Staking
View The_Hitchhikers_Guide_To_The_Shelley_Chapter_Three.md

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_exercise4.md
Last active May 25, 2020
Shelley Stakepool Pioneers Exercise Sheet 4
View htn_exercise4.md

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
Setup Shelley Monitoring (cardano-node)
View setup_node_mon.bash
#!/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 / fnf_exc3.md
Last active May 22, 2020
Shelley FnF Exercise 3
View fnf_exc3.md

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 / fnf_ex2.md
Last active May 22, 2020
FnF Exercise 2
View fnf_ex2.md

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 / layman_covid19.md
Last active Apr 15, 2020
Layman's explanation of COVID19
View layman_covid19.md
You can’t perform that action at this time.