Skip to content

Instantly share code, notes, and snippets.

@sleepdefic1t
Last active January 28, 2021 01:42
Show Gist options
  • Save sleepdefic1t/dd4afd345c44161dcad272615e26aa82 to your computer and use it in GitHub Desktop.
Save sleepdefic1t/dd4afd345c44161dcad272615e26aa82 to your computer and use it in GitHub Desktop.

Cardano Shelley Addresses

Overview

graph TD
    subgraph OverviewGraph [Overview]
    Mnemonic[["fa:fa-list-ul mnemonic"]]
    RootKeyPair(["fa:fa-key Root KeyPair"])
    SpendKeyPair(["fa:fa-key Spending KeyPair"])
    SpendVerificationKey(["fa:fa-key Verification Key"])
    StakeKeyPair(["fa:fa-key Staking KeyPair"])
    StakeVerificationKey(["fa:fa-key Verification Key"])
    StakeSigningKey(["fa:fa-key Signing Key"])
    BaseAddress[["fa:fa-envelope Base Address"]]
    StakeAddress[["fa:fa-envelope Staking Address"]]
    Mnemonic --> RootKeyPair
    RootKeyPair --> SpendKeyPair & StakeKeyPair
    SpendKeyPair --> SpendSigningKey & SpendVerificationKey
    StakeKeyPair --> StakeVerificationKey & StakeSigningKey
    SpendVerificationKey & StakeVerificationKey --> BaseAddress
    StakeVerificationKey --> StakeAddress
    end
Loading
<iframe frameborder="0" width="100%" height="1000px" src="https://repl.it/@sleepdefic1t/ShelleyAddressVerbose?lite=true"></iframe>

Mnemonic to Addresses

graph TD
    subgraph AddressSubgraph [ ]
    Mnemonic[["fa:fa-list-ul mnemonic"]]
    RootKeyPair(["fa:fa-key Root KeyPair"])
    SpendKeyPair(["fa:fa-key Spending KeyPair"])
    StakeKeyPair(["fa:fa-key Staking KeyPair"])
    BaseAddress[["fa:fa-envelope Base Address"]]
    StakeAddress[["fa:fa-envelope Staking Address"]]
    Mnemonic --> RootKeyPair
    RootKeyPair -.-> SpendKeyPair & StakeKeyPair
    SpendKeyPair --> BaseAddress & StakeAddress
    StakeKeyPair --> BaseAddress
    end
Loading

Root KeyPair

graph TD
    subgraph RootKeyPairSubgraph [ ]
    RootKeyPair(["fa:fa-key Root KeyPair"])
    SpendKeyPair(["fa:fa-key Spending KeyPair"])
    StakeKeyPair(["fa:fa-key Staking KeyPair"])
    RootKeyPair -.-> SpendKeyPair & StakeKeyPair
    end
Loading

KeyPairs to Addresses

graph TD
    subgraph SpendingAndStakingKeyPairs [ ]
    SpendKeyPair(["fa:fa-key Spending KeyPair"])
    SpendSigningKey(["fa:fa-key Signing Key"])
    SpendVerificationKey(["fa:fa-key Verification Key"])
    StakeKeyPair(["fa:fa-key Staking KeyPair"])
    StakeVerificationKey(["fa:fa-key Verification Key"])
    StakeSigningKey(["fa:fa-key Signing Key"])
    BaseAddress[["fa:fa-envelope Base Address"]]
    StakeAddress[["fa:fa-envelope Staking Address"]]
    SpendKeyPair -.-> SpendSigningKey & SpendVerificationKey
    StakeKeyPair -.-> StakeVerificationKey & StakeSigningKey
    SpendVerificationKey & StakeVerificationKey --> BaseAddress
    StakeVerificationKey --> StakeAddress
    end
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment