Skip to content
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

Add terms for some hashing functions #15

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

simleo
Copy link
Contributor

@simleo simleo commented Dec 22, 2022

Fixes #14

I've decided to go with a small set of popular algorithms, to avoid bloating the namespace with a ton of new terms. If there is need for others that are not being added here, we can add them later. For the record, here's a list of what Python 3.10 supports:

>>> import hashlib
>>> for s in sorted(hashlib.algorithms_available): print(s)
... 
blake2b
blake2s
md4
md5
md5-sha1
ripemd160
sha1
sha224
sha256
sha384
sha3_224
sha3_256
sha3_384
sha3_512
sha512
sha512_224
sha512_256
shake_128
shake_256
sm3
whirlpool

@simleo simleo merged commit a564def into ResearchObject:master Dec 22, 2022
@simleo simleo deleted the wf_run_checksum_props branch December 22, 2022 09:36
@simleo
Copy link
Contributor Author

simleo commented Dec 22, 2022

For instance:

{
    "@context": [
        "https://w3id.org/ro/crate/1.1/context",
        {
            "sha1": "https://w3id.org/ro/terms/workflow-run#sha1"
        }
    ],
    "@graph": [
        ...
        {
            "@id": "foo.txt",
            "@type": "File",
            "sha1": "5b96d8196aba2f47e5b63fa3f5ddbe8c1f927435"
        },
        ...
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

workflow run namespace: property for file checksums
1 participant