ricardian-template-toolkit icon indicating copy to clipboard operation
ricardian-template-toolkit copied to clipboard

Change RTT behavior with respect to summary lengths

Open arhag opened this issue 5 years ago • 0 comments

RTT will avoid processing a Ricardian contract if the length of the raw summary is greater than 116 characters.

Furthermore, if the generated summary is greater than 116 characters, RTT will simply truncate the generated summary string to fit. I consider this truncation to be a bug: if the spec required the generated string to be no more than 116 character (which I'm not sure if it does because it is ambiguously worded) then it should not return any successful result. But I think it would be better for the library to just return the full generated string, however long it is, and allow the authenticate UI to enforce any truncation it wants.

Better yet, if this (EOSIO/ricardian-spec#20) proposed change to the Ricardian spec is adopted, then RTT should not enforce any limit on the summary. Such a limit could optionally be enforced in the authenticator UI.

arhag avatar Jun 03 '19 16:06 arhag