Preferred format for SHA-256

I am on nix version 2.23.3, and I noticed that the format of SHA-256 hash generated (e.g., when a hash "" is specified) is sha256:<hash> instead of sha256-<hash>=, as previously. Is there a preferred format to be used, for example, in nixpkgs? Is this a new format to be used? I have not found anything relevant when looking for this.

hash = "sha256-...." or hash = "sha512-..."
avoid anything else.

2 Likes