add subname id #20

Closed
zxq9 wants to merge 3 commits from add-subname-id into master
zxq9 commented 2019-08-05 02:00:38 +09:00 (Migrated from gitlab.com)

Created by: skkw

*Created by: skkw*
zxq9 commented 2019-08-07 17:00:32 +09:00 (Migrated from gitlab.com)

Created by: ThomasArts

I understand that you take base58 because we did so for name... but base58 is more expensive in encoding. That means that we have an attack vector where it gets really slow for long names... is there a maximum length allowed that we check before encoding?

If you would have a name of 10000 bytes it would take a 500ms to encode. When having a name of 20000 bytes, it takes 2 seconds.

*Created by: ThomasArts* I understand that you take base58 because we did so for name... but base58 is more expensive in encoding. That means that we have an attack vector where it gets really slow for long names... is there a maximum length allowed that we check before encoding? If you would have a name of 10000 bytes it would take a 500ms to encode. When having a name of 20000 bytes, it takes 2 seconds.
zxq9 commented 2019-08-08 20:03:25 +09:00 (Migrated from gitlab.com)

Created by: skkw

I've changed it to BASE64.

*Created by: skkw* I've changed it to BASE64.

Pull request closed

Sign in to join this conversation.
No description provided.