Associated Type: Hash
NOT part of the Activity Streams 2.0 Vocabulary.
Activity objects linking to external content such as audio, image or video files must include a "hash"
field for users to validate linked content.
The value of this "hash"
field must be an array of objects representing multiple hashes.
AT LEAST ONE hash in the array MUST be one of the supported algorithms, although others may also be used.
Property | Required | Description | Restrictions |
---|---|---|---|
algorithm | YES | The algorithm of the given hash | |
value | YES | Hash value serialization |
Supported Algorithms
Algorithm | Description | Value Serialization | Specification(s) |
---|---|---|---|
keccak256 | keccak-256 hash | hexadecimal | The Keccak SHA-3 submission v3 |
Example
{
"hash": [
{
"algorithm": "keccak256",
"value": "0x1234567890ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
},
{
"algorithm": "Ripemd256",
"value": "0x96a9209006748794193d1811ef2dd5f447782b8b1635841165bc031bb3db64da"
}
]
}