-
Notifications
You must be signed in to change notification settings - Fork 97
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
Field image
on people chain is unusable
#418
Comments
My guess is, it is meant for storing just the hash of the image. Than you can use the hash to fetch the actual image from somewhere else, potentially IPFS or any other sources as you can verify the image by the hash. For IPFS you would construct a CID from the hash and a codec to look it up. |
Many websites that people use to upload ipfs files, as not many people know much about ipfs, generates a hash for a folder and the image is inside a folder. If we have to combine the folder hash plus the image name, it will not fit. In my opinion this field should take just a simple Bytes input. Maybe we can limit the size but definetly needs to be bigger. I believe the same thing should be done for the Legal Name. Usually people expect the Legal Name to be the complete name, either for a person or a company. My wife's full name doesn't fit. My company full name doesn't fit. Considering you set the field as Raw and as pretty much all system that reads the identity that we have right now read those fields as just simple hex encoded strings. |
The 32 byte limit is something hardcoded into the Identity pallet (here). As @peetzweg said, the hash data types assume that a UI has access to the preimage. IMO it would be fine to increase this to something like 64 so that it can accommodate a link that includes a 32 byte hash. That should solve the vast majority of company/personal names as well (and longer names could be looked up from a link that does fit in that size). Making the value configurable would be nice but would be a breaking change to the pallet config. Would suggest changing the limit directly to avoid breaking changes, or to incorporate the change into the next set of breaking changes (cc @georgepisaltu). |
I believe that changing the Many scale codec libs have hard coded the Also, there are people using the |
The
If the data doesn't fit in 32 bytes, you should use a hash type instead of
I don't agree with this. Right now the To address your issue, the best option is to follow the advice in @peetzweg 's comment. The second best option IMO is to make an RFC proposing the addition of 2 new fields in |
Hello guys,
A field called
image
was added tosetIdentity
at people chains. The thing is this field takes aData
input and theRaw
value can be at most 32 bytes.This makes the field unusable for two reasons:
IPFS
URL in 32 bytes.....We should probably allow this field to be set with a bigger string.
The text was updated successfully, but these errors were encountered: