Type Method
hash(data:)
Hashes data with SHA-256 via secp256k1_swift_sha256 and returns a 32-byte SHA256Digest.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
static func hash<D>(data: D) -> SHA256Digest where D : DataProtocol
Parameters
-
data
-
The data to hash; no length restriction.
Return Value
A 32-byte SHA256Digest.