P256K HashDigest Structure HashDigest 32-byte SHA-256 digest conforming to Digest so it can be passed directly to secp256k1 signing and verification APIs (the signature(for:) overloads on P256K.Signing.PrivateKey and P256K.Schnorr.PrivateKey that take a Digest). iOS 13.0+ macCatalyst 13.0+ macOS 10.15+ tvOS 13.0+ visionOS 1.0+ watchOS 6.0+ struct HashDigest Topics Initializers init([UInt8])Creates a HashDigest from a 32-byte array, storing the bytes as four packed UInt64 limbs. Instance Properties var description: StringA human-readable hex string representation of the digest, e.g. "SHA256 digest: aabbcc...". Instance Methods func hash(into: inout Hasher)Feeds the digest bytes into a Swift Hasher to support Hashable conformance. func withUnsafeBytes<R>((UnsafeRawBufferPointer) throws -> R) rethrows -> RCalls body with an unsafe pointer to the digest’s 32 raw bytes. Type Properties static var byteCount: IntThe number of bytes in a SHA-256 digest: always 32. Relationships Conforms To Digest