Skip to content

Commit

Permalink
add shared prefixes to CIP-0005, and remove now obsolete script_*** p…
Browse files Browse the repository at this point in the history
…refixes
  • Loading branch information
KtorZ committed May 4, 2021
1 parent 5fd18d6 commit 7ef4712
Showing 1 changed file with 50 additions and 38 deletions.
88 changes: 50 additions & 38 deletions CIP-0005/CIP-0005.md
Expand Up @@ -25,47 +25,59 @@ We define the following set of common prefixes with their corresponding semantic

#### Keys

| Prefix | Meaning | Contents |
| --- | --- | --- |
| `acct_sk` | CIP-1852's Account private key | Ed25519 private key |
| `acct_vk` | CIP-1852's Account public key | Ed25519 public key |
| `acct_xsk` | CIP-1852's extended Account private key | Ed25519-bip32 extended private key |
| `acct_xvk` | CIP-1852's extended Account public key | Ed25519 public key with chain code |
| `addr_sk` | Address signing key | Ed25519 private key |
| `addr_vk` | Address verification key | Ed25519 public key |
| `addr_xsk` | Address extended signing key | Ed25519-bip32 extended private key |
| `addr_xvk` | Address extended verification key | Ed25519 public key with chain code |
| `kes_sk` | KES signing key | KES signing key |
| `kes_vk` | KES verification key | KES verification key |
| `pool_sk` | Pool operator signing key | Ed25519 private key |
| `pool_vk` | Pool operator verification key | Ed25519 public key |
| `root_sk` | CIP-1852's root private key | Ed25519 private key |
| `root_vk` | CIP-1852's root public key | Ed25519 public key |
| `root_xsk` | CIP-1852's extended root private key | Ed25519-bip32 extended private key |
| `root_xvk` | CIP-1852's extended root public key | Ed25519 public key with chain code |
| `script_sk` | Script signing key | Ed25519 private key |
| `script_vk` | Script verification key | Ed25519 public key |
| `script_xsk` | Extended script signing key | Ed25519-bip32 extended private key |
| `script_xvk` | Extended script verification key | Ed25519 public key with chain code |
| `stake_sk` | Stake address signing key | Ed25519 private key |
| `stake_vk` | Stake address verification key | Ed25519 public key |
| `stake_xsk` | Extended stake address signing key | Ed25519-bip32 extended private key |
| `stake_xvk` | Extended stake address verification key | Ed25519 public key with chain code |
| `vrf_sk` | VRF signing key | VRF signing key |
| `vrf_vk` | VRF verification key | VRF verification key |
| Prefix | Meaning | Contents |
| --- | --- | --- |
| `acct_sk` | CIP-1852's account private key | Ed25519 private key |
| `acct_vk` | CIP-1852's account public key | Ed25519 public key |
| `acct_xsk` | CIP-1852's extended account private key | Ed25519-bip32 extended private key |
| `acct_xvk` | CIP-1852's extended account public key | Ed25519 public key with chain code |
| `acct_shared_sk` | CIP-1854's account private key | Ed25519 private key |
| `acct_shared_vk` | CIP-1854's account public key | Ed25519 public key |
| `acct_shared_xsk` | CIP-1854's extended account private key | Ed25519-bip32 extended private key |
| `acct_shared_xvk` | CIP-1854's extended account public key | Ed25519 public key with chain code |
| `addr_sk` | CIP-1852's address signing key | Ed25519 private key |
| `addr_vk` | CIP-1852's address verification key | Ed25519 public key |
| `addr_xsk` | CIP-1852's address extended signing key | Ed25519-bip32 extended private key |
| `addr_xvk` | CIP-1852's address extended verification key | Ed25519 public key with chain code |
| `addr_shared_sk` | CIP-1854's address signing key | Ed25519 private key |
| `addr_shared_vk` | CIP-1854's address verification key | Ed25519 public key |
| `addr_shared_xsk` | CIP-1854's address extended signing key | Ed25519-bip32 extended private key |
| `addr_shared_xvk` | CIP-1854's address extended verification key | Ed25519 public key with chain code |
| `kes_sk` | KES signing key | KES signing key |
| `kes_vk` | KES verification key | KES verification key |
| `pool_sk` | Pool operator signing key | Ed25519 private key |
| `pool_vk` | Pool operator verification key | Ed25519 public key |
| `root_sk` | CIP-1852's root private key | Ed25519 private key |
| `root_vk` | CIP-1852's root public key | Ed25519 public key |
| `root_xsk` | CIP-1852's extended root private key | Ed25519-bip32 extended private key |
| `root_xvk` | CIP-1852's extended root public key | Ed25519 public key with chain code |
| `root_shared_sk` | CIP-1854's root private key | Ed25519 private key |
| `root_shared_vk` | CIP-1854's root public key | Ed25519 public key |
| `root_shared_xsk` | CIP-1854's extended root private key | Ed25519-bip32 extended private key |
| `root_shared_xvk` | CIP-1854's extended root public key | Ed25519 public key with chain code |
| `stake_sk` | CIP-1852's stake address signing key | Ed25519 private key |
| `stake_vk` | CIP-1852's stake address verification key | Ed25519 public key |
| `stake_xsk` | CIP-1852's extended stake address signing key | Ed25519-bip32 extended private key |
| `stake_xvk` | CIP-1852's extended stake address verification key | Ed25519 public key with chain code |
| `stake_shared_sk` | CIP-1854's stake address signing key | Ed25519 private key |
| `stake_shared_vk` | CIP-1854's stake address verification key | Ed25519 public key |
| `stake_shared_xsk` | CIP-1854's extended stake address signing key | Ed25519-bip32 extended private key |
| `stake_shared_xvk` | CIP-1854's extended stake address verification key | Ed25519 public key with chain code |
| `vrf_sk` | VRF signing key | VRF signing key |
| `vrf_vk` | VRF verification key | VRF verification key |

#### Hashes

| Prefix | Meaning | Contents |
| --- | --- | --- |
| `asset` | Fingerprint of a native asset for human comparison | See [CIP-0014] |
| `pool` | Pool operator verification key hash (pool ID) | blake2b\_224 digest of an operator verification key |
| `script` | Script hash | blake2b\_224 digest of a serialized transaction script |
| `addr_vkh` | Address verification key hash | blake2b\_224 digest of a payment verification key |
| `script_vkh` | Script verification key hash | blake2b\_224 digest of a script verification key |
| `stake_vkh` | Stake address verification key hash | blake2b\_224 digest of a delegation verification key |
| `vrf_vkh` | VRF verification key hash | blake2b\_256 digest of a VRF verification key |

| Prefix | Meaning | Contents |
| --- | --- | --- |
| `asset` | Fingerprint of a native asset for human comparison | See [CIP-0014] |
| `pool` | Pool operator verification key hash (pool ID) | blake2b\_224 digest of an operator verification key |
| `script` | Script hash | blake2b\_224 digest of a serialized transaction script |
| `addr_vkh` | Address verification key hash | blake2b\_224 digest of a payment verification key |
| `addr_shared_vkh` | Shared address verification key hash | blake2b\_224 digest of a payment verification key |
| `stake_vkh` | Stake address verification key hash | blake2b\_224 digest of a delegation verification key |
| `stake_shared_vkh` | Shared stake address verification key hash | blake2b\_224 digest of a delegation verification key |
| `vrf_vkh` | VRF verification key hash | blake2b\_256 digest of a VRF verification key |

#### Miscellaneous

Expand Down

0 comments on commit 7ef4712

Please sign in to comment.