Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIP-5: script prefixes extension #31

Merged

Conversation

paweljakubas
Copy link
Contributor

Hereby, we propose the prefixes for:

  • script hash itself
  • verification key hashes that are used inside the script
  • signing key corresponding to verification key used in the script

CIP5/README.md Outdated
@@ -48,6 +48,9 @@ We define the following set of common prefixes with their corresponding semantic
| `vrf_vk` | VRF verification key |
| `vrf_vkh` | VRF verification key hash |
| `vrf_sk` | VRF signing key |
| `script` | Script hash |
| `script_vkh` | Verification key hash of used in script |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*Verification key hash of key used in script?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 6843b7b

CIP5/README.md Outdated
@@ -48,6 +48,9 @@ We define the following set of common prefixes with their corresponding semantic
| `vrf_vk` | VRF verification key |
| `vrf_vkh` | VRF verification key hash |
| `vrf_sk` | VRF signing key |
| `script` | Script hash |
| `script_vkh` | Verification key hash of used in script |
| `script_sk` | Signing key for vkh used in script |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise, we should also include script_vk don't you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in 6843b7b

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be useful if this table had a "Contents" column like so...

| Prefix       | Meaning                                         | Contents                  |
| ---          | ---                                             | ---                       |
| `script_vkh` | Verification key hash used in script addresses  | Hash of key               |
| `script_vk`  | Verification key for scripts                    | Verification/public key   |
| `script_sk`  | Signing key for script                          | Signing/private key       |

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in ea15443

Copy link
Contributor

@rvl rvl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

CIP5/README.md Outdated
@@ -48,6 +48,9 @@ We define the following set of common prefixes with their corresponding semantic
| `vrf_vk` | VRF verification key |
| `vrf_vkh` | VRF verification key hash |
| `vrf_sk` | VRF signing key |
| `script` | Script hash |
| `script_vkh` | Verification key hash of used in script |
| `script_sk` | Signing key for vkh used in script |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be useful if this table had a "Contents" column like so...

| Prefix       | Meaning                                         | Contents                  |
| ---          | ---                                             | ---                       |
| `script_vkh` | Verification key hash used in script addresses  | Hash of key               |
| `script_vk`  | Verification key for scripts                    | Verification/public key   |
| `script_sk`  | Signing key for script                          | Signing/private key       |

@KtorZ KtorZ changed the title script prefixes CIP-5: script prefixes extension Nov 6, 2020
CIP5/README.md Outdated
| `addr_test` | Testnet address | Network tag, payment credential and optional stake credential |
| `stake` | Mainnet stake address | Network tag and stake credential |
| `stake_test` | Testnet stake address | Network tag and stake credential |
| `script` | Script hash | blake2b\_224 digest of a serialized transaction script |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also move this under the "Hashes" heading? Then we could change #### Miscellaneous to #### Addresses.

Copy link
Contributor

@crptmppt crptmppt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this older PR needs to be rebased to be merged as it targets https://github.com/cardano-foundation/CIPs/blob/master/CIP-0005/CIP-0005.md

@KtorZ KtorZ force-pushed the paweljakubas/script-prefixes branch from 4f9429c to 80148a7 Compare February 17, 2021 16:34
@KtorZ
Copy link
Member

KtorZ commented Feb 17, 2021

@crptmppt rebased and addressed Luke's suggestion above 👍

@intricate
Copy link
Contributor

@KtorZ: Just a note that it doesn't seem my comment was addressed (unless we're deciding to disregard it).

@KtorZ
Copy link
Member

KtorZ commented Feb 18, 2021

@intricate it was... put I pushed on the wrong remote (origin vs paweljakubas) 🤦 ...

(note: I've only addressed the first part about moving script under Hashes)

@crptmppt crptmppt merged commit d81b10b into cardano-foundation:master Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants