-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit length of package ids to 64 characters (#10368)
* Limit length of package ids to 64 characters In practice, you cannot use a package id that is not a valid sha256 outside of a test anyway since we validate them. However, we didn’t enforce it at the daml-lf level which is a bit annoying. This PR fixes this and adds a length restriction of 64 characters (i.e. 256 bytes for sha256). We could go a bit further and also restrict the characters to valid sha256 hashes (i.e. 64 character hex strings). I don’t feel all that strongly about that either way. We use other characters in tests but fixing that shouldn’t be particularly hard either. The extra characters don’t seem to cause problem so far, so I think it’s fine to keep that. No changelog entry since I don’t see how a user can be affected by this. changelog_begin changelog_end * Update daml-lf/encoder/src/main/scala/com/digitalasset/daml/lf/archive/testing/DamlLfEncoder.scala
- Loading branch information
1 parent
a56cfea
commit 66284c1
Showing
5 changed files
with
7 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters