Skip to content

Conversation

@qnikst
Copy link
Collaborator

@qnikst qnikst commented Nov 27, 2025

Add namespaces to the CIP

Copy link
Member

@nc6 nc6 left a comment

Choose a reason for hiding this comment

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

Few things look wrong here or could do with some additional documentation

| drep | DRep state | TBD |
| gov | Governance action state | 0 |
| hdr | Header state (e.g. nonces) | TBD |
| Shortname | Content | Key size |
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to add the key description to this table as well?

| hdr | Header state (e.g. nonces) | TBD |
| Shortname | Content | Key size |
| -------------------- | ------------------------------- | -------- |
| blocks/v0 | Reward accounts | 36 |
Copy link
Member

Choose a reason for hiding this comment

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

This isn't reward accounts, it's blocks made, right?

Copy link
Member

Choose a reason for hiding this comment

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

Also, the key size - this is 28-byte keyhash + 8 byte epoch no?

@@ -0,0 +1,4 @@
; This file was auto-generated from huddle. Please do not modify it directly!

record_entry = int
Copy link
Member

Choose a reason for hiding this comment

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

Lacking a comment about the key

@@ -0,0 +1,26 @@
; This file was auto-generated from huddle. Please do not modify it directly!

; Constinution record entry
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
; Constinution record entry
; Constitution record entry

; fut0 stands for possible future
; fut1 stands for definite future
;
; fut0 + no pparams is not represented, key should be omitted in that case
Copy link
Member

Choose a reason for hiding this comment

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

As a string?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've added a string here but we could keep byte as well.

@qnikst
Copy link
Collaborator Author

qnikst commented Dec 4, 2025

I've addressed all the comments and added specks for keys.

Discussion items:

  1. current keys in gov_pparams are string, but we can switch to u8
  2. for constitution we can put 0 key, currently its epoch.

@qnikst qnikst requested a review from nc6 December 4, 2025 23:16
@qnikst qnikst self-assigned this Dec 4, 2025
@qnikst
Copy link
Collaborator Author

qnikst commented Dec 19, 2025

I've updated namespaces and text, and this it's ready for an additional iteration.

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.

3 participants