Initializerswift-crypto 3.12.2_CryptoExtras->Crypto
init(rawRepresentation:)
ARC+API.swift:57- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
init<D>(rawRepresentation: D) throws where D : DataProtocol
init<D>(rawRepresentation: D) throws where D : DataProtocol
s6Crypto4P384O01_A6ExtrasE6_ARCV1O10PrivateKeyV17rawRepresentationAHx_tKc20FoundationEssentials12DataProtocolRzlufc
What are these?7SJ79
import Crypto
A cryptography library for Swift.
import _CryptoExtras
Provides additional cryptographic APIs that are not available in CryptoKit (and therefore the core Crypto library).
struct PrivateKey
The server secrets used to issue and verify credentials.
enum P384
An elliptic curve that enables NIST P-384 signatures and key agreement.
enum _ARCV1
Anonymous Rate-Limited Credentials (ARC).
protocol DataProtocol : RandomAccessCollection where Self.Element == UInt8, Self.SubSequence : DataProtocol
init()
Creates a random private key for ARC(P-384).
var publicKey: P384._ARCV1.PublicKey { get }
var rawRepresentation: Data { get }
func issue(_ credentialRequest: P384._ARCV1.CredentialRequest) throws -> P384._ARCV1.CredentialResponse
Generate a credential response from a credential request.
func verify<D1, D2>(_ presentation: P384._ARCV1.Presentation, requestContext: D1, presentationContext: D2, presentationLimit: Int, nonce: Int) throws -> Bool where D1 : DataProtocol, D2 : DataProtocol
Verify a presentation is valid for a given attribute.