IntersectMBO / IntersectMBO/govtool
🐛 Inconsistency: dRep Names Exceeding 80 Characters Supported via External Registration
- Dominant language
- HTML
- Stars
- 21
- Forks
- 29
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 7
Description
### Area
Other
### Domain
dev-sanchogov.tools
### Which wallet were you using?
_No response_
### Context
Currently, dRep names exceeding 80 characters are blocked from being registered through the govtool UI. However, it is possible to register such names using external methods.
Example Kuber API Request
- Request URL: https://sanchonet.kuber.cardanoapi.io/api/v1/tx?submit=true
- Request Body:
```
{
"selections":[
{
"type": "PaymentSigningKeyShelley_ed25519",
"description": "Payment Signing Key",
"cborHex": "5820${wallet.stake.private}"
}
],
"certificates": [
{
"type": "registerdrep",
"key": ${wallet.stake.pkh},
"anchor":{
"url": ${metadataUrl},
"dataHash" : ${metadataHash}
}
}
]
}
```
### Steps to reproduce
1. Register a dRep with a name containing more than 80 characters using external ,method such as Kuber API.
2. Navigate to dRep list.
3. Sort dRep list by registration date
4. Observe the dRep list
### Actual behavior
DRep names with more than 80 characters are accepted when registered through external methods like the Kuber API. These dRep names appear in the govtool UI, which is inconsistent with the expected behavior.
https://dev-sanchonet.govtool.byron.network/connected/drep_directory/drep1nsdgrqr3w7cncp54xg0sdemqlashssc6c9nqh8c772g3q4ldjmn

### Expected behavior
As per [CIP-0119](https://cips.cardano.org/cip/CIP-0119#:~:text=A%20very%20short%20freeform%20text%20field.%20Limited%20to%2080%20characters.), dRep names should be limited to 80 characters
Contributor guide
Assessment
This issue has not been assessed yet.