DigestAlgorithm.nonceDigest - corda

corda / net.corda.core.crypto / DigestAlgorithm / nonceDigest

# nonceDigest

`open fun nonceDigest(bytes: ByteArray): ByteArray`

Computes the digest of the ByteArray which is resistant to pre-image attacks. Only used to calculate the nonces for the leaves of the ComponentGroup Merkle tree. Default implementation provides double hashing, but can it be changed to single hashing or something else for better performance.