github.com/trustbloc/kms-go@v1.1.2/crypto/tinkcrypto/primitive/bbs/api/signer.go (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package api
     8  
     9  // Signer is the signing interface primitive for BBS+ signatures used by Tink.
    10  type Signer interface {
    11  	// Sign will sign create signature of each message and aggregate it into a single signature using the signer's
    12  	// private key.
    13  	// returns:
    14  	// 		signature in []byte
    15  	//		error in case of errors
    16  	Sign(messages [][]byte) ([]byte, error)
    17  }