All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.signal.zkgroup.ServerPublicParams Maven / Gradle / Ivy

The newest version!
//
// Copyright 2020-2021 Signal Messenger, LLC.
// SPDX-License-Identifier: AGPL-3.0-only
//

package org.signal.zkgroup;

import org.signal.zkgroup.internal.ByteArray;
import org.signal.client.internal.Native;

public final class ServerPublicParams extends ByteArray {
  public ServerPublicParams(byte[] contents)  {
    super(contents);
    Native.ServerPublicParams_CheckValidContents(contents);
  }

  public void verifySignature(byte[] message, NotarySignature notarySignature) throws VerificationFailedException {
    Native.ServerPublicParams_VerifySignature(contents, message, notarySignature.getInternalContentsForJNI());
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy