createServerCertificate function
Create a server certificate for testing.
Parameters
key_id- A unique identifier for this server certificateserver_public_key- The server's public key to be certifiedtrust_root_private_key- The trust root's private key for signing
Returns
The serialized server certificate.
Implementation
Uint8List createServerCertificate({
required int keyId,
required List<int> serverPublicKey,
required List<int> trustRootPrivateKey,
}) => RustLib.instance.api.crateApiSealedSenderCreateServerCertificate(
keyId: keyId,
serverPublicKey: serverPublicKey,
trustRootPrivateKey: trustRootPrivateKey,
);