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

org.hyperledger.fabric.client.identity.Signer Maven / Gradle / Ivy

There is a newer version: 1.7.1
Show newest version
/*
 * Copyright 2020 IBM All Rights Reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package org.hyperledger.fabric.client.identity;

import java.security.GeneralSecurityException;

/**
 * A signing implementation used to generate digital signatures. Standard implementations can be obtained using factory
 * methods on the {@link Signers} class.
 */
@FunctionalInterface
public interface Signer {
    /**
     * Signs the supplied message digest. The digest is typically a hash of the message.
     * @param digest A message digest.
     * @return A digital signature.
     * @throws GeneralSecurityException if a signing error occurs.
     */
    byte[] sign(byte[] digest) throws GeneralSecurityException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy